From dd84b9d64fb98746a230cd24233ff50a562c39c9 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Fri, 28 Apr 2023 01:36:44 +0800 Subject: --- cli/scripts/templates/jest.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 cli/scripts/templates/jest.config.js (limited to 'cli/scripts/templates/jest.config.js') diff --git a/cli/scripts/templates/jest.config.js b/cli/scripts/templates/jest.config.js new file mode 100644 index 0000000..0548306 --- /dev/null +++ b/cli/scripts/templates/jest.config.js @@ -0,0 +1,10 @@ +module.exports = { + roots: ["/src"], + transform: { + "^.+\\.tsx?$": "ts-jest", + }, + // testRegex: '(/__tests__/.*(\\.|/)(test|spec))\\.tsx?$', + moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], + modulePathIgnorePatterns: ["/src/__fixtures__"], + preset: "ts-jest", +}; -- cgit v1.2.3-70-g09d2