From aab57680467a315acd9b62626faf59d95ac60950 Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Sat, 4 Mar 2023 03:56:36 +0100 Subject: [PATCH] fix: test --- jest.config.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 jest.config.js diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..fd96875 --- /dev/null +++ b/jest.config.js @@ -0,0 +1,16 @@ +/** @type {import('ts-jest').JestConfigWithTsJest} */ +module.exports = { + preset: "ts-jest", + testEnvironment: "node", + testMatch: ["**/*.test.ts"], + transform: { + // '^.+\\.[tj]sx?$' to process js/ts with `ts-jest` + // '^.+\\.m?[tj]sx?$' to process js/ts/mjs/mts with `ts-jest` + "^.+\\.tsx?$": [ + "ts-jest", + { + isolatedModules: true, + }, + ], + }, +};