File tree 1 file changed +17
-8
lines changed
1 file changed +17
-8
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,23 @@ import { describe } from "vitest";
2
2
import s3Driver from "../../src/drivers/s3" ;
3
3
import { testDriver } from "./utils" ;
4
4
5
- describe ( "drivers: s3" , ( ) => {
5
+ const accessKeyId = process . env . VITE_S3_ACCESS_KEY_ID ;
6
+ const secretAccessKey = process . env . VITE_S3_SECRET_ACCESS_KEY ;
7
+ const bucket = process . env . VITE_S3_BUCKET ;
8
+ const endpoint = process . env . VITE_S3_ENDPOINT ;
9
+ const region = process . env . VITE_S3_REGION ;
10
+
11
+ describe . skipIf (
12
+ ! accessKeyId || ! secretAccessKey || ! bucket || ! endpoint || ! region
13
+ ) ( "drivers: s3" , ( ) => {
6
14
testDriver ( {
7
- driver : s3Driver ( {
8
- accessKeyId : process . env . VITE_S3_ACCESS_KEY_ID ! ,
9
- secretAccessKey : process . env . VITE_S3_SECRET_ACCESS_KEY ! ,
10
- bucket : process . env . VITE_S3_BUCKET ! ,
11
- endpoint : process . env . VITE_S3_ENDPOINT ! ,
12
- region : process . env . VITE_S3_REGION ! ,
13
- } ) ,
15
+ driver : ( ) =>
16
+ s3Driver ( {
17
+ accessKeyId : accessKeyId ! ,
18
+ secretAccessKey : secretAccessKey ! ,
19
+ bucket : bucket ! ,
20
+ endpoint : endpoint ! ,
21
+ region : region ! ,
22
+ } ) ,
14
23
} ) ;
15
24
} ) ;
You can’t perform that action at this time.
0 commit comments