We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can not use a api/jest.config.ts (TS version of the Jest config) as the name check in RW is hard coded: https://github.com/redwoodjs/redwood/blob/main/packages/cli/src/commands/test.js#L37
api/jest.config.ts
According to the Jest docos jest.config.ts is allowed.
jest.config.ts
Rename jest.config.js -> jest.config.ts
jest.config.js
yarn rw test api
Error: Missing Jest config file api/jest.config.js To add this file, run npx @redwoodjs/codemods update-jest-config
npx @redwoodjs/codemods update-jest-config
System: OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish) Shell: 5.1.16 - /bin/bash Binaries: Node: 16.15.1 - /tmp/xfs-298f0c87/node Yarn: 3.2.2 - /tmp/xfs-298f0c87/yarn Browsers: Chrome: 103.0.5060.134 Firefox: 103.0 npmPackages: @redwoodjs/core: 1.2.1 => 1.2.1
The text was updated successfully, but these errors were encountered:
Hello @richard-stafflink - thanks for raising the issue.
To be clearer, is the problem that you can't run the codemod? Or that when you run jest it doesn't use your TS jest.config file?
Confirming that the CLI (when running rw test) only checks for jest.config.js - which is the issue here.
rw test
Sorry, something went wrong.
Thanks for the quick turnaround - much appreciated 👍
dac09
Successfully merging a pull request may close this issue.
What's not working?
I can not use a
api/jest.config.ts
(TS version of the Jest config) as the name check in RW is hard coded:https://github.com/redwoodjs/redwood/blob/main/packages/cli/src/commands/test.js#L37
According to the Jest docos
jest.config.ts
is allowed.How do we reproduce the bug?
Rename
jest.config.js
->jest.config.ts
yarn rw test api
What's your environment? (If it applies)
System: OS: Linux 5.15 Ubuntu 22.04 LTS 22.04 LTS (Jammy Jellyfish) Shell: 5.1.16 - /bin/bash Binaries: Node: 16.15.1 - /tmp/xfs-298f0c87/node Yarn: 3.2.2 - /tmp/xfs-298f0c87/yarn Browsers: Chrome: 103.0.5060.134 Firefox: 103.0 npmPackages: @redwoodjs/core: 1.2.1 => 1.2.1
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: