mirror of
https://github.com/Zakkaus/doona.git
synced 2026-12-05 08:00:59 +00:00
Node's Request.clone() links the clone's signal to the original only through a weak reference, so after a garbage collection an aborted read or operation start kept waiting for its deadline. Reads now send the original request, which has no body to protect, and the retry loop for operation starts passes the caller's signal to send() explicitly.
23 lines
816 B
TypeScript
23 lines
816 B
TypeScript
import {defineConfig} from 'vitest/config';
|
|
import {startupTextPlugin} from './tools/startup-text.mjs';
|
|
|
|
export default defineConfig({
|
|
plugins: [startupTextPlugin()],
|
|
test: {
|
|
environment: 'node',
|
|
// The control-size guard and the blur test read the stylesheets with ?raw, which Vitest otherwise serves empty.
|
|
css: {include: [/src\/ui\/styles\/(?:palettes\/)?[^/]+\.css/]},
|
|
include: ['src/**/*.test.{ts,tsx}', 'mock/**/*.test.ts', 'tools/*.test.mjs'],
|
|
setupFiles: ['src/i18n/setup.test-env.ts'],
|
|
// gc() for the API client tests that collect garbage.
|
|
execArgv: ['--expose-gc'],
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'lcov'],
|
|
include: ['src/**'],
|
|
exclude: ['src/api/types.ts', 'mock/**'],
|
|
thresholds: {lines: 15, statements: 15}
|
|
}
|
|
}
|
|
});
|