fixtureView beta
Function of @v12-engine/client/testing
ts
export declare function fixtureView(over?: Partial<GameView>): GameView;The view of fixtureGame() (of @v12-engine/engine/testing): a GameView with a plain look for each of its unit types, a box of the size the type's radius gives, tall for a building and a hero. For a test that needs a renderer or a HUD to have something to draw for the fixture's soldiers, buildings and trees, with no model to load. over is put over it (visuals merged by type, the rest replaced)
ts
// fixtureView, of `@v12-engine/client/testing`
const view = fixtureView({ hud: { hide: ['clock'] } })
expect(view.units.visuals.soldier!.parts).toHaveLength(1)