also looking at this
test: retain bounded browser launch evidence on failure
#70
18 files
+620
-23
| @@ -1,4 +1,4 @@ | ||
| 1 | import { beforeAll, describe, expect, test } from 'bun:test' | |
| 1 | import { describe, expect, test } from 'bun:test' | |
| 2 | 2 | import { command } from '@stacksjs/testing' |
| 3 | 3 | import { join } from 'node:path' |
| 4 | 4 | import fixture from '../fixtures/sensors/bench-v1.json' |
| @@ -199,8 +199,8 @@ describe('sensor clocks and independent health', () => { | ||
| 199 | 199 | }) |
| 200 | 200 | }) |
| 201 | 201 | |
| 202 | let nativeDirectory: string | |
| 203 | beforeAll(async () => { nativeDirectory = (await buildRuntime()).directory }, 20000) | |
| 202 | // A cold native build must settle before the sensor test's own timing begins. | |
| 203 | const { directory: nativeDirectory } = await buildRuntime() | |
| 204 | 204 | describe('native capture and simulator replay', () => { |
| 205 | 205 | test('the native C++ codec preserves independently encoded records byte-for-byte', async () => { |
| 206 | 206 | const wire = Buffer.concat(['imu', 'barometer', 'gnss'].map(kind => Buffer.from(bytes(kind as SensorKind)))) |