[WIP] Reimplementing tansu with signal-polyfill #461
Annotations
10 errors
src/index.spec.ts > stores > base > should work to use subscribe only and use it in a computed:
src/index.spec.ts#L161
AssertionError: expected +0 to be 1 // Object.is equality
- Expected
+ Received
- 1
+ 0
❯ src/index.spec.ts:161:24
|
src/index.spec.ts > stores > derived > should throw when reaching the maximum number of derived iterations (on subscribe):
src/index.spec.ts#L1548
AssertionError: expected [Function] to throw an error
- Expected:
null
+ Received:
undefined
❯ src/index.spec.ts:1548:10
|
src/index.spec.ts > stores > derived > should throw when reaching the maximum number of derived iterations (on set):
src/index.spec.ts#L1567
AssertionError: expected [Function] to throw an error
- Expected:
null
+ Received:
undefined
❯ src/index.spec.ts:1567:10
|
src/index.spec.ts > stores > derived > should not have glitches when setting the value of a store inside derived:
src/index.spec.ts#L1699
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:1699: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#L1726
AssertionError: expected "spy" to be called 11 times, but got 1 times
❯ src/index.spec.ts:1726: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#L1745
AssertionError: expected "spy" to be called 11 times, but got 1 times
❯ src/index.spec.ts:1745:20
❯ Module.batch src/index.ts:8868:12
❯ src/index.spec.ts:1741: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#L1767
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1767:18
|
src/index.spec.ts > stores > derived > should notify listeners if the final value changed when changing the value inside derived:
src/index.spec.ts#L1788
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1788:18
|
src/index.spec.ts > stores > derived > should call derived functions only with the final value when changing the value inside a dependent derived:
src/index.spec.ts#L1822
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1822:29
|
src/index.spec.ts > stores > derived > should call derived functions only with the final value when changing the value inside a previous independent derived:
src/index.spec.ts#L1860
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1860:29
|