Skip to content

Commit

Permalink
Merge pull request #4993 from quickwit-oss/ddelemeny/jest-mocks
Browse files Browse the repository at this point in the history
Reorganize jest mocks, add `@mui/x-charts` mock
  • Loading branch information
trinity-1686a authored May 16, 2024
2 parents bfec818 + 0cdd7a8 commit 0ab72ed
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions quickwit/quickwit-ui/mocks/x-charts.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const LineChart = ({ children }) => children;
5 changes: 3 additions & 2 deletions quickwit/quickwit-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@
},
"jest": {
"moduleNameMapper": {
"monaco-editor": "<rootDir>/monacoMock.js",
"swagger-ui-react": "<rootDir>/swaggerUIMock.js"
"monaco-editor": "<rootDir>/mocks/monacoMock.js",
"swagger-ui-react": "<rootDir>/mocks/swaggerUIMock.js",
"@mui/x-charts": "<rootDir>/mocks/x-charts.js"
}
}
}

0 comments on commit 0ab72ed

Please sign in to comment.