Resolve Rust identity parity fixtures from the selected workspace

This commit is contained in:
aphrody-dev committed 2026-10-13 07:05:04 +02:00
1 parent ba11f38ea1
commit aa4c8a02d4
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1,10 +1,11 @@
// SPDX-License-Identifier: Apache-2.0
import { describe, expect, test } from "bun:test";
import { join } from "node:path";
import { findWorkspaceRoot } from "@aphrody/paths";
import { compactPet, type RawAnimations, renderModule } from "./compact";
import { frameAt, gazeFrame, PET, spriteStyle, trackDuration } from "./pet";
const crateJson = join(import.meta.dir, "../../../../crates/ui/identity/assets/aphrody/animations.json");
const crateJson = join(findWorkspaceRoot(), "crates/ui/identity/assets/aphrody/animations.json");
describe("generated pet data", () => {
test("matches the crate animations.json (run `bun run gen` after a re-export)", async () => {
+2 -1
View File
@@ -3,11 +3,12 @@
// clock (pets.rs); this file replays every tick through src/runtime.ts and must agree exactly.
import { describe, expect, test } from "bun:test";
import { join } from "node:path";
import { findWorkspaceRoot } from "@aphrody/paths";
import { webSourceTarget } from "../scripts/web-source";
import { renderWebModule } from "./compact";
import { Ambient, gaze, PET_WEB, resolve, type WebTrack } from "./runtime";
const crate = join(import.meta.dir, "../../../../crates/ui/identity");
const crate = join(findWorkspaceRoot(), "crates/ui/identity");
type TickRow = [number, string, string | null, number | null, number | null];
interface Fixture {