diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-31 01:52:28 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-31 01:56:30 +0100 |
commit | 7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f (patch) | |
tree | f8c0450a6e1b62f7e7f8470efd375b3659b91b2b /package.json | |
parent | refactor: Install devtools extensions earlier (diff) | |
download | sophie-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 'package.json')
-rw-r--r-- | package.json | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package.json b/package.json index 22748f7..ab2fc9f 100644 --- a/package.json +++ b/package.json | |||
@@ -17,7 +17,7 @@ | |||
17 | "main": "packages/main/dist/index.cjs", | 17 | "main": "packages/main/dist/index.cjs", |
18 | "scripts": { | 18 | "scripts": { |
19 | "clean": "rimraf dist packages/*/dist packages/*/tsconfig.tsbuildinfo .vite", | 19 | "clean": "rimraf dist packages/*/dist packages/*/tsconfig.tsbuildinfo .vite", |
20 | "test": "yarn workspaces foreach -vpt run test", | 20 | "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", |
21 | "build": "node scripts/build.js", | 21 | "build": "node scripts/build.js", |
22 | "precompile": "cross-env MODE=production yarn run build", | 22 | "precompile": "cross-env MODE=production yarn run build", |
23 | "compile": "yarn precompile && yarn compile:electron-builder", | 23 | "compile": "yarn precompile && yarn compile:electron-builder", |
@@ -38,7 +38,7 @@ | |||
38 | ], | 38 | ], |
39 | "devDependencies": { | 39 | "devDependencies": { |
40 | "@electron/fuses": "^1.5.0", | 40 | "@electron/fuses": "^1.5.0", |
41 | "@types/jest": "^27.0.3", | 41 | "@types/jest": "^27.4.0", |
42 | "@vitejs/plugin-react": "^1.1.3", | 42 | "@vitejs/plugin-react": "^1.1.3", |
43 | "chokidar": "^3.5.2", | 43 | "chokidar": "^3.5.2", |
44 | "cross-env": "^7.0.3", | 44 | "cross-env": "^7.0.3", |
@@ -51,7 +51,7 @@ | |||
51 | "rollup": "^2.62.0", | 51 | "rollup": "^2.62.0", |
52 | "ts-jest": "^27.1.2", | 52 | "ts-jest": "^27.1.2", |
53 | "typescript": "^4.5.4", | 53 | "typescript": "^4.5.4", |
54 | "vite": "^2.7.9" | 54 | "vite": "^2.7.10" |
55 | }, | 55 | }, |
56 | "packageManager": "yarn@3.1.1", | 56 | "packageManager": "yarn@3.1.1", |
57 | "dependencies": { | 57 | "dependencies": { |