|
|
|
@ -18,10 +18,9 @@ describe('typings.test.ts', () => { |
|
|
|
|
const stdout = []; |
|
|
|
|
const stderr = []; |
|
|
|
|
const promise = spawn('ts-node', [ |
|
|
|
|
'--no-cache', |
|
|
|
|
'--compilerOptions', '{"target":"es6", "strict": true, "strictNullChecks": true, "noImplicitAny": true}', |
|
|
|
|
//'--type-check',
|
|
|
|
|
'-p', codeBase + '\n' + code |
|
|
|
|
'--compiler-options', '{"target":"es6", "strict": true}', |
|
|
|
|
'--type-check', |
|
|
|
|
'-e', codeBase + '\n' + code |
|
|
|
|
]); |
|
|
|
|
const childProcess = promise.childProcess; |
|
|
|
|
childProcess.stdout.on('data', data => stdout.push(data.toString())); |
|
|
|
|