Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/vitest/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const plugins = [
define: {
// __VITEST_GENERATE_UI_TOKEN__ is set as a global to catch accidental leaking,
// in the release version the "if" with this condition should not be present
// To test strict token locally, build by e.g. `VITEST_GENERATE_UI_TOKEN=true pnpm build`
__VITEST_GENERATE_UI_TOKEN__: process.env.VITEST_GENERATE_UI_TOKEN === 'true' ? 'true' : 'false',
...(process.env.VITE_TEST_WATCHER_DEBUG === 'false'
? {
Expand Down
1 change: 1 addition & 0 deletions packages/vitest/src/node/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ export class TestProject {
},
server.config,
)
this._config.api.token = this.vitest.config.api.token
this._setHash()
for (const _providedKey in this.config.provide) {
const providedKey = _providedKey as keyof ProvidedContext
Expand Down
Loading