Skip to content

Commit 3cd7760

Browse files
author
Luca Forstner
committed
test(node-integration-tests): Look for specific error message in iitm test
1 parent 72239ee commit 3cd7760

File tree

1 file changed

+6
-1
lines changed
  • dev-packages/node-integration-tests/suites/esm/import-in-the-middle

1 file changed

+6
-1
lines changed

dev-packages/node-integration-tests/suites/esm/import-in-the-middle/test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ afterAll(() => {
77

88
conditionalTest({ min: 18 })('import-in-the-middle', () => {
99
test('onlyIncludeInstrumentedModules', done => {
10-
createRunner(__dirname, 'app.mjs').ensureNoErrorOutput().start(done);
10+
const runner = createRunner(__dirname, 'app.mjs').start(() => {
11+
runner.getLogs().forEach(logMsg => {
12+
expect(logMsg).not.toContain('should be the only hooked modules but we just hooked');
13+
});
14+
done();
15+
});
1116
});
1217
});

0 commit comments

Comments
 (0)