diff --git a/tests/__snapshots__/index.test.js.snap b/tests/__snapshots__/index.test.js.snap index dd970127b7..d55e20ffe3 100644 --- a/tests/__snapshots__/index.test.js.snap +++ b/tests/__snapshots__/index.test.js.snap @@ -52,3 +52,58 @@ Array [ "Upload", ] `; + +exports[`antd dist files exports modules correctly 2`] = ` +Array [ + "Affix", + "Anchor", + "AutoComplete", + "Alert", + "BackTop", + "Badge", + "Breadcrumb", + "Button", + "Calendar", + "Card", + "Collapse", + "Carousel", + "Cascader", + "Checkbox", + "Col", + "DatePicker", + "Dropdown", + "Form", + "Icon", + "Input", + "InputNumber", + "Layout", + "LocaleProvider", + "message", + "Menu", + "Modal", + "notification", + "Pagination", + "Popconfirm", + "Popover", + "Progress", + "Radio", + "Rate", + "Row", + "Select", + "Slider", + "Spin", + "Steps", + "Switch", + "Table", + "Transfer", + "Tree", + "TreeSelect", + "Tabs", + "Tag", + "TimePicker", + "Timeline", + "Tooltip", + "Mention", + "Upload", +] +`; diff --git a/tests/index.test.js b/tests/index.test.js index 5c293fe636..6a7b6e673d 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -10,11 +10,13 @@ describe('antd dist files', () => { } const antd = require('../dist/antd'); // eslint-disable-line global-require + const antdInComponents = require('../components/'); // eslint-disable-line global-require // https://github.com/ant-design/ant-design/issues/1638 // https://github.com/ant-design/ant-design/issues/1968 it('exports modules correctly', () => { expect(Object.keys(antd)).toMatchSnapshot(); + expect(Object.keys(antdInComponents)).toMatchSnapshot(); }); // https://github.com/ant-design/ant-design/issues/1970