Commenting functions in Entity and World #9
Annotations
2 errors and 1 warning
tests/EntityManager.test.ts > EntityManager > can renew and release entities from entity pool:
tests/EntityManager.test.ts#L112
AssertionError: to be shared reference to entity1: expected Entity{ id: 6, components: {}, …(11) } to be Entity{ id: 5, components: {}, …(11) } // Object.is equality
- Expected
+ Received
Entity {
"add": [Function addComponent],
"addComponent": [Function addComponent],
"addComponents": [Function addComponents],
"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:112:58
|
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/.
|