Skip to content

Conversation

@mrazauskas
Copy link
Contributor

Summary

This PR is fixing type errors in test files of jest-util package.

Test plan

Green CI.

Comment on lines -26 to +28
// @ts-expect-error
get foo() {
fn();
return;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TypeScript was insisting that a getter should return something.

process.env.TERM = term;

const isInteractive = (
require('../isInteractive') as typeof import('../isInteractive')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To avoid repeating this line, it made sense to employ each here.

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

nice!

@SimenB SimenB merged commit c53bdbc into jestjs:main Oct 18, 2022
@mrazauskas mrazauskas deleted the refactor-jest-util-fix-type-errors-in-tests branch October 18, 2022 07:28
@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 Nov 18, 2022
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.

3 participants