Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
add json parse format
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 10, 2022
1 parent da0b0aa commit 71957ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/test-utils/src/context.ts
Expand Up @@ -49,7 +49,7 @@ export function isDev () {

export function recoverContextFromEnv () {
if (!currentContext && process.env.NUXT_TEST_CONTEXT) {
setTestContext(JSON.parse(process.env.NUXT_TEST_CONTEXT))
setTestContext(JSON.parse(process.env.NUXT_TEST_CONTEXT || '{}'))
}
}

Expand Down

0 comments on commit 71957ac

Please sign in to comment.