From 7b18e15e5bcd40c4fd69b980eda80b1a8b172e19 Mon Sep 17 00:00:00 2001 From: Christian Georgi Date: Tue, 13 Jul 2021 13:54:18 +0200 Subject: [PATCH] Jest config in package.json again --- hello/jest.config.js | 13 ------------- hello/package.json | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 13 deletions(-) delete mode 100644 hello/jest.config.js diff --git a/hello/jest.config.js b/hello/jest.config.js deleted file mode 100644 index 4c5b3a89..00000000 --- a/hello/jest.config.js +++ /dev/null @@ -1,13 +0,0 @@ -module.exports = { - testEnvironment: 'node', - preset: "ts-jest", - globals: { - "ts-jest": { - diagnostics: { - ignoreCodes: [ - 151001 // see https://githubmemory.com/repo/kulshekhar/ts-jest/issues/2722 - ] - } - } - } -} diff --git a/hello/package.json b/hello/package.json index 8e0b374f..deafc5e0 100644 --- a/hello/package.json +++ b/hello/package.json @@ -11,5 +11,19 @@ "@types/node": "^15.12.0", "ts-jest": "^27.0.2", "typescript": "^4.3.5" + }, + "jest": { + "testEnvironment": "node", + "preset": "ts-jest", + "globals": { + "ts-jest": { + "diagnostics": { + "_comment": "see https://githubmemory.com/repo/kulshekhar/ts-jest/issues/2722", + "ignoreCodes": [ + 151001 + ] + } + } + } } }