Run migration memory tests after the main suite (Refs #102)
CI / checks (push) Successful in 4m57s
CI / checks (push) Successful in 4m57s
This commit is contained in:
+23
-2
@@ -1,10 +1,31 @@
|
|||||||
import { sveltekit } from '@sveltejs/kit/vite';
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||||||
import { defineConfig } from 'vitest/config';
|
import { configDefaults, defineConfig } from 'vitest/config';
|
||||||
|
|
||||||
|
const migrationMemoryTest = 'tests/unit/migration-memory.test.ts';
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [sveltekit()],
|
plugins: [sveltekit()],
|
||||||
test: {
|
test: {
|
||||||
include: ['tests/**/*.{test,spec}.{js,ts}']
|
projects: [
|
||||||
|
{
|
||||||
|
extends: true,
|
||||||
|
test: {
|
||||||
|
name: 'application',
|
||||||
|
include: ['tests/**/*.{test,spec}.{js,ts}'],
|
||||||
|
exclude: [...configDefaults.exclude, migrationMemoryTest],
|
||||||
|
sequence: { groupOrder: 0 }
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
extends: true,
|
||||||
|
test: {
|
||||||
|
name: 'migration-memory',
|
||||||
|
include: [migrationMemoryTest],
|
||||||
|
// The 256 MiB rebuild must not contend for disk I/O with other tests.
|
||||||
|
sequence: { groupOrder: 1 }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
port: 3000
|
port: 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user