diff --git a/yarn-project/foundation/src/testing/test_data.ts b/yarn-project/foundation/src/testing/test_data.ts index f6ceaaa371f..976701e3489 100644 --- a/yarn-project/foundation/src/testing/test_data.ts +++ b/yarn-project/foundation/src/testing/test_data.ts @@ -2,7 +2,7 @@ const testData: { [key: string]: { toBuffer(): Buffer }[] } = {}; /** Returns whether test data generation is enabled */ export function isGenerateTestDataEnabled() { - return process.env.AZTEC_GENERATE_TEST_DATA === '1' || typeof expect !== 'undefined'; + return process.env.AZTEC_GENERATE_TEST_DATA === '1' && typeof expect !== 'undefined'; } /** Pushes test data with the given name, only if test data generation is enabled. */