@vue/cli-plugin-unit-jest/presets/typescript-and-babel not found
See original GitHub issueVersion
5.0.0-alpha.8
Environment info
Environment Info:
System:
OS: macOS 11.2.3
CPU: (12) x64 Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz
Binaries:
Node: 14.15.5 - ~/.nvm/versions/node/v14.15.5/bin/node
Yarn: 1.22.5 - ~/.yarn/bin/yarn
npm: 6.14.11 - ~/.nvm/versions/node/v14.15.5/bin/npm
Browsers:
Chrome: 89.0.4389.90
Edge: 89.0.774.57
Firefox: 85.0.2
Safari: 14.0.3
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.2.1
@vue/babel-helper-vue-transform-on: 1.0.2
@vue/babel-plugin-jsx: 1.0.3
@vue/babel-plugin-transform-vue-jsx: 1.2.1
@vue/babel-preset-app: 5.0.0-alpha.8
@vue/babel-preset-jsx: 1.2.4
@vue/babel-sugar-composition-api-inject-h: 1.2.1
@vue/babel-sugar-composition-api-render-instance: 1.2.4
@vue/babel-sugar-functional-vue: 1.2.2
@vue/babel-sugar-inject-h: 1.2.2
@vue/babel-sugar-v-model: 1.2.3
@vue/babel-sugar-v-on: 1.2.3
@vue/cli-overlay: 5.0.0-alpha.8
@vue/cli-plugin-babel: 5.0.0-alpha.8 => 5.0.0-alpha.8
@vue/cli-plugin-eslint: 5.0.0-alpha.8 => 5.0.0-alpha.8
@vue/cli-plugin-router: 5.0.0-alpha.8 => 5.0.0-alpha.8
@vue/cli-plugin-typescript: 5.0.0-alpha.8 => 5.0.0-alpha.8
@vue/cli-plugin-unit-jest: ^5.0.0-alpha.8 => 5.0.0-alpha.8
@vue/cli-plugin-vuex: 5.0.0-alpha.8
@vue/cli-service: 5.0.0-alpha.8 => 5.0.0-alpha.8
@vue/cli-shared-utils: 5.0.0-alpha.8
@vue/component-compiler-utils: 3.2.0
@vue/eslint-config-typescript: ^7.0.0 => 7.0.0
@vue/test-utils: ^1.1.3 => 1.1.3
@vue/web-component-wrapper: 1.3.0
eslint-plugin-vue: ^7.8.0 => 7.8.0
jest-serializer-vue: 2.0.2
typescript: ~4.2.3 => 4.2.3
vue: ^2.6.12 => 2.6.12
vue-eslint-parser: 7.6.0
vue-hot-reload-api: 2.3.4
vue-loader: 16.1.2 (15.9.6)
vue-router: ^3.5.1 => 3.5.1
vue-style-loader: 4.1.3
vue-template-compiler: ^2.6.12 => 2.6.12
vue-template-es2015-compiler: 1.9.1
npmGlobalPackages:
@vue/cli: 5.0.0-alpha.8
Steps to reproduce
run vue-cli-service test:unit
What is expected?
tests run
What is actually happening?
@vue/cli-plugin-unit-jest/presets/typescript-and-babel not found
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
"preset @vue/cli-plugin-unit-jest/presets/typescript-and-babel ...
Validation Error: Preset @vue/cli-plugin-unit-jest/presets/typescript-and-babel not found. I am using vue 2 with composition api plugin and ...
Read more >@vue/cli-plugin-unit-jest - npm
unit-jest plugin for vue-cli. Latest version: 5.0.8, last published: 6 months ago. Start using @vue/cli-plugin-unit-jest in your project by ...
Read more >Migrate from v3 - Vue CLI
Vue Router and Vuex Now Have Corresponding CLI Plugins # · The default directory structure was changed: src/store.js moved to src/store/index.
Read more >@vue/cli-plugin-unit-jest | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >vue typescript cannot find module - You.com | The search ...
module.exports = { preset: '@vue/cli-plugin-unit-jest/presets/typescript-and-babel', testEnvironment: 'node' }. Open side panel.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved this problem with update jest plugin from: @vue/cli-plugin-unit-jest": “^3.12.1” to: @vue/cli-plugin-unit-jest": “^4.5.0”
@sodatea, Since
ts-jest
is optional dependency there is not warning during installation. It would be nice to add some message like “You should install ts-jest dependency” as fallback. Currently jest showsPreset @vue/cli-plugin-unit-jest/presets/typescript-and-babel not found.
because there is error produced byrequire.resolve('ts-jest')
.