Skip to content

Commit

Permalink
test: more specific test inclusion for project
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Apr 14, 2023
1 parent baf902a commit cc819ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/watch/test/workspaces.test.ts
Expand Up @@ -48,7 +48,7 @@ it('editing a file that is imported in different workspaces reruns both files',
writeFileSync(srcMathFile, `${srcMathContent}\n`, 'utf8')

await vitest.waitForOutput('RERUN src/math.ts')
await vitest.waitForOutput('|space_3| math.space-test.ts')
await vitest.waitForOutput('|space_3| math.space-3-test.ts')
await vitest.waitForOutput('|space_1| test/math.spec.ts')
await vitest.waitForOutput('Test Files 2 passed')
})
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/workspaces/space_3/vitest.config.ts
Expand Up @@ -2,7 +2,7 @@ import { defineProject } from 'vitest/config'

export default defineProject({
test: {
include: ['**/*.space-test.ts'],
include: ['**/*.space-3-test.ts'],
name: 'space_3',
environment: 'node',
},
Expand Down

0 comments on commit cc819ca

Please sign in to comment.