Skip to content

Commit

Permalink
REPL done()
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Jul 26, 2022
1 parent 41980ee commit d7a2541
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/es-module/test-esm-repl-imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { describe, it } = require('node:test');


describe('ESM: REPL runs', { concurrency: true }, () => {
it(() => {
it((context, done) => {
const child = spawn(execPath, [
'--interactive',
], {
Expand All @@ -22,6 +22,7 @@ describe('ESM: REPL runs', { concurrency: true }, () => {

child.on('exit', mustCall((code) => {
assert.strictEqual(code, 0);
done();
}));
});
});

0 comments on commit d7a2541

Please sign in to comment.