question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vue add unit-jest failed

See original GitHub issue

Version

3.8.1

Reproduction link

https://registry.npmjs.org/vue-cli-plugin-unit-jest

Environment info


Environment Info:

  System:
    OS: macOS 10.14.5
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  Binaries:
    Node: 10.15.3 - /usr/local/opt/node@10/bin/node
    Yarn: 1.16.0 - /usr/local/bin/yarn
    npm: 6.4.1 - /usr/local/opt/node@10/bin/npm
  Browsers:
    Chrome: 75.0.3770.100
    Firefox: Not Found
    Safari: 12.1.1
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.0.0 
    @vue/babel-preset-app:  3.8.0 
    @vue/babel-preset-jsx:  1.0.0 
    @vue/babel-sugar-functional-vue:  1.0.0 
    @vue/babel-sugar-inject-h:  1.0.0 
    @vue/babel-sugar-v-model:  1.0.0 
    @vue/babel-sugar-v-on:  1.0.0 
    @vue/cli-overlay:  3.8.0 
    @vue/cli-plugin-babel: ^3.5.0 => 3.8.0 
    @vue/cli-plugin-eslint: ^3.5.0 => 3.8.0 
    @vue/cli-service: ^3.5.0 => 3.8.4 
    @vue/cli-shared-utils:  3.8.0 
    @vue/component-compiler-utils:  2.6.0 
    @vue/eslint-config-airbnb: ^4.0.0 => 4.0.0 
    @vue/preload-webpack-plugin:  1.1.0 
    @vue/test-utils: ^1.0.0-beta.29 => 1.0.0-beta.29 
    @vue/web-component-wrapper:  1.2.0 
    babel-helper-vue-jsx-merge-props:  2.0.3 
    eslint-plugin-vue: ^5.0.0 => 5.2.3 (4.7.1)
    typescript: ^3.5.2 => 3.5.2 
    vue: 2.6.6 => 2.6.6 
    vue-clipboard2: ^0.3.0 => 0.3.0 
    vue-eslint-parser:  5.0.0 (2.0.3)
    vue-hot-reload-api:  2.3.3 
    vue-image-crop-upload: ^2.5.0 => 2.5.0 
    vue-loader:  15.7.0 
    vue-router: ^3.0.1 => 3.0.6 
    vue-style-loader:  4.1.2 
    vue-template-compiler: 2.6.6 => 2.6.6 
    vue-template-es2015-compiler:  1.9.1 
    vuedraggable: ^2.23.0 => 2.23.0 
    vuex: ^3.0.1 => 3.1.1 
  npmGlobalPackages:
    @vue/cli: 3.8.2


Steps to reproduce

run command: vue add unit-jest

What is expected?

unit-jest dependencies can successfully added

What is actually happening?

error An unexpected error occurred: “https://registry.npmjs.org/vue-cli-plugin-unit-jest: Not found”.


seems like vue-cli-plugin-unit-jest has already moved to @vue/cli-plugin-unit-jest. If my assume is correct please update the correct registry to add script

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

15reactions
sodateacommented, Jul 15, 2019

Actually in the v3 documentation, the command is: vue add @vue/unit-jest

1reaction
rudolfbykercommented, Sep 3, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to add unit-jest plugin to existing project - Get Help
I am trying to add the unit-jest plugin to an existing project. Unfortunately, when I run vue invoke unit-jest , I get the...
Read more >
How to add Vue Test Utils with Jest to already existing ...
From your project root directory, enter the following command to add @vue/test-utils and jest : vue add unit-jest.
Read more >
vue/cli-plugin-unit-jest
Start using @vue/cli-plugin-unit-jest in your project by running `npm i @vue/cli-plugin-unit-jest`. There are 58 other projects in the npm ...
Read more >
Setting up for TDD - Vue Testing Handbook
Choose "Manually select features" and "Unit Testing", and "Jest" for the ... Traditionally when doing TDD, you write the failing test first, ...
Read more >
Cannot run Jest unit tests with @vue/cli-service : WEB-34734
Click on "play" icon beside the HelloWorld.spec.js test. You should see the error message as depicted in attached image. The test as scaffolded...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found