From 7108c642f4ff6dc5f0c4d30b8a8960064ff8e90f Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Fri, 31 Dec 2021 01:52:28 +0100 Subject: 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. --- packages/service-preload/esbuild.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/service-preload/esbuild.config.js') diff --git a/packages/service-preload/esbuild.config.js b/packages/service-preload/esbuild.config.js index 3c67b31..b73a071 100644 --- a/packages/service-preload/esbuild.config.js +++ b/packages/service-preload/esbuild.config.js @@ -1,5 +1,6 @@ -import { chrome, fileURLToDirname } from "../../config/build-common.js"; -import { getConfig } from '../../config/esbuild-config.js'; +import { chrome } from '../../config/buildConstants.js'; +import { getConfig } from '../../config/esbuildConfig.js'; +import { fileURLToDirname } from '../../config/utils.js'; export default getConfig({ absWorkingDir: fileURLToDirname(import.meta.url), -- cgit v1.2.3-54-g00ecf