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

Migrate type tests to Vitest #697

Open
wants to merge 58 commits into
base: master
Choose a base branch
from

Conversation

aryaemami59
Copy link
Contributor

This PR:

  • Converts typetest.ts file extensions to test-d.ts to be compatible with Vitest.
  • Converts expectType() to either assertType() or expectTypeOf().toMatchTypeOf().
  • Converts expectExactType to expectTypeOf().toEqualTypeOf().
  • Converts lone-blocks to test or describe blocks.

Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for reselect-docs canceled.

Name Link
🔨 Latest commit 634c5d5
🔍 Latest deploy log https://app.netlify.com/sites/reselect-docs/deploys/672b81dac416bb0008769467

Copy link

codesandbox-ci bot commented Feb 8, 2024

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.

@aryaemami59 aryaemami59 marked this pull request as ready for review February 24, 2024 12:04
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 2 times, most recently from ef6c07f to b44c7e5 Compare May 7, 2024 16:28
@aryaemami59 aryaemami59 marked this pull request as draft May 10, 2024 19:22
@aryaemami59 aryaemami59 marked this pull request as ready for review June 1, 2024 02:30
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 2 times, most recently from 492bf78 to f5ffebb Compare June 21, 2024 09:47
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 3 times, most recently from 78c3325 to d7a07ff Compare August 10, 2024 15:47
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 17 times, most recently from 0c7a1ed to d6435a4 Compare September 17, 2024 08:11
  - 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`.
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 4 times, most recently from a9f36b7 to 1d6ff8d Compare October 3, 2024 02:57
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 2 times, most recently from d64095b to 814cafa Compare October 15, 2024 03:53
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch 2 times, most recently from 7c47f3d to fe1421a Compare October 22, 2024 00:27
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.

1 participant