Skip to content

Commit 9bf3768

Browse files
committed
test: adding test configuration for adapter-redis
1 parent ba4752b commit 9bf3768

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

packages/adapter-redis/package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@
2424
},
2525
"devDependencies": {
2626
"@types/ioredis": "^5.0.0",
27-
"tsup": "8.3.5"
27+
"tsup": "8.3.5",
28+
"vitest": "^3.0.2"
2829
},
2930
"scripts": {
3031
"build": "tsup --format esm --dts",
3132
"dev": "tsup --format esm --dts --watch",
32-
"lint": "eslint --fix --cache ."
33+
"lint": "eslint --fix --cache .",
34+
"test": "vitest run",
35+
"test:watch": "vitest"
3336
},
3437
"peerDependencies": {
3538
"whatwg-url": "7.1.0"
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { defineConfig } from 'vitest/config';
2+
3+
export default defineConfig({
4+
test: {
5+
globals: true,
6+
environment: 'node',
7+
},
8+
});

0 commit comments

Comments
 (0)