-
Notifications
You must be signed in to change notification settings - Fork 674
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
Migrate type tests to Vitest #697
Open
aryaemami59
wants to merge
60
commits into
reduxjs:master
Choose a base branch
from
aryaemami59:migrate-typetests-to-vitest
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Migrate type tests to Vitest #697
aryaemami59
wants to merge
60
commits into
reduxjs:master
from
aryaemami59:migrate-typetests-to-vitest
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for reselect-docs canceled.
|
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. |
ef6c07f
to
b44c7e5
Compare
492bf78
to
f5ffebb
Compare
78c3325
to
d7a07ff
Compare
282544d
to
d7a07ff
Compare
0c7a1ed
to
d6435a4
Compare
- There were multiple `store.dispatch` calls that were not needed. These were removed to clean up the test file and speed up execution of tests.
- This was done mainly to speed up executions of unit tests.
- Looks like some of the code in `computationComparisons.spec.tsx` wasn't properly updated after we switched the default memoization function from `lruMemoize` to `weakMapMemoize`. These have been updated to their correct implementations. - Correct residual naming inconsistencies from the previous `defaultMemoize` to `lruMemoize` renaming. All references to `default` have been updated to `lru`.
d47b112
to
ced8c43
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
typetest.ts
file extensions totest-d.ts
to be compatible with Vitest.expectType()
to eitherassertType()
orexpectTypeOf().toMatchTypeOf()
.expectExactType
toexpectTypeOf().toEqualTypeOf()
.test
ordescribe
blocks.