diff options
author | 2021-12-31 01:52:28 +0100 | |
---|---|---|
committer | 2021-12-31 01:56:30 +0100 | |
commit | 7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f (patch) | |
tree | f8c0450a6e1b62f7e7f8470efd375b3659b91b2b /packages/preload/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 'packages/preload/package.json')
-rw-r--r-- | packages/preload/package.json | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/preload/package.json b/packages/preload/package.json index e6dd0ee..9818ba8 100644 --- a/packages/preload/package.json +++ b/packages/preload/package.json | |||
@@ -6,7 +6,6 @@ | |||
6 | "type": "module", | 6 | "type": "module", |
7 | "types": "dist-types/index.d.ts", | 7 | "types": "dist-types/index.d.ts", |
8 | "scripts": { | 8 | "scripts": { |
9 | "test": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js", | ||
10 | "typecheck": "tsc" | 9 | "typecheck": "tsc" |
11 | }, | 10 | }, |
12 | "dependencies": { | 11 | "dependencies": { |
@@ -16,7 +15,7 @@ | |||
16 | "mobx-state-tree": "^5.1.0" | 15 | "mobx-state-tree": "^5.1.0" |
17 | }, | 16 | }, |
18 | "devDependencies": { | 17 | "devDependencies": { |
19 | "@types/jest": "^27.0.3", | 18 | "@types/jest": "^27.4.0", |
20 | "jest": "^27.4.5", | 19 | "jest": "^27.4.5", |
21 | "jest-mock": "^27.4.2", | 20 | "jest-mock": "^27.4.2", |
22 | "jsdom": "^19.0.0", | 21 | "jsdom": "^19.0.0", |