mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
Enable hot module replacement for React via react-hot-loader (#5841)
* Install react-hot-loader * enable react-hot-reload for Explore, Dashboard, Profile and Sqllab * enable hmr for welcome page * enable hmr for welcome page * enable react hot module replacement for addSlice * fix lint * fix Welcome test * remove eslint comment
This commit is contained in:
committed by
Chris Williams
parent
517fea33b6
commit
6d573724aa
@@ -4,17 +4,17 @@ import { shallow } from 'enzyme';
|
||||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import App from '../../../src/welcome/App';
|
||||
import Welcome from '../../../src/welcome/Welcome';
|
||||
|
||||
describe('App', () => {
|
||||
describe('Welcome', () => {
|
||||
const mockedProps = {};
|
||||
it('is valid', () => {
|
||||
expect(
|
||||
React.isValidElement(<App {...mockedProps} />),
|
||||
React.isValidElement(<Welcome {...mockedProps} />),
|
||||
).to.equal(true);
|
||||
});
|
||||
it('renders 4 Tab, Panel, and Row components', () => {
|
||||
const wrapper = shallow(<App {...mockedProps} />);
|
||||
const wrapper = shallow(<Welcome {...mockedProps} />);
|
||||
expect(wrapper.find(Tab)).to.have.length(3);
|
||||
expect(wrapper.find(Panel)).to.have.length(3);
|
||||
expect(wrapper.find(Row)).to.have.length(3);
|
||||
Reference in New Issue
Block a user