From d738e3feb4bc175469eb29ed00528196ba4d4c50 Mon Sep 17 00:00:00 2001 From: Josh McFarlin Date: Wed, 9 Feb 2022 14:02:07 -0500 Subject: [PATCH] fix(jest): fix jest config error preventing testing --- .eslintignore | 2 +- jest.config.js | 2 +- jest.setup.js => jest.setup.ts | 0 tsconfig.json | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename jest.setup.js => jest.setup.ts (100%) diff --git a/.eslintignore b/.eslintignore index 945020d..2593809 100644 --- a/.eslintignore +++ b/.eslintignore @@ -14,4 +14,4 @@ docs/ rollup.config.js jest.config.js -jest.setup.js +jest.setup.ts diff --git a/jest.config.js b/jest.config.js index 3340093..3888c8c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,7 +1,7 @@ module.exports = { testEnvironment: "jsdom", roots: ["./src"], - setupFilesAfterEnv: ["./jest.setup.js"], + setupFilesAfterEnv: ["./jest.setup.ts"], moduleFileExtensions: ["js", "ts", "tsx"], testPathIgnorePatterns: ["node_modules/"], transform: { diff --git a/jest.setup.js b/jest.setup.ts similarity index 100% rename from jest.setup.js rename to jest.setup.ts diff --git a/tsconfig.json b/tsconfig.json index 175a9f0..238398a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,6 +19,6 @@ "experimentalDecorators": true, "forceConsistentCasingInFileNames": true }, - "include": ["src/**/*"], + "include": ["src/**/*", "./jest.setup.ts"], "exclude": ["node_modules", "build"] }