Skip to content

Commit dfc2c17

Browse files
committed
chore: add log
1 parent 0e48146 commit dfc2c17

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/search.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { relative, resolve } from 'pathe'
2-
import { describe, expect, it } from 'vitest'
2+
import { describe, expect, it, onTestFailed } from 'vitest'
33
import { Context } from '../src/core/context'
44

55
const root = resolve(__dirname, '../examples/vite-vue3')
@@ -61,9 +61,15 @@ describe('search', () => {
6161
const ctx = new Context({
6262
dirs: [
6363
'src/components',
64-
'!src/components/book',
64+
'!src/components/book/**',
6565
],
6666
})
67+
68+
onTestFailed(() => {
69+
console.error('resolved options')
70+
console.error(ctx.options)
71+
})
72+
6773
ctx.setRoot(root)
6874
ctx.searchGlob()
6975

0 commit comments

Comments
 (0)