@reactables/core 1.0.0-beta.0 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,6 +27,8 @@ Reactive state management with RxJS.
27
27
  1. [Action](#api-action)
28
28
  1. [Reducer](#api-reducer)
29
29
  1. [Testing Reactables](#testing)
30
+ 1. [Flow Testing](#flow-testing)
31
+ 1. [Marble Testing](#marble-testing)
30
32
 
31
33
  ## Installation <a name="installation"></a>
32
34
 
@@ -227,6 +229,11 @@ type Reducer<T> = (state?: T, action?: Action<unknown>) => T;
227
229
  ```
228
230
 
229
231
  ## Testing Reactables<a name="testing"></a>
232
+ ### Flow Testing<a name="flow-testing"></a>
233
+
234
+ You can test a series of actions to simulate a defined user flow with the `testFlow` method from [`@reactables/testing`](https://github.com/reactables/reactables/blob/main/packages/testing/README.md) package. See [`@reactables/testing`](https://github.com/reactables/reactables/blob/main/packages/testing/README.md) for details.
235
+
236
+ ### Marble Testing<a name="marble-testing"></a>
230
237
 
231
238
  We can use RxJS's built in [Marble Testing](https://rxjs.dev/guide/testing/marble-testing) for testing [Reactables](#reactable).
232
239
 
package/dist/index.js CHANGED
@@ -258,7 +258,7 @@ var RxBuilder = function (_a) {
258
258
  sources = sources.map(function (action$) {
259
259
  return action$.pipe(operators.map(function (action) {
260
260
  var _case = sliceConfig.reducers[action.type];
261
- if (typeof _case !== 'function' && _case.effects) {
261
+ if (_case && typeof _case !== 'function' && _case.effects) {
262
262
  var effects_1 = typeof _case.effects === 'function'
263
263
  ? _case.effects
264
264
  : (function () { return ({ effects: _case.effects }); });
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "peerDependencies": {
17
17
  "rxjs": "^6.0.0 || ^7.0.0"
18
18
  },
19
- "version": "1.0.0-beta.0"
19
+ "version": "1.0.0-beta.2"
20
20
  }