diff --git a/jest.config.js b/jest.config.js index 6fe44e336..df63a63ec 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,8 +8,8 @@ module.exports = { '/app/scripts/lib/createRPCMethodTrackingMiddleware.js', '/app/scripts/migrations/*.js', '/app/scripts/platforms/*.js', - '/shared/**/*.js', - '/ui/**/*.js', + '/shared/**/*.(js|ts|tsx)', + '/ui/**/*.(js|ts|tsx)', ], coverageDirectory: './coverage', coveragePathIgnorePatterns: ['.stories.js', '.snap'], @@ -43,7 +43,7 @@ module.exports = { '/app/scripts/migrations/*.test.js', '/app/scripts/platforms/*.test.js', '/shared/**/*.test.(js|ts)', - '/ui/**/*.test.(js|ts)', + '/ui/**/*.test.(js|ts|tsx)', ], testTimeout: 2500, // We have to specify the environment we are running in, which is jsdom. The diff --git a/tsconfig.json b/tsconfig.json index 49cc11a4e..287dd1bbb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,10 +18,15 @@ "**/*.test.js", "**/*.test.ts", "**/*.test.tsx", + "**/jest-coverage/**/*", + "**/__mocks__/**/*", + "**/storybook-build/**/*", ".storybook/**/*", "builds/**/*", "dist/**/*", - "node_modules/**" + "node_modules/**", + "development/ts-migration-dashboard/build/**/*", + "development/ts-migration-dashboard/intermediate/**/*" ], "extends": "@tsconfig/node16/tsconfig.json", "paths": {