mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
Build: optimize frontend build configs to improve superset-ui-plugin dev experience (#9326)
* Upgrade webpack, babel and React * Upgrade all Babel related packages Also remove babel-plugin-css-modules-transform that is not in use. * Remvoe tslib as dependency * Remove unnecesary packages
This commit is contained in:
@@ -196,12 +196,20 @@ describe('SaveModal', () => {
|
||||
|
||||
describe('should always reload or redirect', () => {
|
||||
let wrapper;
|
||||
let windowLocation;
|
||||
|
||||
beforeEach(() => {
|
||||
wrapper = getWrapper();
|
||||
windowLocation = window.location;
|
||||
// To bypass "TypeError: Cannot redefine property: assign"
|
||||
Object.defineProperty(window, 'location', {
|
||||
value: { ...windowLocation, assign: () => {} },
|
||||
});
|
||||
sinon.stub(window.location, 'assign');
|
||||
});
|
||||
afterEach(() => {
|
||||
window.location.assign.restore();
|
||||
Object.defineProperty(window, 'location', windowLocation);
|
||||
});
|
||||
|
||||
it('Save & go to dashboard', done => {
|
||||
|
||||
Reference in New Issue
Block a user