diff --git a/packages/dashboard-frontend/jest.config.check.js b/packages/dashboard-frontend/jest.config.check.js index b0bda6e16..34ea2bd2b 100644 --- a/packages/dashboard-frontend/jest.config.check.js +++ b/packages/dashboard-frontend/jest.config.check.js @@ -10,30 +10,16 @@ * Red Hat, Inc. - initial API and implementation */ -const base = require('../../jest.config.base'); - module.exports = { - ...base, + roots: ['/src'], + transform: { + '^.+\\.tsx?$': 'ts-jest' + }, + testRegex: '(/src/.+\\.check)\\.tsx?$', moduleNameMapper: { '\\.(css|less|sass|scss|styl)$': 'identity-obj-proxy', - '\\.(gif|ttf|eot|svg)$': '/__mocks__/fileMock.js', - 'monaco-editor-core': 'monaco-editor-core/esm/vs/editor/editor.main', - 'vscode-languageserver-protocol/lib/utils/is': - 'vscode-languageserver-protocol/lib/common/utils/is', - 'vscode-languageserver-protocol/lib/main': 'vscode-languageserver-protocol/lib/node/main', }, - modulePathIgnorePatterns: [ - '__mocks__/index.tsx', - ], testEnvironment: 'jsdom', - transform: { - '^.*\\.tsx?$': [ - 'ts-jest', - { - diagnostics: true, - }, - ], - }, setupFilesAfterEnv: ['./jest.setup.ts'], setupFiles: ['./src/inversify.config.ts'], }; diff --git a/packages/dashboard-frontend/jest.config.js b/packages/dashboard-frontend/jest.config.js index 1d65bf40c..5df44f6c5 100644 --- a/packages/dashboard-frontend/jest.config.js +++ b/packages/dashboard-frontend/jest.config.js @@ -26,7 +26,6 @@ module.exports = { }, modulePathIgnorePatterns: [ '__mocks__/index.tsx', - 'src/__tests__/workspaceCreationTimeCheck.spec.tsx', ], testEnvironment: 'jsdom', transform: { diff --git a/packages/dashboard-frontend/src/__tests__/workspaceCreationTimeCheck.spec.tsx b/packages/dashboard-frontend/src/__tests__/workspaceCreationTimeCheck.check.tsx similarity index 100% rename from packages/dashboard-frontend/src/__tests__/workspaceCreationTimeCheck.spec.tsx rename to packages/dashboard-frontend/src/__tests__/workspaceCreationTimeCheck.check.tsx