> yarn jest
yarn run v1.19.2
$ /Users/aleksandra/workspace/test/node_modules/.bin/jest
● Validation Error:
Module blitz should have "jest-preset.js" or "jest-preset.json" file at the root.
Configuration Documentation:
https://jestjs.io/docs/configuration.html
What is the problem?
After creating a new javascript project with
blitz new test --js
, and runningyarn test
, it results in a validation error:The jest-preset.js, requires a tsconfig.json (https://github.com/blitz-js/blitz/blob/canary/packages/blitz/jest-preset.js#L5), which is then used to ensure any path aliases in tsconfig also work in jest (https://github.com/blitz-js/blitz/blob/canary/packages/blitz/jest-preset.js#L25). Apart from that, there are two references to
"<rootDir>/test/setup.ts"
while in JavaScript projects it should be a"<rootDir>/test/setup.js"
Paste all your error logs here:
Paste all relevant code snippets here:
n/a
What are detailed steps to reproduce this?
blitz new test --js
,yarn test
.Run
blitz -v
and paste the output here: