-
Notifications
You must be signed in to change notification settings - Fork 67
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
Freshly generated project has broken test on Windows #151
Comments
Oh hmm, yeah, looks like setupTests isn't being called properly. |
I found it's related to the globby in the modular/packages/modular-scripts/craco.config.js Lines 88 to 91 in 510a876
seems globby has some catches on Windows and produces nothing when searching any patterns will look into workarounds |
We could just not use globby here modular/packages/modular-scripts/craco.config.js Lines 88 to 89 in 510a876
maybe like... ["setupTests.js", "setupTests.ts", "setupTests.tsx"]
.map((p) => path.join(absoluteModularGlobalConfigsPath, p))
.filter((p) => fs.existsSync(p)); |
We should also run our CI tests on windows, I'll look into that later. |
Your code sliced worked in the above case but it was handy to keep some globing to keep giving those nice warnings about other "setupTests" files that might be found somewhere randomly in the package i.e. modular/packages/modular-scripts/craco.config.js Lines 72 to 78 in 510a876
|
Doesn't seem to be a problem on my Mac but decided to run on Windows in case everyone else wasn't.
I checked again, by pulling latest from master on both my machines -> rebuild -> re-add to global -> regenerate a test projects -> re-run tests
i guess it's related to jest dom not being added correctly?
The text was updated successfully, but these errors were encountered: