You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I used antd, and remove import plugin in babel config file.
npm run test --watchAll, I got error as below,
Could you help to solve this issue, thanks.
Test suite failed to run
D:\node_modules\antd\es\select\style\index.js:1
({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){import '../../style/index.less';
^^^^^^
SyntaxError: Cannot use import statement outside a module
3 | import { ItemSearch } from '../../../src/features/item-search';
4 | import { ErrorPage } from '../../../src/features/common';
> 5 | import { Select } from 'antd';
| ^
6 | import { SINGLE_REQUEST, BULK_UPLOAD } from '../../../src/common/constants';
7 |
8 | const state = {
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)
at Object.<anonymous> (tests/features/item-search/ItemSearch.test.js:5:1)
The text was updated successfully, but these errors were encountered:
When I used antd, and remove import plugin in babel config file.
npm run test --watchAll, I got error as below,
Could you help to solve this issue, thanks.
Test suite failed to run
The text was updated successfully, but these errors were encountered: