ngrx/effects unit tests using jasmine-marbles

732 views Asked by At

When I try to use either cold or hot functions from jasmine-marbles, I keep getting TypeError: Class constructor Observable cannot be invoked without 'new'. Anybody know how to resolve this error? Here is what I have below.

   import { hot, cold } from "jasmine-marbles";
   import { Observable } from "rxjs/Observable";

   const myAction = hot("--a-", { a: "TEST" };
1

There are 1 answers

0
happyZZR1400 On

I started to get this error after i changed "target" property in tsconfig.json (at project root) to "es6", thus i restored to old good "es5"