mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
756b76a3b7
Adds `@testing-library/jest-dom/vitest` import to make semantic matchers available globally in all specs. Creates `test-browser-polyfills.ts` to shim `process.env` for Playwright browser runners where `picocolors` (a jest-dom transitive dependency) reads it at import time. Registers both files in `angular.json` setupFiles and `tsconfig.spec.json`. https://community.openproject.org/work_packages/75300
23 lines
426 B
JSON
23 lines
426 B
JSON
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"outDir": "./out-tsc/spec",
|
|
"types": [
|
|
"vitest/globals",
|
|
"@testing-library/jest-dom/vitest"
|
|
]
|
|
},
|
|
"files": [
|
|
"src/test-browser-polyfills.ts",
|
|
"src/test-setup.ts",
|
|
"src/test-providers.ts",
|
|
"src/polyfills.ts"
|
|
],
|
|
"include": [
|
|
"src/**/*.spec.ts",
|
|
"src/**/*.d.ts",
|
|
"src/main.ts",
|
|
"src/app/**/*.module.ts"
|
|
]
|
|
}
|