Skip to content

Commit 54dec62

Browse files
committed
fix(tests): adds env variable for testing purposes
1 parent b8a69fc commit 54dec62

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

env/.env.testing

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
VITE_TRAKT_PRODUCTION_ID=vite_trakt_production_id
2+
VITE_TRAKT_PRODUCTION_SECRET=vite_trakt_production_secret
3+
4+
VITE_TRAKT_STAGING_ID=vite_trakt_staging_id
5+
VITE_TRAKT_STAGING_SECRET=vite_trakt_staging_secret
6+
7+
VITE_TMDB_API_KEY=vite_tmdb_api_key
8+
VITE_TMDB_READ_TOKEN=vite_tmdb_read_token
9+
10+
VITE_TVDB_API_KEY=vite_tvdb_api_key

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"build": "cross-env NODE_ENV=production run-s dist type:check 'vite:build {@}' --",
4141
"build:web": "VITE_WEB=true VITE_BASE=/trakt-extension/ pnpm run build",
4242
"analyse": "vite-bundle-visualizer",
43-
"test:unit": "vitest run --coverage",
44-
"test:watch": "vitest",
43+
"test:unit": "vitest run --coverage --mode testing",
44+
"test:watch": "vitest --mode testing",
4545
"typecheck": "vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
4646
"lint": "eslint .",
4747
"lint:fix": "pnpm run lint --fix",

0 commit comments

Comments
 (0)