-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Windows only - Jest testing files are included and try to run in the codebase #10420
Comments
Hey @jhnsntmthy Could you please add a link to a minimal reproduction repo? |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open! Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m Thanks again for being part of the Gatsby community! |
@timothyjoh did you manage to solve the issue? I'm getting the same issue here on windows. However, I do not own a mac machine so can't determine if this is a Windows issue. I'm currently running windows 10 I've followed the tutorials from the docs. I'm currently only running 1 test on the 404 page just to play around. this is the link to my github repo here i'm getting the following compilation error if that helps
I'll try my best to provide more info if required. I'm currently about to head out for a short vacation so i may not reply so often |
Description
I'm not having trouble running the tests per-se, but rather the test files show up in my browser when the code is all compiled together. I'm not specifically including them anywhere. This is giving me errors like "undefined function beforeEach, and function test"
Seems related to #7655 but maybe the opposite?
Steps to reproduce
Using the latest Gatsby: 2.0.63, babel core is at 7.2.0
Expected result
It should ignore the test.js files, as I am not directly including them
Actual result
I get an error page in the browser with ReferenceError: beforeEach is not defined
this also happens with
test
if i remove the beforeEach statementsThe whole site runs normally if I comment out all the tests or delete the files.
This only happens on windows, I'm successful on the mac
Environment
System:
OS: Windows 10
CPU: (12) x64 AMD Ryzen 5 1600X Six-Core Processor
Binaries:
Yarn: 1.12.1 - C:\Users\Tim\AppData\Roaming\npm\yarn.CMD
npm: 5.6.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 42.17134.1.0
npmPackages:
gatsby: ^2.0.52 => 2.0.63
gatsby-link: ^2.0.6 => 2.0.7
gatsby-plugin-no-sourcemaps: ^2.0.1 => 2.0.1
gatsby-plugin-react-helmet: ^3.0.1 => 3.0.4
gatsby-plugin-sass: ^2.0.3 => 2.0.7
gatsby-plugin-typescript: ^2.0.1 => 2.0.3
gatsby-remark-code-repls: ^2.0.1 => 2.0.2
gatsby-remark-component: ^1.1.3 => 1.1.3
gatsby-remark-embedded-codesandbox: ^1.2.0 => 1.2.0
gatsby-remark-prismjs: ^3.0.3 => 3.1.4
gatsby-source-filesystem: ^2.0.7 => 2.0.11
gatsby-transformer-json: ^2.1.5 => 2.1.6
gatsby-transformer-remark: ^2.1.11 => 2.1.15
The text was updated successfully, but these errors were encountered: