ant-design/components/__tests__/index.test.ts
MadCcc 0d7c87421a
chore: remove babel-plugin-import warning (#37975)
* chore: remove babel-plugin-import warning

* chore: update test case

* chore: code clean
2022-10-12 19:52:39 +08:00

14 lines
303 B
TypeScript

const OLD_NODE_ENV = process.env.NODE_ENV;
process.env.NODE_ENV = 'development';
const antd = require('..');
describe('antd', () => {
afterAll(() => {
process.env.NODE_ENV = OLD_NODE_ENV;
});
it('exports modules correctly', () => {
expect(Object.keys(antd)).toMatchSnapshot();
});
});