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
totobest opened this issue
Apr 20, 2024
· 0 comments
Labels
adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
$ yarn jest
yarn run v1.22.19
FAIL ./my.test.ts
● Test suite failed to run
Cannot find module '@auth/prisma-adapter' from 'my.test.ts'
1 |> 2 | import { PrismaAdapter } from "@auth/prisma-adapter"| ^
3 | import NextAuth from "next-auth"
4 |
5 |
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (my.test.ts:2:1)
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 0.972 s
Ran all test suites.
Expected behavior
No error
The text was updated successfully, but these errors were encountered:
totobest
added
adapters
Changes related to the core code concerning database adapters
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Apr 20, 2024
adaptersChanges related to the core code concerning database adaptersbugSomething isn't workingtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Adapter type
@auth/prisma-adapter
Environment
System:
OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1270P
Memory: 21.23 GB / 30.58 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
Yarn: 1.22.19 - /usr/bin/yarn
npm: 10.5.0 - ~/.nvm/versions/node/v20.12.0/bin/npm
Browsers:
Chrome: 122.0.6261.111
npmPackages:
@auth/prisma-adapter: ^2.0.0 => 2.0.0
next-auth: ^4.24.7 => 4.24.7
Reproduction URL
https://github.com/totobest/next-auth-ts-jest
Describe the issue
tsconfig.json
my.test.js
package.json
How to reproduce
Expected behavior
No error
The text was updated successfully, but these errors were encountered: