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 type tests not checking files #2548

Merged
merged 2 commits into from
Jul 27, 2022

Conversation

Shrugsy
Copy link
Collaborator

@Shrugsy Shrugsy commented Jul 27, 2022

Partially reverts some changes from #2409

#2409 Updated @testing-library/user-event from ^13.1.5 -> ^14.2.0. As part of the upgrade, user-event internally referenced the ClipboardItem type, which was not globally available for TS versions < 4.4 (see https://stackoverflow.com/a/61505395 for more info). @FaberVitale added a declaration file to address this, but it seems to have prevented any other files being included by tsconfig except for the declaration file itself.

Hence, the type-tests part of the github workflow hasn't actually been checking anything.

This PR reverts those changes, downgrading user-event back to ^13.1.5, and reverting the changes to tsconfig.test.json, allowing the type-tests command to once again check all files.

Note: If anyone is able to get the ClipboardItem type declaration to be respected by user-event's own declaration files, a further PR is welcome.

@Shrugsy
Copy link
Collaborator Author

Shrugsy commented Jul 27, 2022

As a sanity check, here is a failing test run with TS next (Version 4.8.0-dev.20220726). Note that this is currently expected to fail, and will be addressed by #2547

https://github.com/Shrugsy/redux-toolkit/runs/7532322057?check_suite_focus=true

@netlify
Copy link

netlify bot commented Jul 27, 2022

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 3223822
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/62e09e21063495000888e63a
😎 Deploy Preview https://deploy-preview-2548--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codesandbox-ci
Copy link

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

Sandbox Source
Vanilla Configuration
Vanilla Typescript Configuration
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration

@markerikson
Copy link
Collaborator

Huzzah!

@markerikson markerikson merged commit 4a333c2 into reduxjs:master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants