Skip to content

Add stores for data #55

Add stores for data

Add stores for data #55

Triggered via pull request August 28, 2024 12:58
Status Failure
Total duration 26s
Artifacts

ci.yml

on: pull_request
unit-tests
17s
unit-tests
Fit to window
Zoom out
Zoom in

Annotations

5 errors
Unhandled error: src/lib/stores/childrenStore.ts#L195
Error: No such user in the childrenstore ❯ Module.fetchObservationDataForUser src/lib/stores/childrenStore.ts:195:9 ❯ src/lib/stores/childrenStore.test.ts:205:4 ❯ node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:146:14 ❯ node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:61:7 ❯ runTest node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:960:17 ❯ processTicksAndRejections node:internal/process/task_queues:105:5 ❯ runSuite node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:1116:15 ❯ runSuite node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:1116:15 ❯ runFiles node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:1173:5 ❯ startTests node_modules/.pnpm/@vitest+runner@2.0.5/node_modules/@vitest/runner/dist/index.js:1182:3 This error originated in "src/lib/stores/childrenStore.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "src/lib/stores/childrenStore.test.ts". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
src/lib/stores/childrenStore.test.ts > normal functionality > should add child observationdata successfully: src/lib/stores/childrenStore.ts#L67
Error: Child token childC already exists for user token alpha ❯ src/lib/stores/childrenStore.ts:67:10 ❯ Object.update node_modules/.pnpm/svelte@4.2.18/node_modules/svelte/src/runtime/store/index.js:64:7 ❯ Module.addChildData src/lib/stores/childrenStore.ts:61:11 ❯ src/lib/stores/childrenStore.test.ts:67:9
src/lib/stores/childrenStore.test.ts > normal functionality > should fetch list of childrendata: src/lib/stores/childrenStore.test.ts#L167
AssertionError: expected [ { name: 'bar', age: 5, …(1) }, …(2) ] to deeply equal [ { name: 'bar', age: 5, …(1) }, …(1) ] - Expected + Received Array [ Object { "age": 5, "name": "bar", "nationality": "german", }, Object { + "age": 2, + "name": "baz", + "nationality": "british", + }, + Object { "age": 3, "name": "foo", "nationality": "turkish", }, ] ❯ src/lib/stores/childrenStore.test.ts:167:16
src/lib/stores/childrenStore.test.ts > normal functionality > should fetch list of observationdata successfully: src/lib/stores/childrenStore.test.ts#L185
AssertionError: expected [ [ 'childA', { …(2) } ], …(2) ] to deeply equal [ [ 'childA', { …(2) } ], …(1) ] - Expected + Received Array [ Array [ "childA", Object { "current": Array [ "a", "b", "c", ], "summary": Array [ "x", "y", ], }, ], Array [ "childB", Object { "current": Array [ "a", "b", "c", ], "summary": Array [ "x", "y", ], }, ], + Array [ + "childC", + Object { + "current": Array [ + "a", + "b", + "c", + ], + "summary": Array [ + "x", + "y", + ], + }, + ], ] ❯ src/lib/stores/childrenStore.test.ts:185:16
unit-tests
Process completed with exit code 1.