From f557ba36dcd48fe4c55b06099bcfbbb9e67029fc Mon Sep 17 00:00:00 2001 From: garrytan Date: Thu, 29 Oct 2026 05:59:51 +0000 Subject: [PATCH] test: load the committed calibration file by its repo path so pregate maps it to a lane Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- test/ship-budget-calibration.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ship-budget-calibration.test.ts b/test/ship-budget-calibration.test.ts index d0fabdfe3..579c666af 100644 --- a/test/ship-budget-calibration.test.ts +++ b/test/ship-budget-calibration.test.ts @@ -5,9 +5,10 @@ * three runs observed. */ import { describe, expect, test } from 'bun:test'; +import * as path from 'node:path'; import { fitConstant, loadCalibration, unitConstants } from '../lib/ship-budget'; -const cal = loadCalibration(); +const cal = loadCalibration(path.join(import.meta.dir, '..', 'lib/ship-budget-calibration.json')); describe('ship-budget calibration', () => { test('constants equal the conservative fit of their observations', () => {