From 6e5a22d3d32a793f71c715e0c4a72415dd42a86e Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 15 May 2019 10:40:34 -0700 Subject: [PATCH] Revert "Temporarily remove node-sleep until it builds on Node 12+." This reverts commit 22079497efdfb24f918ef35975026ebe376ec19a. --- package.json | 1 + test/scenario-tests.mjs | 7 +++++++ 2 files changed, 8 insertions(+) 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")