mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
chore: make upstash tests dependent on env variables
This commit is contained in:
@@ -4,11 +4,9 @@ import { reviveFromJson, UpstashRedisAdapter } from "../src"
|
||||
import "dotenv/config"
|
||||
|
||||
if (!process.env.UPSTASH_REDIS_URL || !process.env.UPSTASH_REDIS_KEY) {
|
||||
console.log(
|
||||
"Skipping UpstashRedisAdapter tests, since we are running without required environment variables."
|
||||
)
|
||||
|
||||
expect(true).toBe(true)
|
||||
test("Skipping UpstashRedisAdapter tests, since required environment variables aren't available", () => {
|
||||
expect(true).toBe(true)
|
||||
})
|
||||
} else {
|
||||
const client = upstashRedisClient(
|
||||
process.env.UPSTASH_REDIS_URL,
|
||||
|
||||
@@ -27,6 +27,14 @@
|
||||
"dependsOn": ["lint", "build"],
|
||||
"outputs": []
|
||||
},
|
||||
"@next-auth/upstash-redis-adapter#test": {
|
||||
"dependsOn": [
|
||||
"lint",
|
||||
"build",
|
||||
"$UPSTASH_REDIS_KEY",
|
||||
"$UPSTASH_REDIS_URL"
|
||||
]
|
||||
},
|
||||
"lint": {},
|
||||
"setup": {},
|
||||
"dev": {
|
||||
|
||||
Reference in New Issue
Block a user