Skip to content

Commit 2437b97

Browse files
committed
Fix test file extensions to .mjs for ES modules compatibility
1 parent 010ca09 commit 2437b97

File tree

7 files changed

+788
-1821
lines changed

7 files changed

+788
-1821
lines changed

tests/BuiltinModules/__snapshots__/ppsi.spec.js.snap renamed to tests/BuiltinModules/__snapshots__/ppsi.spec.mjs.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`builtin-modules.ts - typescript-verify: builtin-modules.ts 1`] = `
3+
exports[`builtin-modules.ts - typescript-verify > builtin-modules.ts 1`] = `
44
import express from 'express';
55
import lodash from 'lodash';
66
import fs from 'fs';

tests/BuiltinModulesDisabled/__snapshots__/ppsi.spec.js.snap renamed to tests/BuiltinModulesDisabled/__snapshots__/ppsi.spec.mjs.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`builtin-modules.ts - typescript-verify: builtin-modules.ts 1`] = `
3+
exports[`builtin-modules.ts - typescript-verify > builtin-modules.ts 1`] = `
44
import express from 'express';
55
import lodash from 'lodash';
66
import fs from 'fs';
File renamed without changes.

tests/BuiltinModulesWithCustomOrder/__snapshots__/ppsi.spec.js.snap renamed to tests/BuiltinModulesWithCustomOrder/__snapshots__/ppsi.spec.mjs.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

3-
exports[`builtin-modules.ts - typescript-verify: builtin-modules.ts 1`] = `
3+
exports[`builtin-modules.ts - typescript-verify > builtin-modules.ts 1`] = `
44
import express from 'express';
55
import lodash from 'lodash';
66
import fs from 'fs';
File renamed without changes.

yarn.lock

Lines changed: 782 additions & 1815 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)