Skip to content

Commit e04e160

Browse files
committed
Load .env instead of using custom env variable for local testing
1 parent 19c6017 commit e04e160

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ examples/
66
node_modules/
77
coverage/
88
premaster.txt
9+
.env

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"docs": "typedoc src/index.ts",
3232
"lint": "eslint .",
3333
"test": "vitest run --coverage",
34-
"test-browser": "VITE_WS_URL=$WS_URL vitest --config ./vitest.config.browser.ts",
34+
"test-browser": "vitest --config ./vitest.config.browser.ts",
3535
"prebuild": "rm -rf dist lib types",
3636
"build": "tsc && tsc --module commonjs --outDir lib/cjs && tsc --emitDeclarationOnly --removeComments false && rollup -c",
3737
"postbuild": "echo '{\"type\": \"commonjs\"}' > lib/cjs/package.json",

vitest.config.browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export default defineConfig({
1010
name: "chromium",
1111
headless: false,
1212
}
13-
}
13+
},
14+
envDir: '.'
1415
});

0 commit comments

Comments
 (0)