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

Draft
wants to merge 97 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 e644b54
🔍 Latest deploy log https://app.netlify.com/sites/reselect-docs/deploys/6646776ecbfaa60008161e07

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 from 7fd1677 to ef6c07f Compare May 7, 2024 16:23
@aryaemami59 aryaemami59 force-pushed the migrate-typetests-to-vitest branch from ef6c07f to b44c7e5 Compare May 7, 2024 16:28
  - 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 marked this pull request as draft May 10, 2024 19:22
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.

None yet

1 participant