From 67fe4a5da9d33405587e7fd2eef30241baa729a8 Mon Sep 17 00:00:00 2001 From: Ville Brofeldt Date: Mon, 7 Feb 2022 18:17:49 +0200 Subject: [PATCH] fix(jest): add superset-frontend to testRegex --- superset-frontend/jest.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/jest.config.js b/superset-frontend/jest.config.js index cf9c85c9b0da..aa930ed87abb 100644 --- a/superset-frontend/jest.config.js +++ b/superset-frontend/jest.config.js @@ -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)$': '/spec/__mocks__/mockExportObject.js', '\\.(gif|ttf|eot|png|jpg)$': '/spec/__mocks__/mockExportString.js',