You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting Cannot find module '@auth/core/providers/google' from '../auth/index.ts'
Long error:
FAIL src/router/onboarding/__test__/index.test.ts
● Test suite failed to run
Cannot find module '@auth/core/providers/google' from '../auth/index.ts'
Require stack:
/Users/federicodayan/projects/com/pearl/pearl-turbo/packages/auth/index.ts
src/trpc.ts
src/router/onboarding/index.ts
src/router/onboarding/__test__/index.test.ts
> 1 | import GoogleProvider from "@auth/core/providers/google";
| ^
2 | import type { DefaultSession } from "@auth/core/types";
3 | import { PrismaAdapter } from "@next-auth/prisma-adapter";
4 | import NextAuth from "next-auth";
at Resolver._throwModNotFoundError (../../node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (../auth/index.ts:1:1)
at Object.<anonymous> (src/trpc.ts:13:1)
at Object.<anonymous> (src/router/onboarding/index.ts:1:1)
at Object.<anonymous> (src/router/onboarding/__test__/index.test.ts:5:1)
Link to reproduction
It's private code cannot share
To reproduce
install setup ts-jest
Try to test a tRPC endpoint
Additional information
No response
The text was updated successfully, but these errors were encountered:
Provide environment information
System:
OS: macOS 13.3.1
CPU: (10) arm64 Apple M1 Pro
Memory: 98.86 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.18.0 - ~/.nvm/versions/node/v18.18.0/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.8.1 - ~/.nvm/versions/node/v18.18.0/bin/npm
pnpm: 8.8.0 - ~/.nvm/versions/node/v18.18.0/bin/pnpm
Watchman: 2023.08.28.00 - /opt/homebrew/bin/watchman
Describe the bug
I'm trying to setup
ts-jest
to run some test withtRPC
procedures.A test might look like:
I'm getting
Cannot find module '@auth/core/providers/google' from '../auth/index.ts'
Long error:
Link to reproduction
It's private code cannot share
To reproduce
Additional information
No response
The text was updated successfully, but these errors were encountered: