Skip to content

Commit 6d26b8c

Browse files
authored
test: update to the correct test (#3643)
1 parent 40f18a0 commit 6d26b8c

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

test/reporters/tests/default.test.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,19 @@ describe('default reporter', async () => {
3737
await vitest.waitForStdout('Input filename pattern')
3838
vitest.write('a\n')
3939
await vitest.waitForStdout('Filename pattern: a')
40-
await vitest.waitForStdout('Waiting for file changes')
40+
await vitest.waitForStdout('Waiting for file changes...')
4141
expect(vitest.stdout).contain('✓ a1 test')
4242
expect(vitest.stdout).contain('✓ nested a3 test')
4343

4444
// rerun and two files
4545
vitest.write('p')
4646
await vitest.waitForStdout('Input filename pattern')
4747
vitest.write('b\n')
48-
await vitest.waitForStdout('Filename pattern: b')
49-
await vitest.waitForStdout('PASS Waiting for file changes...')
50-
expect(vitest.stdout).toContain('RERUN')
51-
expect(vitest.stdout).toContain('b1.test.ts')
52-
expect(vitest.stdout).toContain('b2.test.ts')
53-
expect(vitest.stdout).not.toContain('nested b1 test')
54-
expect(vitest.stdout).not.toContain('b1 test')
55-
expect(vitest.stdout).not.toContain('b2 test')
48+
await vitest.waitForStdout('Waiting for file changes...')
49+
expect(vitest.stdout).toContain('✓ b1.test.ts')
50+
expect(vitest.stdout).toContain('✓ b2.test.ts')
51+
expect(vitest.stdout).not.toContain('✓ nested b1 test')
52+
expect(vitest.stdout).not.toContain('✓ b1 test')
53+
expect(vitest.stdout).not.toContain('✓ b2 test')
5654
})
5755
}, 120000)

test/reporters/vitest.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ export default defineConfig({
44
test: {
55
exclude: ['node_modules', 'fixtures', 'dist'],
66
testTimeout: 100000,
7+
chaiConfig: {
8+
truncateThreshold: 9999,
9+
},
710
},
811
})

0 commit comments

Comments
 (0)