Add stores for data #51
Annotations
7 errors
Unhandled error:
src/lib/stores/childrenStore.ts#L151
Error: No such user in the childrenstore
❯ Module.fetchObservationDataForUser src/lib/stores/childrenStore.ts:151:9
❯ src/lib/stores/childrenStore.test.ts:205:4
❯ node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:146:14
❯ node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:61:7
❯ runTest node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:960:17
❯ processTicksAndRejections node:internal/process/task_queues:105:5
❯ runSuite node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:1116:15
❯ runSuite node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:1116:15
❯ runFiles node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/runner/dist/index.js:1173:5
❯ startTests node_modules/.pnpm/@vitest[email protected]/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#L57
Error: Child token childC already exists for user token alpha
❯ src/lib/stores/childrenStore.ts:57:10
❯ Object.update node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/store/index.js:64:7
❯ Module.addChildData src/lib/stores/childrenStore.ts:51: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
|
src/lib/stores/contentStore.test.ts > test_normal_functionality > should add content successfully when key is not yet there:
src/lib/stores/contentStore.ts#L30
Error: Key already exists in the contentstore
❯ src/lib/stores/contentStore.ts:30:10
❯ Object.update node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/store/index.js:64:7
❯ Module.addContent src/lib/stores/contentStore.ts:28:10
❯ src/lib/stores/contentStore.test.ts:35:9
|
src/lib/stores/contentStore.test.ts > test_normal_functionality > should remove content from the contentstore successfully:
src/lib/stores/contentStore.test.ts#L47
TypeError: Cannot read properties of undefined (reading 'testsurvey')
❯ src/lib/stores/contentStore.test.ts:47:40
|
unit-tests
Process completed with exit code 1.
|