Skip to content

Commit

Permalink
fixup! fixup! feat: added PR time check for dashboard required for cr…
Browse files Browse the repository at this point in the history
…eating a workspace
  • Loading branch information
olexii4 committed Sep 14, 2023
1 parent 1b5009c commit cec85ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
24 changes: 5 additions & 19 deletions packages/dashboard-frontend/jest.config.check.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,16 @@
* Red Hat, Inc. - initial API and implementation
*/

const base = require('../../jest.config.base');

module.exports = {
...base,
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest'
},
testRegex: '(/src/.+\\.check)\\.tsx?$',
moduleNameMapper: {
'\\.(css|less|sass|scss|styl)$': 'identity-obj-proxy',
'\\.(gif|ttf|eot|svg)$': '<rootDir>/__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'],
};
1 change: 0 additions & 1 deletion packages/dashboard-frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ module.exports = {
},
modulePathIgnorePatterns: [
'__mocks__/index.tsx',
'src/__tests__/workspaceCreationTimeCheck.spec.tsx',
],
testEnvironment: 'jsdom',
transform: {
Expand Down

0 comments on commit cec85ea

Please sign in to comment.