MCPcopy
hub / github.com/blitz-js/blitz / isNotInUserTestEnvironment

Function isNotInUserTestEnvironment

packages/blitz/src/utils/index.ts:147–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147export function isNotInUserTestEnvironment() {
148 if (process.env.VITE_BLITZ_TEST_ENVIRONMENT) {
149 return true
150 }
151
152 return process.env.JEST_WORKER_ID === undefined && process.env.VITEST_WORKER_ID === undefined
153}

Callers 5

validateQueryFnFunction · 0.90
sanitizeFunction · 0.90
errors.tsFile · 0.90
constructFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected