fix(frontend/generator): fix failed Viz plugin build due to missing JSDOM config and dep (#30069)

Signed-off-by: hainenber <dotronghai96@gmail.com>
This commit is contained in:
Đỗ Trọng Hải 2024-10-05 00:04:30 +07:00 committed by GitHub
parent f314685a8e
commit 68c9a8177c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7564 additions and 3775 deletions

View File

@ -3,4 +3,5 @@ module.exports = {
moduleNameMapper: { moduleNameMapper: {
'\\.(gif|ttf|eot|png|jpg)$': '<rootDir>/test/__mocks__/mockExportString.js', '\\.(gif|ttf|eot|png|jpg)$': '<rootDir>/test/__mocks__/mockExportString.js',
}, },
testEnvironment: 'jsdom',
}; };

View File

@ -37,6 +37,7 @@
"@babel/cli": "^7.16.0", "@babel/cli": "^7.16.0",
"@types/jest": "^26.0.4", "@types/jest": "^26.0.4",
"jest": "^29.7.0", "jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"typescript": "^4.1.2" "typescript": "^4.1.2"
} }

View File

@ -19,7 +19,6 @@
import { t, validateNonEmpty } from '@superset-ui/core'; import { t, validateNonEmpty } from '@superset-ui/core';
import { import {
ControlPanelConfig, ControlPanelConfig,
sections,
sharedControls, sharedControls,
} from '@superset-ui/chart-controls'; } from '@superset-ui/chart-controls';