diff --git a/quickwit/quickwit-ui/monacoMock.js b/quickwit/quickwit-ui/mocks/monacoMock.js similarity index 100% rename from quickwit/quickwit-ui/monacoMock.js rename to quickwit/quickwit-ui/mocks/monacoMock.js diff --git a/quickwit/quickwit-ui/swaggerUIMock.js b/quickwit/quickwit-ui/mocks/swaggerUIMock.js similarity index 100% rename from quickwit/quickwit-ui/swaggerUIMock.js rename to quickwit/quickwit-ui/mocks/swaggerUIMock.js diff --git a/quickwit/quickwit-ui/mocks/x-charts.js b/quickwit/quickwit-ui/mocks/x-charts.js new file mode 100644 index 00000000000..4a777a1ce84 --- /dev/null +++ b/quickwit/quickwit-ui/mocks/x-charts.js @@ -0,0 +1 @@ +export const LineChart = ({ children }) => children; diff --git a/quickwit/quickwit-ui/package.json b/quickwit/quickwit-ui/package.json index 076792938e4..e09a771f21e 100644 --- a/quickwit/quickwit-ui/package.json +++ b/quickwit/quickwit-ui/package.json @@ -79,8 +79,9 @@ }, "jest": { "moduleNameMapper": { - "monaco-editor": "/monacoMock.js", - "swagger-ui-react": "/swaggerUIMock.js" + "monaco-editor": "/mocks/monacoMock.js", + "swagger-ui-react": "/mocks/swaggerUIMock.js", + "@mui/x-charts": "/mocks/x-charts.js" } } }