[WIP] Reimplementing tansu with signal-polyfill #460
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 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
❯ src/index.spec.ts:1736:20
❯ Module.batch src/index.ts:8727:12
❯ 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
|
src/index.spec.ts > stores > derived > should notify listeners if the final value changed when changing the value inside derived:
src/index.spec.ts#L1779
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1779: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#L1813
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1813: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#L1851
AssertionError: expected "spy" to be called 12 times, but got 2 times
❯ src/index.spec.ts:1851:29
|
src/index.spec.ts > stores > derived > should work with a derived function that subscribes to itself:
node_modules/signal-polyfill/dist/index.js#L211
Error: Detected cycle in computations.
❯ Object.producerRecomputeValue node_modules/signal-polyfill/dist/index.js:211:13
❯ H node_modules/signal-polyfill/dist/index.js:93:7
❯ Q node_modules/signal-polyfill/dist/index.js:181:7
❯ t.get node_modules/signal-polyfill/dist/index.js:349:14
❯ t.computedSignal src/index.ts:493:14
❯ Object.producerRecomputeValue node_modules/signal-polyfill/dist/index.js:217:25
❯ H node_modules/signal-polyfill/dist/index.js:93:7
❯ Q node_modules/signal-polyfill/dist/index.js:181:7
❯ t.get node_modules/signal-polyfill/dist/index.js:349:14
❯ Object._changeChecker src/index.ts:498:19
|