-
-
Notifications
You must be signed in to change notification settings - Fork 500
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
"craco test" does not respect babel plugins #50
Comments
Hi @Dakkers I tried to run the test with a react-mobx observer (as a decorator) using the "@babel/plugin-proposal-decorators" plugin with the legacy option and it works fine. Have you changed your npm test script to call craco instead of CRA?
|
yes, I have done that, hence also mentioning directly running the executable also is not working 😿 |
Can you setup a gtihub repository that reproduce the problem? |
I created an example here: https://github.com/stam/craco-test-example FAIL src/App.test.js
Test Suites: 1 failed, 1 total Watch Usage: Press w to show more. |
Thank you @stam |
Hey guys The problem is fixed in version I am going away for a few days, I will publish it as the latest version when I get back. |
Fix for config as a function (related to issue #50)
Here's my config:
npm test
(or./node_modules/.bin/craco test
) results in the following error:Craco version: 3.2.0
React-Scripts version: 2.1.1
Test file content:
The text was updated successfully, but these errors were encountered: