Skip to content

fix: ensure all packages correctly downlevel TS files#9715

Merged
SimenB merged 6 commits intojestjs:masterfrom
SimenB:assert-all-packages-downlevel
Mar 26, 2020
Merged

fix: ensure all packages correctly downlevel TS files#9715
SimenB merged 6 commits intojestjs:masterfrom
SimenB:assert-all-packages-downlevel

Conversation

@SimenB
Copy link
Copy Markdown
Member

@SimenB SimenB commented Mar 26, 2020

Summary

In #9705 I just tested with pretty-format - seems I forgot to update a few package.jsons. This also uncovered a few missing types fields as well, so fixing those at the same time.

I also rolled back on syntax that downlevel doesn't support and worked around another bug.

Fixes #9714.

Test plan

I've now verified typescript@3.4 can compile the entire jest package, not just pretty-format and what that pulls in


assert(value: unknown, message?: string | Error): asserts value {
// use `asserts` when https://github.com/sandersn/downlevel-dts/issues/32 is fixed
assert(value: unknown, message?: string | Error): void {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimenB
Copy link
Copy Markdown
Member Author

SimenB commented Mar 26, 2020

I've tried adding a test now that actually runs tsc@3.4 on the built project. Hopefully it fails, then passes when I fix the error.

EDIT: OK, it failed.
image

Fixing the error and pushing now

EDIT2: yay, it passed
image

@github-actions
Copy link
Copy Markdown

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.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Import issues in latest version of jest packages (25.2.2)

2 participants