-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
chore: migrate jest-config to TypeScript #7944
Conversation
6ca7e6f
to
cfa9b7a
Compare
jeysal@ce138f1 fixes most errors in not-too-ugly ways (but has some extracted variables that will cause changes in the build output). We should decide on some actual structural changes to make that fix especially the first one. |
cfa9b7a
to
fee16dd
Compare
Thanks again! Cherry-picked it, and did a rebase
It should be set to
Than should be allowed to be |
dddb962
to
25600ee
Compare
jeysal@b7caef6 brings DefaultConfig and ProjectConfig closer together, but there's more mismatch in existing keys than expected, so I didn't manage to finish it today. Also, I modified |
2d59350
to
4ead970
Compare
Rebased after merging #7964 which also added the |
4ead970
to
e062e3d
Compare
e062e3d
to
6a8799c
Compare
@SimenB okay. At least the huge |
If you feel up to it, I'd love a PR removing the cast |
@@ -90,6 +89,13 @@ async function runTestInternal( | |||
let testEnvironment = config.testEnvironment; | |||
|
|||
if (customEnvironment) { | |||
if (Array.isArray(customEnvironment)) { |
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.
I love it it when types catch a potential bug
Don't think it really makes sense to, when I tried to go through the mismatching keys it felt like I was just guessing which keys were allowed to be nullish going out of normalize etc... |
Codecov Report
@@ Coverage Diff @@
## master #7944 +/- ##
=========================================
- Coverage 64.54% 64.24% -0.3%
=========================================
Files 257 258 +1
Lines 10074 10117 +43
Branches 1587 1742 +155
=========================================
- Hits 6502 6500 -2
- Misses 3229 3234 +5
- Partials 343 383 +40
Continue to review full report at Codecov.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
This isn't ready for merge (of course I'm having issues withnormalize
...) Help greatly appreciated!I've purposefully not moved the config types into this package, even though it uses ESM so we would be able to re-export. The reason being the huge dependency tree of
jest-config
that would be unfortunate to impose on all consumers. Can do something about that after #7738.Built diff:
Test plan
Green CI (eventually)