ale*_*der 6 typescript reactjs jestjs enzyme
配置以下内容后:
import * as enzyme from 'enzyme';
import * as Adapter from 'enzyme-adapter-react-16';
enzyme.configure({ adapter: new Adapter() });
Run Code Online (Sandbox Code Playgroud)
运行时jest --watch,一切都按预期工作。但是,在运行时webpack --watch,我得到:
TS2350: Only a void function can be called with the 'new' keyword.
我找不到解决方案,我不明白出了什么问题。
我很想帮忙。谢谢。
| 归档时间: |
|
| 查看次数: |
1390 次 |
| 最近记录: |