- Remove
import 'react-app-polyfill/ie11'
from your index.js and put it in a new filesrc/polyfill.js
- install webpack-cli
yarn add -D webpack-cli
ornpm i -D webpack-cli
- add npm script
"polyfill": "webpack -p ./src/polyfill.js -o ./build/ie11.js"
- add to build script
"build": "react-scripts build && npm run polyfill",
- add
to the
ofpublic/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Action } from "redux"; | |
import { ActionsObservable, Epic, StateObservable } from "redux-observable"; | |
import { TestScheduler } from "rxjs/testing"; | |
const assertDeepEquals = (actual: any, expected: any) => { | |
expect(actual).toEqual(expected); | |
}; | |
export const marbleTest = <T extends Action, O extends T = T, S = void, D = any>({ | |
epic, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Action } from "redux"; | |
import { ActionsObservable, Epic, StateObservable } from "redux-observable"; | |
import { Subject } from "rxjs"; | |
import { toArray } from "rxjs/operators"; | |
const stateInput$ = new Subject(); | |
const state$ = new StateObservable<any>(stateInput$, undefined); | |
interface IEpicTest<A extends Action, S, D> { | |
(params: { |