You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Install jest-environment-obsidian via npm install --save-dev jest-environment-obsidian
Change preset in jest.config.cjs to 'jest-environment-obsidian'
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/.
The text was updated successfully, but these errors were encountered:
Affected Version
0.0.1
Info
Description
After installing, when attempting to run a test via
npm run test
, I received the following error:Environment
OS: Windows 10
Node: 18.16.1
Jest: 29.6.1
Steps to Reproduce
jest-environment-obsidian
vianpm install --save-dev jest-environment-obsidian
preset
injest.config.cjs
to'jest-environment-obsidian'
npm run test
Workaround
I was able to clear this error by copying
node_modules/jest-environment-obsidian/dist/jest-preset.js
tonode_modules/jest-environment-obsidian/
.The text was updated successfully, but these errors were encountered: