Skip to content

Commit

Permalink
fix(jest): add superset-frontend to testRegex (#18601)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Feb 7, 2022
1 parent 1720fa6 commit cebff83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset-frontend/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
*/

module.exports = {
testRegex: '\\/(spec|src|plugins|packages)\\/.*(_spec|\\.test)\\.[jt]sx?$',
testRegex:
'\\/superset-frontend\\/(spec|src|plugins|packages)\\/.*(_spec|\\.test)\\.[jt]sx?$',
moduleNameMapper: {
'\\.(css|less|geojson)$': '<rootDir>/spec/__mocks__/mockExportObject.js',
'\\.(gif|ttf|eot|png|jpg)$': '<rootDir>/spec/__mocks__/mockExportString.js',
Expand Down

0 comments on commit cebff83

Please sign in to comment.