Skip to content

Commit

Permalink
ci: use forks pool for CLI tests (#5679)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va authored May 6, 2024
1 parent 34a80b3 commit ee097db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/config/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ export default defineConfig({
include: ['test/**.test.ts'],
reporters: ['verbose'],
testTimeout: 60_000,
pool: 'forks',
poolOptions: {
forks: {
singleFork: true,
},
threads: {
singleThread: true,
},
Expand Down
1 change: 1 addition & 0 deletions test/reporters/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default defineConfig({
exclude: ['node_modules', 'fixtures', 'dist'],
reporters: ['verbose'],
testTimeout: 100000,
pool: 'forks',
chaiConfig: {
truncateThreshold: 0,
},
Expand Down
2 changes: 2 additions & 0 deletions test/watch/vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default defineConfig({
test: {
reporters: 'verbose',
include: ['test/**/*.test.*'],
pool: 'forks',
chaiConfig: {
truncateThreshold: 0,
},
Expand All @@ -13,6 +14,7 @@ export default defineConfig({

// Test cases may have side effects, e.g. files under fixtures/ are modified on the fly to trigger file watchers
poolOptions: {
forks: { singleFork: true },
threads: { singleThread: true },
vmThreads: { singleThread: true },
},
Expand Down

0 comments on commit ee097db

Please sign in to comment.