aboutsummaryrefslogtreecommitdiffstats
path: root/packages/main/package.json
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-31 01:52:28 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-31 01:56:30 +0100
commit7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f (patch)
treef8c0450a6e1b62f7e7f8470efd375b3659b91b2b /packages/main/package.json
parentrefactor: Install devtools extensions earlier (diff)
downloadsophie-7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f.tar.gz
sophie-7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f.tar.zst
sophie-7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f.zip
test: Add tests for main package
- Changed jest to run from the root package and reference the packages as projects. This required moving the base jest config file away from the project root. - Module isolation seems to prevent ts-jest from loading the shared package, so we disabled it for now. - To better facilitate mocking, services should be split into interfaces and implementation - Had to downgrade to chald 4.1.2 as per https://github.com/chalk/chalk/releases/tag/v5.0.0 at least until https://github.com/microsoft/TypeScript/issues/46452 is resolved.
Diffstat (limited to 'packages/main/package.json')
-rw-r--r--packages/main/package.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/main/package.json b/packages/main/package.json
index 99451bd..eb2ecf6 100644
--- a/packages/main/package.json
+++ b/packages/main/package.json
@@ -10,7 +10,7 @@
10 "dependencies": { 10 "dependencies": {
11 "@sophie/service-shared": "workspace:*", 11 "@sophie/service-shared": "workspace:*",
12 "@sophie/shared": "workspace:*", 12 "@sophie/shared": "workspace:*",
13 "chalk": "^5.0.0", 13 "chalk": "^4.1.2",
14 "electron": "16.0.5", 14 "electron": "16.0.5",
15 "json5": "^2.2.0", 15 "json5": "^2.2.0",
16 "lodash-es": "^4.17.21", 16 "lodash-es": "^4.17.21",
@@ -27,6 +27,7 @@
27 "@types/node": "^17.0.5", 27 "@types/node": "^17.0.5",
28 "electron-devtools-installer": "^3.2.0", 28 "electron-devtools-installer": "^3.2.0",
29 "esbuild": "^0.14.9", 29 "esbuild": "^0.14.9",
30 "jest": "^27.4.5",
30 "rimraf": "^3.0.2", 31 "rimraf": "^3.0.2",
31 "typescript": "^4.5.4" 32 "typescript": "^4.5.4"
32 } 33 }