Tumen_t
Tumen_t

Reputation: 801

ngrx/effects unit tests using jasmine-marbles

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" };

Upvotes: 2

Views: 752

Answers (1)

happyZZR1400
happyZZR1400

Reputation: 2405

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"

Upvotes: 1

Related Questions