Files: 938b7ea4cfaa3cef6e1690b9ef3ea8bd7a0d2de1 / test / test-46-input-output-js / main.js
469 bytesRaw
1 | |
2 | |
3 | 'use strict'; |
4 | |
5 | const assert = require('assert'); |
6 | const utils = require('../utils.js'); |
7 | |
8 | assert(!module.parent); |
9 | assert(__dirname === process.cwd()); |
10 | |
11 | const input = './test-x-index.js'; |
12 | const exe = (process.platform === 'win32' ? '.exe' : ''); |
13 | const newcomers = [ 'test-output' + exe ]; |
14 | const before = utils.filesBefore(newcomers); |
15 | |
16 | utils.pkg.sync([ |
17 | '--output', 'test-output', input |
18 | ], { stdio: 'inherit' }); |
19 | |
20 | utils.filesAfter(before, newcomers); |
21 |
Built with git-ssb-web