ant-design/components/__tests__/index.test.ts

14 lines
303 B
TypeScript
Raw Normal View History

2018-05-25 14:54:16 +08:00
const OLD_NODE_ENV = process.env.NODE_ENV;
process.env.NODE_ENV = 'development';
const antd = require('..');
describe('antd', () => {
2018-05-25 14:54:16 +08:00
afterAll(() => {
process.env.NODE_ENV = OLD_NODE_ENV;
});
it('exports modules correctly', () => {
expect(Object.keys(antd)).toMatchSnapshot();
});
});