From 5a530db5c42743e6eff846669141527ae1344bfe Mon Sep 17 00:00:00 2001 From: Facundo Date: Tue, 17 Dec 2024 11:38:01 +0000 Subject: [PATCH] fix(testdata): relative path calculation (#10791) 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`. --- yarn-project/foundation/src/testing/files/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/foundation/src/testing/files/index.ts b/yarn-project/foundation/src/testing/files/index.ts index a45f40f8203..a610bc9b473 100644 --- a/yarn-project/foundation/src/testing/files/index.ts +++ b/yarn-project/foundation/src/testing/files/index.ts @@ -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})`); }