Skip to content

Commit

Permalink
fix: set process.env.TEST
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 12, 2022
1 parent fb13e7a commit 8936fa1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vitest/src/node/cli.ts
Expand Up @@ -74,6 +74,7 @@ async function run(cliFilters: string[], options: CliOptions) {
}

async function start(cliFilters: string[], options: CliOptions) {
process.env.TEST = 'true'
process.env.VITEST = 'true'
process.env.NODE_ENV = 'test'

Expand Down

0 comments on commit 8936fa1

Please sign in to comment.