diff --git a/dev-packages/node-integration-tests/suites/esm/import-in-the-middle/test.ts b/dev-packages/node-integration-tests/suites/esm/import-in-the-middle/test.ts index 8b9e6e06202f..ab93d01178b6 100644 --- a/dev-packages/node-integration-tests/suites/esm/import-in-the-middle/test.ts +++ b/dev-packages/node-integration-tests/suites/esm/import-in-the-middle/test.ts @@ -7,6 +7,11 @@ afterAll(() => { conditionalTest({ min: 18 })('import-in-the-middle', () => { test('onlyIncludeInstrumentedModules', done => { - createRunner(__dirname, 'app.mjs').ensureNoErrorOutput().start(done); + const runner = createRunner(__dirname, 'app.mjs').start(() => { + runner.getLogs().forEach(logMsg => { + expect(logMsg).not.toContain('should be the only hooked modules but we just hooked'); + }); + done(); + }); }); });