【问题标题】:Validation Error: Preset @vue/cli-plugin-unit-jest not found验证错误:未找到预设 @vue/cli-plugin-unit-jest
【发布时间】:2021-03-18 19:33:30
【问题描述】:

在 PHPStorm 中执行 Jest Test 时,我在控制台中收到以下错误。

Debugger listening on ws://127.0.0.1:58148/15341a94-78d6-4475-94d6-c89c7e9e3c39
For help, see: https://nodejs.org/en/docs/inspector
Debugger attached.
● Validation Error:

  Preset @vue/cli-plugin-unit-jest not found.

  Configuration Documentation:
  https://facebook.github.io/jest/docs/configuration.html

Waiting for the debugger to disconnect...

我尝试$ vue add @vue/cli-plugin-unit-jest 以添加插件,但错误仍然存​​在。

【问题讨论】:

    标签: vue.js jestjs vue-cli


    【解决方案1】:

    在我的例子中,Jest Run/Debug Configuration 'Jest Package' 路径必须更改为 /your-project-path/node_modules/@vue/cli-service

    【讨论】:

      猜你喜欢
      • 2021-06-23
      • 2021-03-15
      • 2020-04-09
      • 1970-01-01
      • 2019-12-28
      • 2019-06-12
      • 2021-06-24
      • 2019-04-18
      • 1970-01-01
      相关资源
      最近更新 更多