File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ const plugins = [
109109 define : {
110110 // __VITEST_GENERATE_UI_TOKEN__ is set as a global to catch accidental leaking,
111111 // in the release version the "if" with this condition should not be present
112+ // To test strict token locally, build by e.g. `VITEST_GENERATE_UI_TOKEN=true pnpm build`
112113 __VITEST_GENERATE_UI_TOKEN__ : process . env . VITEST_GENERATE_UI_TOKEN === 'true' ? 'true' : 'false' ,
113114 ...( process . env . VITE_TEST_WATCHER_DEBUG === 'false'
114115 ? {
Original file line number Diff line number Diff line change @@ -544,6 +544,7 @@ export class TestProject {
544544 } ,
545545 server . config ,
546546 )
547+ this . _config . api . token = this . vitest . config . api . token
547548 this . _setHash ( )
548549 for ( const _providedKey in this . config . provide ) {
549550 const providedKey = _providedKey as keyof ProvidedContext
You can’t perform that action at this time.
0 commit comments