2022-08-25 09:12:00 -07:00
|
|
|
const process = require('process');
|
|
|
|
|
const cp = require('child_process');
|
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
|
|
test('test runs', () => {
|
2022-10-04 11:30:52 -07:00
|
|
|
const ip = path.join(__dirname, "dist", 'index.js');
|
|
|
|
|
const result = cp.execSync(`node ${ip}`, {filePath: "test"}).toString();
|
2022-08-25 09:12:00 -07:00
|
|
|
console.log(result);
|
|
|
|
|
})
|