Skip to content

Commit

Permalink
Fix me being an idiot
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 1, 2023
1 parent 708cddf commit 18a8b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/foundation/src/testing/test_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 18a8b5b

Please sign in to comment.