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 /scripts/build.js | |
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 'scripts/build.js')
-rw-r--r-- | scripts/build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build.js b/scripts/build.js index 9b9b26e..ef2b998 100644 --- a/scripts/build.js +++ b/scripts/build.js | |||
@@ -2,7 +2,7 @@ import { build as esbuildBuild } from 'esbuild'; | |||
2 | import { join } from 'path'; | 2 | import { join } from 'path'; |
3 | import { build as viteBuild } from 'vite'; | 3 | import { build as viteBuild } from 'vite'; |
4 | 4 | ||
5 | import { fileURLToDirname } from '../config/build-common.js'; | 5 | import { fileURLToDirname } from '../config/utils.js'; |
6 | 6 | ||
7 | const thisDir = fileURLToDirname(import.meta.url); | 7 | const thisDir = fileURLToDirname(import.meta.url); |
8 | 8 | ||