Skip to content

Commit

Permalink
fix jest markdown mappers
Browse files Browse the repository at this point in the history
  • Loading branch information
znamenskii-ilia committed Oct 2, 2024
1 parent d2482ad commit 89cd928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/client/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ module.exports = {
"<rootDir>/node_modules/(?!codemirror|konva|react-dnd|dnd-core|@babel|(@blueprintjs)|@github|lodash-es|@draft-js-plugins|react-documents|linkedom|assert-never|axios)",
],
moduleNameMapper: {
"react-markdown":
"<rootDir>/node_modules/react-markdown/react-markdown.min.js",
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js",
"\\.svg$": "<rootDir>/test/__mocks__/svgMock.js",
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|txt)$":
Expand Down
2 changes: 2 additions & 0 deletions app/client/packages/design-system/widgets/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module.exports = {
testEnvironment: "jsdom",
moduleNameMapper: {
"\\.(css)$": "<rootDir>../../../test/__mocks__/styleMock.js",
"react-markdown":
"<rootDir>/node_modules/react-markdown/react-markdown.min.js",
},
globals: {
"ts-jest": {
Expand Down

0 comments on commit 89cd928

Please sign in to comment.