mirror of
https://github.com/unjs/unstorage.git
synced 2026-04-17 03:00:46 -04:00
17 lines
523 B
TypeScript
17 lines
523 B
TypeScript
import { describe } from "vitest";
|
|
import { testDriver } from "./utils";
|
|
import upstashDriver from "../../src/drivers/upstash";
|
|
|
|
const url = process.env.VITE_UPSTASH_REDIS_REST_URL;
|
|
const token = process.env.VITE_UPSTASH_REDIS_REST_TOKEN;
|
|
|
|
describe.skipIf(!url || !token)("drivers: upstash", async () => {
|
|
process.env.UPSTASH_REDIS_REST_URL = url;
|
|
process.env.UPSTASH_REDIS_REST_TOKEN = token;
|
|
testDriver({
|
|
driver: upstashDriver({
|
|
base: Math.round(Math.random() * 1_000_000).toString(16),
|
|
}),
|
|
});
|
|
});
|