From 5a690e8a9647d7bc6fad6197cf1c3bbec0bba5cc Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Sat, 2 Mar 2024 21:08:58 +0000 Subject: [PATCH] build(jest): use ts-jest isolatedModules --- .gitpod.yml | 2 +- jest.config.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 1cb42bf..231f1d7 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -4,7 +4,7 @@ tasks: - init: | yarn install - yarn test + yarn test --maxWorkers=30% github: # https://www.gitpod.io/docs/prebuilds/#configure-prebuilds prebuilds: diff --git a/jest.config.js b/jest.config.js index 3bb6e8f..94efdb1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,7 @@ /** @type {import('jest').Config} */ module.exports = { automock: false, - transform: {"\\.ts$": ['ts-jest']}, + transform: { + "\\.ts$": ['ts-jest', { isolatedModules: true }], + }, };