-
- Downloads
Add experimental React+Redux Jest test
Showing
- frontend/src/metabase/components/EmptyState.jsx 1 addition, 2 deletionsfrontend/src/metabase/components/EmptyState.jsx
- frontend/src/metabase/dashboards/components/DashboardList.jsx 3 additions, 2 deletions...tend/src/metabase/dashboards/components/DashboardList.jsx
- frontend/src/metabase/dashboards/containers/Dashboards.spec.data.js 81 additions, 0 deletions...rc/metabase/dashboards/containers/Dashboards.spec.data.js
- frontend/src/metabase/dashboards/containers/Dashboards.spec.js 28 additions, 0 deletions...end/src/metabase/dashboards/containers/Dashboards.spec.js
- frontend/src/metabase/dashboards/containers/__snapshots__/Dashboards.spec.js.snap 183 additions, 0 deletions...shboards/containers/__snapshots__/Dashboards.spec.js.snap
- frontend/src/metabase/lib/formatting.js 1 addition, 1 deletionfrontend/src/metabase/lib/formatting.js
- frontend/test/__mocks__/fileMock.js 1 addition, 0 deletionsfrontend/test/__mocks__/fileMock.js
- frontend/test/__mocks__/styleMock.js 1 addition, 0 deletionsfrontend/test/__mocks__/styleMock.js
- package.json 9 additions, 0 deletionspackage.json
- yarn.lock 10 additions, 0 deletionsyarn.lock
frontend/test/__mocks__/fileMock.js
0 → 100644
frontend/test/__mocks__/styleMock.js
0 → 100644
... | ... | @@ -23,6 +23,7 @@ |
"history": "^4.5.0", | ||
"humanize-plus": "^1.8.1", | ||
"icepick": "^1.1.0", | ||
"identity-obj-proxy": "^3.0.0", | ||
"inflection": "^1.7.1", | ||
"isomorphic-fetch": "^2.2.1", | ||
"js-cookie": "^2.1.2", | ||
... | ... | @@ -173,11 +174,19 @@ |
] | ||
}, | ||
"jest": { | ||
"moduleNameMapper": { | ||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/frontend/test/__mocks__/fileMock.js", | ||
"\\.(css|less)$": "identity-obj-proxy", | ||
"^promise-loader": "<rootDir>/frontend/test/__mocks__/fileMock.js" | ||
}, | ||
"testPathIgnorePatterns": [ | ||
"<rootDir>/frontend/test/" | ||
], | ||
"modulePaths": [ | ||
"<rootDir>/frontend/src" | ||
], | ||
"setupFiles": [ | ||
"<rootDir>/frontend/test/metabase-bootstrap.js" | ||
] | ||
} | ||
} |
Please register or sign in to comment