Skip to content

Commit

Permalink
then(mustCall())
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Jul 25, 2022
1 parent c3c7ed8 commit 98aebc9
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test/es-module/test-cjs-esm-warn.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const pjson = path.resolve(
fixtures.path('/es-modules/package-type-module/package.json')
);

mustCall(async () => {
(async () => {
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');

describe('CJS ↔︎ ESM interop warnings', { concurrency: true }, () => {
Expand Down Expand Up @@ -68,4 +68,4 @@ mustCall(async () => {
assert.strictEqual(signal, null);
});
});
})();
})().then(mustCall());
4 changes: 2 additions & 2 deletions test/es-module/test-esm-cjs-builtins.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { describe, it } = require('node:test');

const entry = fixtures.path('/es-modules/builtin-imports-case.mjs');

mustCall(async () => {
(async () => {
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');

describe('ESM: importing builtins & CJS', () => {
Expand All @@ -21,4 +21,4 @@ mustCall(async () => {
assert.strictEqual(stdout, 'ok\n');
});
});
})();
})().then(mustCall());
4 changes: 2 additions & 2 deletions test/es-module/test-esm-cjs-exports.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { execPath } = require('node:process');
const { describe, it } = require('node:test');


mustCall(async () => {
(async () => {
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');

describe('ESM: importing CJS', { concurrency: true }, () => {
Expand All @@ -30,4 +30,4 @@ mustCall(async () => {
assert.ok(stderr.includes('Unexpected token \'export\''));
});
});
})();
})().then(mustCall());
4 changes: 2 additions & 2 deletions test/es-module/test-esm-cjs-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { execPath } = require('node:process');
const { describe, it } = require('node:test');


mustCall(async () => {
(async () => {
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');

describe('ESM: importing CJS', () => {
Expand All @@ -21,4 +21,4 @@ mustCall(async () => {
assert.strictEqual(stdout, 'executed\n');
});
});
})();
})().then(mustCall());
4 changes: 2 additions & 2 deletions test/es-module/test-esm-encoded-path-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { execPath } = require('node:process');
const { describe, it } = require('node:test');


mustCall(async () => {
(async () => {
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');

describe('ESM: importing an encoded path', () => {
Expand All @@ -19,4 +19,4 @@ mustCall(async () => {
assert.strictEqual(code, 1);
});
});
})();
})().then(mustCall());
4 changes: 2 additions & 2 deletions test/es-module/test-esm-unknown-or-no-extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { execPath } = require('node:process');
const { describe, it } = require('node:test');


mustCall(async () => {
(async () => {
const { default: spawn } = await import('./helper.spawnAsPromised.mjs');

// In a "type": "module" package scope, files with unknown extensions or no
Expand Down Expand Up @@ -37,4 +37,4 @@ mustCall(async () => {
});
}
});
})();
})().then(mustCall());

0 comments on commit 98aebc9

Please sign in to comment.