Skip to content

Commit

Permalink
test: Add s3 driver test
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Jan 6, 2024
1 parent 4c87924 commit 7b24a35
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ tmp
__*
.vercel
.netlify
playground
playground
.env
16 changes: 16 additions & 0 deletions test/drivers/s3.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { describe } from "vitest";
import s3Driver from "../../src/drivers/s3";
import { testDriver } from "./utils";

describe("drivers: s3", () => {
testDriver({
driver: s3Driver({
accessKeyId: process.env.VITE_S3_ACCESS_KEY_ID!,
secretAccessKey: process.env.VITE_S3_SECRET_ACCESS_KEY!,
accountId: process.env.VITE_S3_ACCOUNT_ID,
bucket: process.env.VITE_S3_BUCKET!,
endpoint: process.env.VITE_S3_ENDPOINT!,
region: process.env.VITE_S3_REGION!
})
})
})

0 comments on commit 7b24a35

Please sign in to comment.