build(test): run unit tests with vitest and jsdom
Karma needed headless Chrome. Vitest with jsdom runs with no browser. Lighthouse CI now gets Chrome from @puppeteer/browsers. Two CSS font tests are dropped: jsdom does not apply real CSS.
This commit is contained in:
1 parent
dd7c9f6e3d
commit
4e59770e53
14 files changed
+751
-1865
No files matched your search
+4
-10
@@ -6,7 +6,7 @@
|
||||
"start": "ng serve",
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
"test": "ng test --watch=false",
|
||||
"lint": "ng lint",
|
||||
"i18n:check": "node scripts/check-i18n.mjs"
|
||||
},
|
||||
@@ -38,20 +38,14 @@
|
||||
"@lhci/cli": "^0.15.1",
|
||||
"@puppeteer/browsers": "3.2.4",
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
"@types/jasmine": "~7.0.0",
|
||||
"@webgpu/types": "^0.1.74",
|
||||
"angular-eslint": "22.6.0",
|
||||
"eslint": "^10.12.0",
|
||||
"jasmine-core": "^7.0.2",
|
||||
"karma": "^6.4.4",
|
||||
"karma-chrome-launcher": "^3.2.0",
|
||||
"karma-coverage": "^2.2.1",
|
||||
"karma-jasmine": "^5.1.0",
|
||||
"karma-jasmine-html-reporter": "^2.2.0",
|
||||
"puppeteer": "^25.13.0",
|
||||
"jsdom": "^30.1.2",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"typescript": "~6.0.3",
|
||||
"typescript-eslint": "^8.71.1"
|
||||
"typescript-eslint": "^8.71.1",
|
||||
"vitest": "^5.0.4"
|
||||
},
|
||||
"overrides": {
|
||||
"tmp": "^0.2.3",
|
||||
|
||||
Reference in new issue
Block a user