[WIP] Reimplementing tansu with signal-polyfill #458
Annotations
10 errors
src/index.spec.ts > stores > derived > should throw when reaching the maximum number of derived iterations (on subscribe):
src/index.spec.ts#L1539
AssertionError: expected [Function] to throw an error
- Expected:
null
+ Received:
undefined
❯ src/index.spec.ts:1539:10
|
src/index.spec.ts > stores > derived > should throw when reaching the maximum number of derived iterations (on set):
src/index.spec.ts#L1558
AssertionError: expected [Function] to throw an error
- Expected:
null
+ Received:
undefined
❯ src/index.spec.ts:1558:10
|
src/index.spec.ts > stores > derived > should stop notifying following listeners if the value changed in a listener (finally no change):
src/index.spec.ts#L1578
AssertionError: expected [ +0, -1, +0 ] to deeply equal [ +0 ]
- Expected
+ Received
Array [
0,
+ -1,
+ 0,
]
❯ src/index.spec.ts:1578:23
|
src/index.spec.ts > stores > derived > should stop notifying following listeners if the value changed in a listener (finally with change):
src/index.spec.ts#L1598
AssertionError: expected [ 1, -1, +0 ] to deeply equal [ 1, +0 ]
- Expected
+ Received
Array [
1,
+ -1,
0,
]
❯ src/index.spec.ts:1598:23
|
src/index.spec.ts > stores > derived > should stop notifying following listeners of a derived store if the value changed in a listener (finally no change):
src/index.spec.ts#L1619
AssertionError: expected [ +0, -1, +0 ] to deeply equal [ +0 ]
- Expected
+ Received
Array [
0,
+ -1,
+ 0,
]
❯ src/index.spec.ts:1619:23
|
src/index.spec.ts > stores > derived > should stop notifying following listeners of a derived store if the value changed in a listener (finally with change):
src/index.spec.ts#L1640
AssertionError: expected [ 1, -1, +0 ] to deeply equal [ 1, +0 ]
- Expected
+ Received
Array [
1,
+ -1,
0,
]
❯ src/index.spec.ts:1640:23
|
src/index.spec.ts > stores > derived > should not have glitches when setting the value of a store inside derived:
src/index.spec.ts#L1690
AssertionError: expected [ …(10) ] to deeply equal [ …(10) ]
- Expected
+ Received
Array [
"state:visible=true,transitioning=false,hidden=false",
"1:set visible=false",
+ "state:visible=false,transitioning=false,hidden=true",
"state:visible=false,transitioning=true,hidden=false",
"2:set transitioning=false",
"state:visible=false,transitioning=false,hidden=true",
"3:set visible=true",
- "state:visible=true,transitioning=true,hidden=false",
+ "state:visible=true,transitioning=false,hidden=false",
"4:set transitioning=false",
- "state:visible=true,transitioning=false,hidden=false",
"5:finished",
]
❯ src/index.spec.ts:1690:22
|
src/index.spec.ts > stores > derived > should give the final value synchronously on subscribe outside batch when changing the value inside derived:
src/index.spec.ts#L1717
AssertionError: expected "spy" to be called 11 times, but got 1 times
❯ src/index.spec.ts:1717:18
|
src/index.spec.ts > stores > derived > should give the final value synchronously on subscribe in batch when changing the value inside derived:
src/index.spec.ts#L1736
AssertionError: expected "spy" to be called 11 times, but got 1 times
❯ fn src/index.spec.ts:1736:20
❯ Module.batch src/index.ts:1199:6
❯ src/index.spec.ts:1732:7
|
src/index.spec.ts > stores > derived > should not notify listeners if the final value did not change when changing the value inside derived:
src/index.spec.ts#L1758
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1758:18
|