Skip to content

Commit 915eeb6

Browse files
.
1 parent 8843117 commit 915eeb6

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

test/es-module/test-esm-cjs-main.js

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { mustCall } from '../common/index.mjs';
2+
import * as fixtures from '../common/fixtures.mjs';
3+
import assert from 'node:assert';
4+
import { execPath } from 'node:process';
5+
6+
import spawn from './helper.spawnAsPromised.mjs';
7+
8+
9+
spawn(execPath, [fixtures.path('/es-modules/cjs.js')])
10+
.then(mustCall(({ code, signal, stdout }) => {
11+
assert.strictEqual(code, 0);
12+
assert.strictEqual(signal, null);
13+
assert.strictEqual(stdout, 'executed\n');
14+
}));

0 commit comments

Comments
 (0)