Skip to content

Commit

Permalink
chore: add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryven committed Dec 30, 2022
1 parent 6950444 commit 20f0c47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/reporters/tests/reporters.spec.ts
Expand Up @@ -344,8 +344,9 @@ test('json reporter with outputFile object in non-existing directory', async ()
})

const skip = (process.platform === 'win32' || process.platform === 'darwin') && process.env.CI
const root = resolve(__dirname, '../fixtures')

test.skipIf(skip)('Cli can overrides reporters by --reporter', async () => {
const root = resolve(__dirname, '../fixtures')
const { stdout } = await execa('npx', ['vitest', 'run', 'all-passing-or-skipped.test.ts', '--reporter=json'], {
cwd: root,
env: {
Expand All @@ -359,7 +360,7 @@ test.skipIf(skip)('Cli can overrides reporters by --reporter', async () => {
expect(() => {
JSON.parse(stdout)
}).not.toThrowError()
})
}, 60_000)

/**
* Ensure environment and OS specific paths are consistent in snapshots
Expand Down

0 comments on commit 20f0c47

Please sign in to comment.