Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Mar 3, 2024
1 parent 74f93e7 commit 8178a6a
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions e2e/native-esm/__tests__/native-esm.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,25 @@ test('should have correct import.meta', () => {
expect(
import.meta.url.endsWith('/e2e/native-esm/__tests__/native-esm.test.js'),
).toBe(true);
expect(
import.meta.filename.endsWith(
'/e2e/native-esm/__tests__/native-esm.test.js',
),
).toBe(true);
expect(import.meta.dirname.endsWith('/e2e/native-esm/__tests__')).toBe(true);
if (process.platform === 'win32') {
expect(
import.meta.filename.endsWith(
'\\e2e\\native-esm\\__tests__\\native-esm.test.js',
),
).toBe(true);
expect(import.meta.dirname.endsWith('\\e2e\\native-esm\\__tests__')).toBe(
true,
);
} else {
expect(
import.meta.filename.endsWith(
'/e2e/native-esm/__tests__/native-esm.test.js',
),
).toBe(true);
expect(import.meta.dirname.endsWith('/e2e/native-esm/__tests__')).toBe(
true,
);
}
expect(
import.meta
.resolve('colors')
Expand Down

0 comments on commit 8178a6a

Please sign in to comment.