Skip to content

Clean up EntityPool and tests #8

Clean up EntityPool and tests

Clean up EntityPool and tests #8

Triggered via push March 29, 2024 16:46
Status Failure
Total duration 32s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
tests/EntityManager.test.ts > EntityManager > can renew and release entities from entity pool: tests/EntityManager.test.ts#L136
AssertionError: expected Entity{ id: 6, components: {}, …(10) } to be Entity{ id: 5, components: {}, …(10) } // Object.is equality - Expected + Received Entity { "add": [Function addComponent], "addComponent": [Function addComponent], "components": Object {}, "get": [Function getComponentValue], "has": [Function hasComponent], "hasComponents": [Function hasComponents], - "id": 5, - "onChangeListeners": Set {}, + "id": 6, + "onChangeListeners": Set { + [Function anonymous], + }, "remove": [Function removeComponent], "removeComponent": [Function removeComponent], "set": [Function setComponentValue], "toggle": [Function toggleComponent], } ❯ tests/EntityManager.test.ts:136:21
Test
Process completed with exit code 1.
Test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/cache@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.