Skip to content

Commit f9d4392

Browse files
committed
feat: 🎸 superjson adde to trpc lient initialization
1 parent 0566989 commit f9d4392

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎test/node.api.nodeApiServer.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createTRPCProxyClient, httpBatchLink } from '@trpc/client';
33
import { z } from 'zod';
44
import { Hash } from 'viem';
55
import { mnemonicToAccount } from 'viem/accounts';
6+
import superjson from 'superjson';
67
import { generateMnemonic } from '../src/utils/wallet.js';
78
import {
89
UserInputType,
@@ -45,7 +46,7 @@ describe('NodeApiServer', () => {
4546

4647
beforeAll(async () => {
4748
options = {
48-
storage: await createInitializer({
49+
usersStorage: await createInitializer({
4950
scope: 'users',
5051
})(),
5152
prefix: 'test',
@@ -58,6 +59,7 @@ describe('NodeApiServer', () => {
5859
server.start(appRouter);
5960

6061
clientUser = createTRPCProxyClient<typeof appRouter>({
62+
transformer: superjson,
6163
links: [
6264
accessTokenLink(ACCESS_TOKEN_NAME, (token) => {
6365
accessTokenUser = token;
@@ -72,6 +74,7 @@ describe('NodeApiServer', () => {
7274
});
7375

7476
clientAdmin = createTRPCProxyClient<typeof appRouter>({
77+
transformer: superjson,
7578
links: [
7679
accessTokenLink(ACCESS_TOKEN_NAME, (token) => {
7780
accessTokenAdmin = token;

0 commit comments

Comments
 (0)