You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jasmine-marbles does not work with jest. When running tests I get TypeError: expect(...).toBeObservable is not a function.
Expected Behavior
jasmine-marbles should work with jest.
Rationale
When following the jest-preset-angular guide and adding jest to a standard angular-cli project jasmine-marbles work as expected. But when using nx built-in support for jestjasmine-marbles do not work.
I think it is worth noting that VSCode detects that test methods (expect, describe etc.) are from jest in an nx project. However, in an angular-cli project it points to @types/jasmine.
Alternatives
jest-marbles work but lack some of jasmine-marbles functionalities.
The text was updated successfully, but these errors were encountered:
Re: I think it is worth noting that VSCode detects that test methods (expect, describe etc.) are from jest in an nx project. However, in an angular-cli project it points to @types/jasmine.
Description
nrwl:
6.4.0
test-runner:
jest
Current Behavior
jasmine-marbles
does not work withjest
. When running tests I getTypeError: expect(...).toBeObservable is not a function
.Expected Behavior
jasmine-marbles
should work withjest
.Rationale
When following the jest-preset-angular guide and adding
jest
to a standard angular-cli projectjasmine-marbles
work as expected. But when usingnx
built-in support forjest
jasmine-marbles
do not work.I think it is worth noting that VSCode detects that test methods (
expect
,describe
etc.) are fromjest
in annx
project. However, in an angular-cli project it points to@types/jasmine
.Alternatives
jest-marbles
work but lack some ofjasmine-marbles
functionalities.The text was updated successfully, but these errors were encountered: