Skip to content

Commit

Permalink
ci-fix(systest): extend test timeout (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigalasr committed Nov 28, 2024
1 parent 23e4288 commit 4c7db83
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"license-compat": "license-checker --onlyAllow 'MIT;MIT OR X11;GPLv2;LGPL;GNUGPL;ISC;Apache-2.0;FreeBSD;BSD-2-Clause;clearbsd;ModifiedBSD;BSD-3-Clause;Python-2.0;Unlicense;WTFPL;BlueOak-1.0.0;CC-BY-4.0;CC-BY-3.0;CC0-1.0;0BSD'",
"doc": "typedoc",
"test": "vitest --exclude \"test/system-tests/**\" --config test/vitest.config.mts",
"test:system": "vitest --dir test/system-tests --config test/vitest.config.mts",
"test:system": "vitest --dir test/system-tests --config test/system-tests/vitest.config.mts",
"test:coverage": "npm run test -- --coverage",
"performance-test": "func() { cd test/performance/ && bash run-all-suites.sh $1 $2 $3; cd ../../; }; func",
"test-full": "npm run test:coverage -- --no-watch -- --make-summary --test-installation",
Expand Down
22 changes: 22 additions & 0 deletions test/system-tests/vitest.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { configDefaults, defineConfig } from 'vitest/config';

export default defineConfig({
test: {
testTimeout: 60 * 2000,
sequence: {
/* each test file that does not support parallel execution will be executed in sequence by stating this explicitly */
concurrent: true,
setupFiles: 'parallel'
},
reporters: process.env.GITHUB_ACTIONS ? ['basic', 'github-actions'] : ['dot'],
isolate: false,
pool: 'threads',
deps: {
optimizer: {
ssr: {
enabled: true
}
}
}
},
});

0 comments on commit 4c7db83

Please sign in to comment.