question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat: port all tests from v9 to v10

See original GitHub issue

Describe 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

Example

  1. Copy /packages/tests/server/interop/outputParser.test.ts -> /packages/tests/server/outputParser.test.ts
  2. Replace legacyRouterToServerAndClient with routerToServerAndClientNew
  3. Rewrite the routers using tRPC 10
  4. 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:closed
  • Created 10 months ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
nilskjcommented, Nov 23, 2022

I think my PR accidentally closed this whole issue πŸ˜… I think there are some tests left to port over.

2reactions
Nstttcommented, Nov 22, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found