Skip to content

Commit

Permalink
chore: mock styles to prevent tests from failing #2179
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-mihok committed Nov 15, 2023
1 parent bb6c81d commit 1315b21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ module.exports = {
testEnvironment: "jsdom",
transformIgnorePatterns: [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|ts|tsx)$",
"^.+\\.module\\.(css|sass|scss)$"
// "^.+\\.module\\.(css|sass|scss)$"
],
modulePaths: [],
moduleNameMapper: {
"^react-native$": "react-native-web",
'^d3$': '<rootDir>/node_modules/d3/dist/d3.min.js',
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
'\\.(css)$': '<rootDir>/src/styleMock.js'
},
moduleFileExtensions: [
"web.js",
Expand Down
1 change: 1 addition & 0 deletions ui/src/styleMock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {};

0 comments on commit 1315b21

Please sign in to comment.