Skip to content

Commit 5639261

Browse files
committed
debug test in ci
1 parent ba142e5 commit 5639261

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

test/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const waitFor = (timeout: number) => {
3131
return new Promise((resolve) => setTimeout(resolve, timeout))
3232
}
3333

34-
fs.ensureDir(tempDir)
34+
fs.ensureDirSync(tempDir)
3535
fs.removeSync(join(tempDir, 'fixture'))
3636
fs.copySync(join(__dirname, 'fixture'), scriptsDir)
3737

@@ -95,7 +95,7 @@ test('It should report an error on start', async (t) => {
9595
await replaceText('with-error.ts', '1', `'1'`)
9696
})
9797

98-
test('It should restart on adding not imported module', async (t) => {
98+
test.only('It should restart on adding not imported module', async (t) => {
9999
const ps = spawnTsNodeDev('--respawn with-error.ts', {
100100
// stdout: true,
101101
env: {

test/spawn.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import child = require('child_process')
22
import path = require('path')
3-
import { resolve } from 'url'
4-
import { resolveSoa } from 'dns'
53
const bin = path.join(__dirname, '/../bin/ts-node-dev')
64
const scriptsDir = path.join(__dirname, '/../.temp/fixture')
75

0 commit comments

Comments
 (0)