Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed May 9, 2023
1 parent 7802857 commit 94ef0e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions test/config/test/failures.test.ts
Expand Up @@ -68,6 +68,9 @@ test('version number is printed when coverage provider fails to load', async ()
'./non-existing-module.ts',
])

// eslint-disable-next-line no-console -- debug CI
console.log({ error, output })

expect(output).toMatch(`RUN v${version}`)
expect(error).toMatch('Error: Failed to load custom CoverageProviderModule from ./non-existing-module.ts')
})
3 changes: 0 additions & 3 deletions test/config/test/utils.ts
Expand Up @@ -12,9 +12,6 @@ export async function runVitest(mode: 'run' | 'watch', cliArguments: string[]) {

subprocess.stderr?.on('data', (data) => {
error += stripAnsi(data.toString())

// Sometimes on Windows CI execa doesn't exit properly. Force exit when stderr is caught.
subprocess.kill()
})

await new Promise(resolve => subprocess.on('exit', resolve))
Expand Down

0 comments on commit 94ef0e7

Please sign in to comment.