diff --git a/package.json b/package.json index c9155a218e..54d806aac9 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/test/system-tests/vitest.config.mts b/test/system-tests/vitest.config.mts new file mode 100644 index 0000000000..3f6a6a7278 --- /dev/null +++ b/test/system-tests/vitest.config.mts @@ -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 + } + } + } + }, +});