webstrom执行jest的spec测试报错

报错信息:TypeError: Class constructor Spec cannot be invoked without 'new'

解决方法:
as a workaround, please try disabling jest.test.tree.use.jasmine.reporter registry key:

  • "Help | Find Action..." on the main menu;
  • Type "registry" and click "Registry..." found element;
  • Find jest.test.tree.use.jasmine.reporter key and disable it.

你可能感兴趣的:(webstrom执行jest的spec测试报错)