Skip to content

Commit dd0bb8a

Browse files
committed
make tests typecheck
1 parent 3852dfe commit dd0bb8a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/core/src/tests/dynamic-add-remove.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ test("dynamic remove", () => {
5454
const ent = createRoot(Root);
5555
const toRemove = ent.getComponent(DynamicallyRemoved);
5656
expect(toRemove).not.toBe(null);
57-
ent.removeComponent(toRemove);
57+
ent.removeComponent(toRemove!);
5858
expect(ent.getComponent(DynamicallyRemoved)).toBe(null);
5959
});
6060

@@ -75,6 +75,6 @@ test("dynamic add with enable disable", () => {
7575

7676
const ent = createRoot(Root);
7777
const toRemove = ent.getComponent(DynamicallyRemoved);
78-
ent.removeComponent(toRemove);
78+
ent.removeComponent(toRemove!);
7979
expect(messages).toEqual(["enabled", "disabled"]);
8080
});

packages/integration-tests/src/parentChildWorldPositions/origin-offset.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default function Root() {
7272
canvas.setPixelated(true);
7373
canvas.fullscreen();
7474

75-
const green2 = useChild(() =>
75+
/* const green2 = */ useChild(() =>
7676
CircleThing({
7777
color: "green",
7878
radius: 20,

0 commit comments

Comments
 (0)