Skip to content

Commit 749087c

Browse files
committed
Update tests for not found component
1 parent ca6dea6 commit 749087c

File tree

6 files changed

+107
-96
lines changed

6 files changed

+107
-96
lines changed

frontend/__mocks__/styleMock.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const styleMock = {};
2+
3+
export default styleMock;

frontend/jest.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ const config: Config = {
9090
// ],
9191

9292
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
93-
// moduleNameMapper: {},
93+
moduleNameMapper: {
94+
'\\.(css)$': '<rootDir>/__mocks__/styleMock.ts',
95+
'\\.(svg)$': '<rootDir>/__mocks__/styleMock.ts',
96+
},
9497

9598
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
9699
// modulePathIgnorePatterns: [],

frontend/package-lock.json

Lines changed: 77 additions & 77 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)