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
Run jest's tests in the e2e tests #12202
Conversation
1be4a7e
to
5361232
Compare
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/30394/ |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1e40b57:
|
I'm not sure why |
Yep! |
Type error seems to be due to some mismatch between |
Thanks! I've fixed it now. |
Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
bumped = true; | ||
} | ||
} | ||
} | ||
|
||
if ("peerDependencies" in content) { | ||
bumpBabelDependency(content.peerDependencies); | ||
bumpBabelDependency(content.peerDependencies, "*"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is because yarn
was throwing for latest
in the peerDependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we can simply remove peerDependencies
😈.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will cause problems if one of the packages we test starts using PnP 😛
Ok this is ready 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moar tests!
CI=true yarn test-ci-partial packages | ||
CI=true yarn test-ci-partial e2e/__tests__/babel | ||
CI=true yarn test-ci-partial e2e/__tests__/transform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could do yarn test-ci-partial --ci packages e2e/__tests__/babel e2e/__tests__/transform
?
FWIW I just landed jestjs/jest#10653 which adds test-ci-partial:parallel
(which just removes the -i
argument) so if you have multiple cores available on CI you can speed it up.
yarn test-ci-partial:parallel --ci --max-workers $(nproc) packages e2e/__tests__/babel e2e/__tests__/transform
or something like that
I looked at
jest
's build process and I think that they usetsc
to build.d.ts
files, but Babel to compile.ts
files to.js
(@SimenB is this correct?).Since apparently we have some missing TS coverage, this would help preventing future regressions in real-world code.