From fc46a6207c890e862057b3645a6717a4334f3293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=89=A7=E6=AF=85?= Date: Mon, 20 Dec 2021 18:06:44 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20=E5=BF=85=E9=A1=BB?= =?UTF-8?q?=E8=A6=81=E5=8A=A0=E4=B8=8A=20jest.config.js=20=E5=90=A6?= =?UTF-8?q?=E5=88=99=20jest=20=E8=B7=91=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E4=BC=9A=E6=8A=A5=E9=94=99=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/code-generator/jest.config.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 packages/code-generator/jest.config.js diff --git a/packages/code-generator/jest.config.js b/packages/code-generator/jest.config.js new file mode 100644 index 000000000..0b213cd36 --- /dev/null +++ b/packages/code-generator/jest.config.js @@ -0,0 +1,9 @@ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + transformIgnorePatterns: ['/node_modules/(?!core-js)/'], + moduleFileExtensions: ['ts', 'tsx', 'js', 'json'], + collectCoverage: false, + collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/node_modules/**', '!**/vendor/**'], + testMatch: ['/tests/**/*.test.ts'], +};