vue项目使用jest报错Cannot read properties of undefined?

FAIL src/test/counter.spec.js
● Test suite failed to run

  ● Test suite failed to run

    TypeError: Cannot read properties of undefined (reading 'bind')

  at jestAdapter (node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:35:56)

jest.config.js
image.png

package.json
image.png

阅读 1.6k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题