feat: port all tests from v9 to v10
See original GitHub issueDescribe the feature youβd like to request
We have a lot of tests that are outdated and using v9. We should have them all in v10-structure.
Good intro if you are curious about contributing to tRPC.
Describe the solution youβd like to see
Instructions
- https://github.com/trpc/trpc/blob/main/CONTRIBUTING.md
- Rewrite all of https://github.com/trpc/trpc/tree/main/packages/tests/server/interop to a nice v10 equivalent (the v10 tests are in the folder above)
- Some have equivalents already
- They can be done one-by-one
- Improvements on the general testing structure is also welcome
Example
- Copy
/packages/tests/server/interop/outputParser.test.ts
->/packages/tests/server/outputParser.test.ts
- Replace
legacyRouterToServerAndClient
withrouterToServerAndClientNew
- Rewrite the routers using tRPC 10
- Rewrite the calls using tRPC 10
Get paid
- We can pay $10-15 per test file rewritten if done well. $50 for bigger ones (like subscriptions and WebSockets).
- Once you get into the flow, it might not take more than 5 minutes per test file.
Full tree
βββ adapters
βΒ Β βββ express.test.tsx
βΒ Β βββ fastify.test.ts
βΒ Β βββ fetch.test.ts
βΒ Β βββ next.test.ts
βββ clientInternals.test.ts
βββ dataloader.test.ts
βββ errors.test.ts
βββ headers.test.tsx
βββ index.test.tsx
βββ inference.test.ts
βββ links.test.ts
βββ middleware.test.ts
βββ outputParser.test.ts
βββ rawFetch.test.tsx
βββ react
βΒ Β βββ __testHelpers.tsx
βΒ Β βββ dehydrate.test.tsx
βΒ Β βββ formatError.test.tsx
βΒ Β βββ infiniteQuery.test.tsx
βΒ Β βββ invalidateQueries.test.tsx
βΒ Β βββ prefetchQuery.test.tsx
βΒ Β βββ regression
βΒ Β βΒ Β βββ issue-1645-setErrorStatusSSR.test.tsx
βΒ Β βββ setInfiniteQueryData.test.tsx
βΒ Β βββ setQueryData.test.tsx
βΒ Β βββ useMutation.test.tsx
βΒ Β βββ useQuery.test.tsx
βΒ Β βββ useSubscription.test.tsx
βΒ Β βββ withTRPC.test.tsx
βββ regression
βΒ Β βββ issue-949-inferProcedureInput.test.ts
βΒ Β βββ issue-990-initialData.test.tsx
βββ responseMeta.test.ts
βββ router.test.ts
βββ routerMeta.test.ts
βββ transformer.test.ts
βββ validators.test.ts
Issue Analytics
- State:
- Created 10 months ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Unit Testing in Umbraco 9-10.x - Adolfi.dev
Unit Testing Umbraco (for v9-10+) project! It consists of only one single project but it includes all the code & test samples from...
Read more >Communication Guide - for Tricon v9βv10 Systems
Connecting a Tricon Serial Port to a TriStation PC . ... external device time prevails for all Triconex controllers on the network. Triconex...
Read more >IBM z Systems Development and Test Environment V10 ...
z Systems Development and Test Environment V10 offers flexible licensing options to meet the needs of both enterprise users who share anΒ ...
Read more >oak@v10.6.0 | Deno
Version 10.5.0. feat: application supports omitting options, defaults to port 0. You can now avoid "boilerplate" code, especially on Deploy with ApplicationΒ ...
Read more >cobas Liat System User Guide SW v3.3 v10 - Roche Diagnostics
Not all functionality described in this manual may be ... 9.0 (continued) ... Control test results of an assay tube lot are only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think my PR accidentally closed this whole issue π I think there are some tests left to port over.
Iβll give a hand with this one π Making one by one seems a good idea since other people might want to help as well.
Currently checking
validators.test.ts
.