From 55a525b39453ba3d7e438374af5c9a584100f749 Mon Sep 17 00:00:00 2001 From: Peter Karolyi Date: Fri, 3 May 2024 08:36:27 +0200 Subject: [PATCH] test: fix broken tests --- .env.example | 2 +- test/vitest.config.e2e.ts | 4 ++++ vitest.config.ts | 5 ++++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 7e8b913..242eb02 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ STORAGE_PROVIDER= # required if provider is local -LOCAL_DIRECTORY= +LOCAL_STORAGE_PATH= # required if provider is s3 S3_BUCKET= diff --git a/test/vitest.config.e2e.ts b/test/vitest.config.e2e.ts index 4226014..254fe5f 100644 --- a/test/vitest.config.e2e.ts +++ b/test/vitest.config.e2e.ts @@ -6,6 +6,10 @@ export default defineConfig({ include: ["**/*.e2e-spec.ts"], globals: true, root: "./", + env: { + STORAGE_PROVIDER: "local", + LOCAL_STORAGE_PATH: "blobs", + }, }, plugins: [swc.vite()], }); diff --git a/vitest.config.ts b/vitest.config.ts index eb5b9bb..1b0340a 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -5,6 +5,10 @@ export default defineConfig({ test: { globals: true, root: "./", + env: { + STORAGE_PROVIDER: "local", + LOCAL_STORAGE_PATH: "blobs", + }, exclude: [...configDefaults.exclude, "integration/*"], coverage: { exclude: [ @@ -12,7 +16,6 @@ export default defineConfig({ "integration/*", "test/*", ".eslintrc.js", - "**/*.module.ts", "**/*.constants.ts", ], },