chore: move ts-smoke tests to core (#16930)
* chore: move ts smoke tests to core * fix: fix paths for tsconfig / ts-smoke runner * update ts-defs version * do not lintr
This commit is contained in:
parent
95214fcd4b
commit
319c2853df
7 changed files with 1470 additions and 3 deletions
18
spec/ts-smoke/runner.js
Normal file
18
spec/ts-smoke/runner.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
const path = require('path')
|
||||
const childProcess = require('child_process')
|
||||
|
||||
const typeCheck = () => {
|
||||
const tscExec = path.resolve(require.resolve('typescript'), '../../bin/tsc')
|
||||
const tscChild = childProcess.spawn(process.execPath, [tscExec, '--project', './ts-smoke/tsconfig.json'], {
|
||||
cwd: path.resolve(__dirname, '../')
|
||||
})
|
||||
tscChild.stdout.on('data', d => console.log(d.toString()))
|
||||
tscChild.stderr.on('data', d => console.error(d.toString()))
|
||||
tscChild.on('exit', (tscStatus) => {
|
||||
if (tscStatus !== 0) {
|
||||
process.exit(tscStatus)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
typeCheck()
|
Loading…
Add table
Add a link
Reference in a new issue