Skip to content

Migrate type tests to Vitest #697

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

Open
wants to merge 60 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
2c451fc
Remove unnecessary `include` and `typecheck` from `vitest.config.mts`
aryaemami59 Feb 8, 2024
06145f6
Rename `test/tsconfig.json` to `tsconfig.test.json`
aryaemami59 Feb 8, 2024
48e7b81
Revamp type tests config
aryaemami59 Feb 8, 2024
89baf66
Update CI to include correct tsconfig
aryaemami59 Feb 8, 2024
409bf82
Fix `testTypes` import
aryaemami59 Feb 8, 2024
5b8faee
Convert `assertType` usages to `.toEqualTypeOf` calls
aryaemami59 Feb 8, 2024
c5f8f03
Simplify type tests in `createStructuredSelector.withTypes.test-d.ts`
aryaemami59 Feb 8, 2024
b781981
Simplify the type tests in `createStructuredSelector.test-d.ts`
aryaemami59 Feb 8, 2024
2fb9b58
Simplify the type tests inside `createSelector.withTypes.test-d.ts`
aryaemami59 Feb 8, 2024
1681375
Add more meaningful assertions to `deepNesting.test-d.ts`
aryaemami59 Feb 8, 2024
233367a
Remove `expectType` and `expectExactType`
aryaemami59 Feb 8, 2024
1feb590
Remove `argsMemoize.typetest.ts` file
aryaemami59 Feb 8, 2024
ebc915a
Replace `expectExactType` calls with `expectTypeOf().toEqualTypeOf()`
aryaemami59 Feb 8, 2024
448ff60
Remove duplicate tests for `typedStructuredSelectorCreator`
aryaemami59 Feb 8, 2024
ee226e6
Convert functions and lone-blocks to `test` blocks
aryaemami59 Feb 8, 2024
0ec452f
Move `test.ts` into `type-tests` folder
aryaemami59 Feb 8, 2024
1fe9770
Remove `typesTestUtils.ts` as it is no longer needed
aryaemami59 Feb 8, 2024
378acb0
Update `test` command in `package.json` to use `yarn bin vitest`
aryaemami59 Feb 8, 2024
6f7011f
Fix `test:typescript` command
aryaemami59 Feb 8, 2024
afd022d
Rename `test:typescript` command to `type-tests`
aryaemami59 Feb 8, 2024
313be9e
Fix imports inside test files
aryaemami59 Feb 8, 2024
65bd936
Fix type issues in `createSelector.withTypes.test-d.ts`
aryaemami59 Feb 8, 2024
047a564
Add `tsconfig.vitest-temp.json` to `.gitignore` file
aryaemami59 Feb 8, 2024
ad9ad27
Move "nested selector" type test to `deepNesting.test-d.ts`
aryaemami59 Feb 9, 2024
17f8b8f
Move `lruMemoize` type tests into its own file
aryaemami59 Feb 9, 2024
afe10bc
Move `createSelectorCreator` type tests into its own file
aryaemami59 Feb 9, 2024
c28daec
Remove duplicate`createStructuredSelector.withTypes()` type tests
aryaemami59 Feb 9, 2024
8c06726
Move `createStructuredSelector` type tests into its own file
aryaemami59 Feb 9, 2024
eb46ed1
Move `createSelector` type tests into its own file
aryaemami59 Feb 9, 2024
09ebd58
Move some more `lruMemoize` type tests into its own file
aryaemami59 Feb 9, 2024
be27163
Move some more `createSelectorCreator` type tests into its own file
aryaemami59 Feb 9, 2024
e994832
Move type tests inside `test.ts` into their respective files
aryaemami59 Feb 9, 2024
05bc1d1
Remove `test.ts`
aryaemami59 Feb 9, 2024
c910805
Make `describe` titles more consistent across type tests
aryaemami59 Feb 9, 2024
2ad733d
De-duplicate `AnyFunction` definitions
aryaemami59 Feb 9, 2024
b67abce
Fix type issues in `scripts/writeGitVersion.mjs`
aryaemami59 Feb 21, 2024
8e0abec
Rename `setup.vitest.ts` to `setup.ts`
aryaemami59 Feb 21, 2024
c67ae78
Change `setupFiles` to `['test/setup.ts']`
aryaemami59 Feb 21, 2024
273f163
Replace references of `typescript_test` to `type-tests`
aryaemami59 Feb 21, 2024
2c06cc3
Remove Node ESM setup from `vitest.config.mts`
aryaemami59 Feb 24, 2024
fd8456c
Provide the correct `tsconfig` file to `tsup`
aryaemami59 Sep 17, 2024
8db970b
Add `yalc` to `.gitignore`
aryaemami59 Apr 29, 2024
dae5530
Run both runtime and type tests against the `dist` folder during CI
aryaemami59 Feb 8, 2024
c44cc25
Remove dead code from `computationComparisons.spec.tsx`
aryaemami59 May 10, 2024
eeb7c58
Remove unnecessary test from `computationComparisons.spec.tsx`
aryaemami59 May 10, 2024
1145ebd
Remove unnecessary `async` keyword
aryaemami59 May 10, 2024
c426272
Fix some issues that were left over from the switch to `weakMapMemoize`
aryaemami59 May 10, 2024
b75daaa
Disable `watch` by default
aryaemami59 May 10, 2024
bc1bee6
Migrate type tests in `lruMemoize.test-d.ts` to Vitest
aryaemami59 May 16, 2024
fcec478
Migrate some assertions in `createSelectorCreator.test-d.ts` to Vitest
aryaemami59 May 16, 2024
58daa41
Migrate some assertions in `createSelector.test-d.ts` to Vitest
aryaemami59 May 16, 2024
6433a6a
Migrate some assertions in `createSelector.test-d.ts` to Vitest
aryaemami59 May 16, 2024
cbf01c4
Migrate the rest of the type tests in `argsMemoize.test-d.ts` to Vitest
aryaemami59 May 31, 2024
d8f569c
Set `pool` to `threads` for performance tests
aryaemami59 Aug 21, 2024
a6a5ad9
Remove `esbuild` from `resolutions` field
aryaemami59 Sep 12, 2024
eefd5f0
Silence `console` output by disabling `identityFunctionCheck`
aryaemami59 Sep 12, 2024
d9a3502
Correct minor spelling issues
aryaemami59 Dec 31, 2024
c8abc7c
Bump `vitest` to version 3.1.2
aryaemami59 Aug 21, 2024
63c6516
Migrate remaining type tests to `vitest`
aryaemami59 Feb 28, 2025
0f09170
Add `@types/node` to `devDependencies`
aryaemami59 Feb 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add @types/node to devDependencies
  • Loading branch information
aryaemami59 committed Apr 27, 2025
commit 0f091704c5d8a252a8d7456b5e1304b28c5e2dfe
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@reduxjs/toolkit": "^2.0.1",
"@testing-library/react": "^14.1.2",
"@types/lodash": "^4.14.175",
"@types/node": "^22.15.2",
"@types/react": "^18.2.38",
"@types/react-dom": "^18.2.17",
"@types/shelljs": "^0.8.11",
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ __metadata:
languageName: node
linkType: hard

"@types/node@npm:*":
"@types/node@npm:*, @types/node@npm:^22.15.2":
version: 22.15.2
resolution: "@types/node@npm:22.15.2"
dependencies:
Expand Down Expand Up @@ -4064,6 +4064,7 @@ __metadata:
"@reduxjs/toolkit": "npm:^2.0.1"
"@testing-library/react": "npm:^14.1.2"
"@types/lodash": "npm:^4.14.175"
"@types/node": "npm:^22.15.2"
"@types/react": "npm:^18.2.38"
"@types/react-dom": "npm:^18.2.17"
"@types/shelljs": "npm:^0.8.11"
Expand Down