Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
fixup! esm: refactor esm tests out of test/message
  • Loading branch information
GeoffreyBooth committed Jan 6, 2022
commit 13861f0639abb705ee4f07f5c40a95e09b446d1e
3 changes: 1 addition & 2 deletions test/es-module/test-esm-import-json-named-export.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import '../common/index.mjs';
import { path } from '../common/fixtures.mjs';
import { ok } from 'assert';
import { spawn } from 'child_process';
import { execPath } from 'process';

const child = spawn(execPath, [
'--experimental-json-modules',
path('/es-modules/import-json-named-export.mjs'),
'./test/fixtures/es-modules/import-json-named-export.mjs',
]);

let stderr = '';
Expand Down
3 changes: 1 addition & 2 deletions test/es-module/test-esm-loader-not-found.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import '../common/index.mjs';
import { path } from '../common/fixtures.mjs';
import { ok } from 'assert';
import { spawn } from 'child_process';
import { execPath } from 'process';

const child = spawn(execPath, [
'--experimental-loader',
'i-dont-exist',
path('/print-error-message.js'),
'./test/fixtures/print-error-message.js',
]);

let stderr = '';
Expand Down
5 changes: 2 additions & 3 deletions test/es-module/test-esm-loader-obsolete-hooks.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../common/index.mjs';
import { path } from '../common/fixtures.mjs';
import { ok } from 'assert';
import { spawn } from 'child_process';
import { execPath } from 'process';
Expand All @@ -8,8 +7,8 @@ const child = spawn(execPath, [
'--no-warnings',
'--throw-deprecation',
'--experimental-loader',
path('/es-module-loaders/hooks-obsolete.mjs'),
path('/print-error-message.js'),
'./test/fixtures/es-module-loaders/hooks-obsolete.mjs',
'./test/fixtures/print-error-message.js',
]);

let stderr = '';
Expand Down
5 changes: 2 additions & 3 deletions test/es-module/test-esm-loader-with-syntax-error.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import '../common/index.mjs';
import { path } from '../common/fixtures.mjs';
import { ok } from 'assert';
import { spawn } from 'child_process';
import { execPath } from 'process';

const child = spawn(execPath, [
'--experimental-loader',
path('/es-module-loaders/syntax-error.mjs'),
path('/print-error-message.js'),
'./test/fixtures/es-module-loaders/syntax-error.mjs',
'./test/fixtures/print-error-message.js',
]);

let stderr = '';
Expand Down
3 changes: 1 addition & 2 deletions test/es-module/test-esm-syntax-error.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import '../common/index.mjs';
import { path } from '../common/fixtures.mjs';
import { ok } from 'assert';
import { spawn } from 'child_process';
import { execPath } from 'process';

const child = spawn(execPath, [
path('/es-module-loaders/syntax-error.mjs'),
'./test/fixtures/es-module-loaders/syntax-error.mjs',
]);

let stderr = '';
Expand Down