Skip to content

Commit

Permalink
fix(testdata): relative path calculation (#10791)
Browse files Browse the repository at this point in the history
Testdata file utils were moved one level deeper into `files`. Resolution wasn't failing in CI/etc because it's only triggered when generating data with `AZTEC_GENERATE_TEST_DATA=1`.
  • Loading branch information
fcarreiro authored Dec 17, 2024
1 parent 5a9ca18 commit 5a530db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/foundation/src/testing/files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function updateProtocolCircuitSampleInputs(circuitName: string, value: st
}

function getPathToFile(targetFileFromRepoRoot: string) {
const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../');
const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../../../../');
if (!existsSync(join(repoRoot, 'CODEOWNERS'))) {
throw new Error(`Path to repo root is incorrect (got ${repoRoot})`);
}
Expand Down

0 comments on commit 5a530db

Please sign in to comment.