From 3cd7760571a333de08c411221985674dec665372 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Wed, 11 Dec 2024 13:16:55 +0000 Subject: [PATCH] test(node-integration-tests): Look for specific error message in iitm test --- .../suites/esm/import-in-the-middle/test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); + }); }); });