Open Amy-B-Tradition opened 3 months ago
The CLI migrate command does migration automatically. What kind of wizard would you suggest?
I would suggest that the migration should happen when the jest.config file has a cjs extension, since you need that with vite and it's a valid extension for a jest.config file.
Version
^29.1.1
Steps to reproduce
I'm in the middle of a Parcel 1 > Vite upgrade. After getting my tests running again, I got the following message:
ts-jest[backports] (WARN) Your Jest configuration is outdated. Use the CLI to help migrating it: ts-jest config:migrate <config-file>.
So I entered
ts-jest config:migrate jest.config.cjs
(File extension change was needed becausetype: "module"
was added to package.json for vite).Expected behavior
Some sort of upgrade wizard or something?
Actual behavior
ts-jest[cli] (FATAL) Configuration file jest.config.cjs must be a JavaScript or JSON file.
Debug log
None
Additional context
No response
Environment