chore(monorepo/client): reintegrate tests

This commit is contained in:
Elian Doran 2025-04-18 17:16:03 +03:00
parent 12bdf5adde
commit f0d365e336
No known key found for this signature in database
6 changed files with 38 additions and 8 deletions

View File

@ -78,7 +78,6 @@
"eslint-plugin-simple-import-sort": "12.1.1",
"esm": "3.2.25",
"globals": "16.0.0",
"happy-dom": "17.4.4",
"jsdoc": "4.0.4",
"lorem-ipsum": "2.0.8",
"rcedit": "4.0.1",

View File

@ -20,7 +20,8 @@
"type": "module",
"main": "index.js",
"scripts": {
"build:webpack": "tsx node_modules/webpack/bin/webpack.js -c webpack.config.ts"
"build:webpack": "tsx node_modules/webpack/bin/webpack.js -c webpack.config.ts",
"test": "vitest"
},
"devDependencies": {
"@excalidraw/excalidraw": "0.18.0",
@ -77,6 +78,7 @@
"css-loader": "7.1.2",
"postcss-loader": "8.1.1",
"eslint-linter-browserify": "9.24.0",
"@eslint/js": "9.24.0"
"@eslint/js": "9.24.0",
"happy-dom": "17.4.4"
}
}

View File

@ -7,7 +7,7 @@ export default defineConfig({
...configDefaults.exclude,
"build/**",
],
setupFiles: ["./test/setup.ts"],
setupFiles: ["./spec/setup.ts"],
environment: "happy-dom",
coverage: {
reporter: [ "text", "html" ],

25
package-lock.json generated
View File

@ -48,6 +48,7 @@
"electron": "35.1.5",
"eslint-linter-browserify": "9.24.0",
"force-graph": "1.49.5",
"happy-dom": "17.4.4",
"i18next": "25.0.0",
"i18next-http-backend": "3.0.2",
"jquery": "3.7.1",
@ -9337,6 +9338,30 @@
"dev": true,
"license": "MIT"
},
"node_modules/happy-dom": {
"version": "17.4.4",
"resolved": "https://registry.npmjs.org/happy-dom/-/happy-dom-17.4.4.tgz",
"integrity": "sha512-/Pb0ctk3HTZ5xEL3BZ0hK1AqDSAUuRQitOmROPHhfUYEWpmTImwfD8vFDGADmMAX0JYgbcgxWoLFKtsWhcpuVA==",
"dev": true,
"license": "MIT",
"dependencies": {
"webidl-conversions": "^7.0.0",
"whatwg-mimetype": "^3.0.0"
},
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/happy-dom/node_modules/whatwg-mimetype": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz",
"integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==",
"dev": true,
"license": "MIT",
"engines": {
"node": ">=12"
}
},
"node_modules/has": {
"version": "1.0.4",
"dev": true,

View File

@ -13,10 +13,14 @@
"packages/*"
],
"scripts": {
"chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
"chore:update-build-info": "tsx ./scripts/update-build-info.ts",
"client:test": "npm --workspace=apps/client test",
"client:build": "npm --workspace=apps/client build:webpack",
"server:test": "npm --workspace=apps/server test",
"server:coverage": "npm --workspace=apps/server coverage"
"server:coverage": "npm --workspace=apps/server coverage",
"chore:ci-update-nightly-version": "tsx ./scripts/update-nightly-version.ts",
"chore:update-build-info": "tsx ./scripts/update-build-info.ts"
},
"devDependencies": {
"tsx": "^4.19.3"