diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-09-22 04:51:16 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-09-22 04:51:16 +0900 |
| commit | 8e6f1508ed465069cebffdd8003904a9096617f9 (patch) | |
| tree | e61000105fc9c1afba43a6ccce4293ec775bacbc /packages/backend/jest.config.cjs | |
| parent | Fix ioredis import typo (#9099) (diff) | |
| download | misskey-8e6f1508ed465069cebffdd8003904a9096617f9.tar.gz misskey-8e6f1508ed465069cebffdd8003904a9096617f9.tar.bz2 misskey-8e6f1508ed465069cebffdd8003904a9096617f9.zip | |
use swc for jest
Diffstat (limited to 'packages/backend/jest.config.cjs')
| -rw-r--r-- | packages/backend/jest.config.cjs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/packages/backend/jest.config.cjs b/packages/backend/jest.config.cjs index c5c3d4c6f1..61f408c1cb 100644 --- a/packages/backend/jest.config.cjs +++ b/packages/backend/jest.config.cjs @@ -61,14 +61,6 @@ module.exports = { // A set of global variables that need to be available in all test environments globals: { - "ts-jest": { - "useESM": true, - tsconfig: "test/tsconfig.json", - isolatedModules: true, - diagnostics: { - exclude: ['**'], - }, - } }, // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers. @@ -105,7 +97,7 @@ module.exports = { // notifyMode: "failure-change", // A preset that is used as a base for Jest's configuration - preset: "ts-jest/presets/js-with-ts-esm", + //preset: "ts-jest/presets/js-with-ts-esm", // Run tests from one or more projects // projects: undefined, @@ -185,12 +177,7 @@ module.exports = { // A map from regular expressions to paths to transformers transform: { - "<regex_match_files>": [ - "ts-jest", - { - "useESM": true - } - ] + "^.+\\.(t|j)sx?$": ["@swc/jest"], }, // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation |