Skip to content
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

fix: ensure all packages correctly downlevel TS files #9715

Merged
merged 6 commits into from
Mar 26, 2020

Conversation

SimenB
Copy link
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

@@ -51,7 +51,8 @@ export default class CustomConsole extends Console {
);
}

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
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
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

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