From 616fac9169840c76512920e66b6428971df3d289 Mon Sep 17 00:00:00 2001 From: Benjamin Date: Sat, 3 Nov 2018 15:42:13 -0700 Subject: lib: make coverage work for Node.js PR-URL: https://github.com/nodejs/node/pull/23941 Reviewed-By: James M Snell Reviewed-By: Yang Guo --- test/sequential/test-inspector-enabled.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/sequential') diff --git a/test/sequential/test-inspector-enabled.js b/test/sequential/test-inspector-enabled.js index a7a0832793..f14e7c17d8 100644 --- a/test/sequential/test-inspector-enabled.js +++ b/test/sequential/test-inspector-enabled.js @@ -20,7 +20,10 @@ assert( `; const args = ['--inspect', '-e', script]; -const child = spawn(process.execPath, args, { stdio: 'inherit' }); +const child = spawn(process.execPath, args, { + stdio: 'inherit', + env: { ...process.env, NODE_V8_COVERAGE: '' } +}); child.on('exit', (code, signal) => { process.exit(code || signal); }); -- cgit v1.2.3