diff --git a/package.json b/package.json index ad605a8bf..8e631dec5 100644 --- a/package.json +++ b/package.json @@ -92,6 +92,7 @@ "rewire": "^4.0.1", "semver": "^5.7.0", "sinon": "^7.3.2", + "sleep": "^5.2.4", "sqreen": "^1.30.1", "strip-ansi": "^5.2.0", "terser": "^3.17.0", diff --git a/test/scenario-tests.mjs b/test/scenario-tests.mjs index 4fff59d35..1fffb0432 100644 --- a/test/scenario-tests.mjs +++ b/test/scenario-tests.mjs @@ -126,6 +126,13 @@ describe("scenario tests", function () { .then(({ stdout }) => assert.ok(stdout.includes("module-alias:true"))) ) + it("should work with native modules", () => + node([ + path.resolve("fixture/scenario/native") + ], envAuto) + .then(({ stdout }) => assert.ok(stdout.includes("native:true"))) + ) + it("should work with newrelic", () => { const dirPath = path.resolve("fixture/scenario/newrelic") const cwdPath = path.resolve(dirPath, "cwd.js")