Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preset @nuxt/test-utils not found with jest@28 #400

Closed
ckouder opened this issue Apr 28, 2023 · 2 comments
Closed

Preset @nuxt/test-utils not found with jest@28 #400

ckouder opened this issue Apr 28, 2023 · 2 comments

Comments

@ckouder
Copy link

ckouder commented Apr 28, 2023

After I followed instruction to install @nuxt/test-utils, the preset is not found in jest. Here is a minimal reproduction.

https://stackblitz.com/edit/nuxt-starter-mzh22b?file=package.json,jest.config.js,test%2Fexample.spec.js,README.md

package.json

{
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "HOST=0.0.0.0 nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare",
    "test": "jest"
  },
  "devDependencies": {
    "@nuxt/test-utils": "^3.4.2",
    "@types/node": "^18",
    "jest": "^28.1.3",
    "nuxt": "^3.4.2"
  }
}

jest.config.js

module.exports = {
  preset: '@nuxt/test-utils',
};

Not sure what happened here

@danielroe danielroe mentioned this issue Dec 2, 2023
userquin pushed a commit to userquin/test-utils that referenced this issue Mar 17, 2024
This issue was closed.
This issue is being transferred. Timeline may not be complete until it finishes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant