Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Really make tests not fail on Windows due to EOL #1660

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/migrate/test/migrate_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ const fixture = join(__dirname, 'fixtures/.neutrinorc.js');
const transform = resolve(__dirname, '../transforms/middleware.js');
const snapshot = readFileSync(join(__dirname, 'fixtures/.neutrinorc.js.txt'))
.toString()
.replace(/\r\n/g, '\n')
.trim();

test('performs valid transformation', (t) => {
const output = execSync(`${jscodeshift} ${fixture} -t ${transform} -d -p -s`)
.toString()
.replace(/\r\n/g, '\n')
.trim();

t.is(output, snapshot);
Expand Down