Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit

Permalink
chore: move some tests to be contextual (trpc#5420)
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT authored Feb 1, 2024
1 parent b085bbd commit 59a0d2b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pnpm test-watch react
pnpm test-watch 3085
```

Testing is currently coalesced in [./packages/tests](./packages/tests); we import the different libs from here, this makes it easier for us to do integration testing + getting test coverage on the whole codebase.
Test are mainly coalesced in [./packages/tests](./packages/tests); we import the different libs from here, this makes it easier for us to do integration testing.

### Linting

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { initTRPC } from '@trpc/server';
import { initTRPC } from './initTRPC';
import type {
CombinedDataTransformer,
DataTransformerOptions,
} from '@trpc/server/unstable-core-do-not-import';
} from './transformer';

test('default transformer', () => {
const t = initTRPC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { TRPCRouterRecord } from '@trpc/server';
import { initTRPC } from '@trpc/server';
import type { inferRootTypes } from '@trpc/server/unstable-core-do-not-import';
import type { inferRootTypes } from '.';
import type { TRPCRouterRecord } from '..';
import { initTRPC } from '..';

test('mergeRouters', async () => {
const t = initTRPC.create();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { initTRPC } from '@trpc/server';
import { initTRPC } from '..';

const t = initTRPC.create();

Expand Down

0 comments on commit 59a0d2b

Please sign in to comment.