git ssb

0+

cel-desktop / ssb-pkg



Tree: 67c0e15a98a66eb99db2251478505d6f3d37535c

Files: 67c0e15a98a66eb99db2251478505d6f3d37535c / test / test-50-inspect / main.js

597 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5const path = require('path');
6const assert = require('assert');
7const utils = require('../utils.js');
8
9assert(!module.parent);
10assert(__dirname === process.cwd());
11
12const target = process.argv[2] || 'host';
13const input = './test-x-index.js';
14const output = './test-output.exe';
15
16utils.pkg.sync([
17 '--target', target,
18 '--output', output, input
19]);
20
21utils.spawn.sync(
22 './' + path.basename(output),
23 [ '--inspect' ],
24 { cwd: path.dirname(output),
25 env: { PKG_EXECPATH: 'PKG_INVOKE_NODEJS' },
26 stdio: 'pipe', expect: 9 }
27);
28
29utils.vacuum.sync(output);
30

Built with git-ssb-web