From 1a1c62f18514668fd538be4834a4aca971be0ee9 Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Wed, 6 Nov 2024 12:01:14 -0800 Subject: [PATCH] Move Jest config to TypeScript file Reasons: 1. This is officially recommended 2. Reduces clutter in package.json 3. Allows type checking and IDE hints for config options. --- jest.config.ts | 9 +++++++++ package.json | 5 ----- 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 jest.config.ts diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 000000000..44a46f41f --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,9 @@ +import type { Config } from 'jest'; + +const config: Config = { + transformIgnorePatterns: [ + "jest-runner", + ], +}; + +export default config; diff --git a/package.json b/package.json index 1acf4194d..f36ed6180 100644 --- a/package.json +++ b/package.json @@ -33,11 +33,6 @@ "smoke-test:ci": "start-server-and-test server http://localhost:4000 smoke-test", "diff-lang": "./scripts/diff-lang.js" }, - "jest": { - "transformIgnorePatterns": [ - "jest-runner" - ] - }, "dependencies": { "@babel/core": "^7.3.4", "@babel/plugin-proposal-class-properties": "^7.3.4",