mirror of
https://github.com/aphrody-labs/aphrody-identity.git
synced 2026-10-14 03:19:02 +00:00
Resolve Rust identity parity fixtures from the selected workspace
This commit is contained in:
1 parent
ba11f38ea1
commit
aa4c8a02d4
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -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
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user