diff options
Diffstat (limited to 'tests/registry/npm/@denotest/exec-file/1.0.0')
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/exec-file/1.0.0/exec-child.js b/tests/registry/npm/@denotest/exec-file/1.0.0/exec-child.js new file mode 100644 index 000000000..13ad51ca2 --- /dev/null +++ b/tests/registry/npm/@denotest/exec-file/1.0.0/exec-child.js @@ -0,0 +1,2 @@ +const { Buffer } = require("buffer"); +console.log(Buffer.from("Hello, world!").toString()); diff --git a/tests/registry/npm/@denotest/exec-file/1.0.0/index.js b/tests/registry/npm/@denotest/exec-file/1.0.0/index.js new file mode 100644 index 000000000..0129483aa --- /dev/null +++ b/tests/registry/npm/@denotest/exec-file/1.0.0/index.js @@ -0,0 +1,6 @@ +const child_process = require('child_process'); +const path = require('path'); + +const execArgs = [path.join(__dirname, "exec-child.js")] +const buf = child_process.execFileSync(process.execPath, execArgs); +console.log(buf.toString().trim()); diff --git a/tests/registry/npm/@denotest/exec-file/1.0.0/package.json b/tests/registry/npm/@denotest/exec-file/1.0.0/package.json new file mode 100644 index 000000000..50f013986 --- /dev/null +++ b/tests/registry/npm/@denotest/exec-file/1.0.0/package.json @@ -0,0 +1,5 @@ +{ + "name": "@denotest/exec-file", + "version": "1.0.0", + "main": "index.js" +} |