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

[Other]: Module jest-environment-obsidian should have "jest-preset.js" or "jest-preset.json" file at the root. #2

Open
re4mat opened this issue Jul 26, 2023 · 0 comments

Comments

@re4mat
Copy link

re4mat commented Jul 26, 2023

Affected Version

0.0.1

Info

Description

After installing, when attempting to run a test via npm run test, I received the following error:

● Validation Error:

  Module jest-environment-obsidian should have "jest-preset.js" or "jest-preset.json" file at the root.

  Configuration Documentation:
  https://jestjs.io/docs/configuration

Environment

OS: Windows 10
Node: 18.16.1
Jest: 29.6.1

Steps to Reproduce

  1. Install jest-environment-obsidian via npm install --save-dev jest-environment-obsidian
  2. Change preset in jest.config.cjs to 'jest-environment-obsidian'
  3. Run test via npm run test

Workaround

I was able to clear this error by copying node_modules/jest-environment-obsidian/dist/jest-preset.js to node_modules/jest-environment-obsidian/.

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