question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request

Add jest namespace to global TypeScript declaration in order to add toBeObservable and toHaveSubscriptions methods to the Matchers class. This is to prevent the following TypeScript error in VS Code:

Property 'toBeObservable' does not exist on type 'Matchers<void>'.

Describe any alternatives/workarounds you’re currently using

No workaround is currently necessary as you can still execute Jest tests using jasmine-marbles. You can ignore the error and execute the tests using the toBeObersable() method.

Other information:

None.

If accepted, I would be willing to submit a PR for this feature

[X] Yes (Assistance is provided if you need help submitting a pull request) [ ] No

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
brandonrobertscommented, Sep 13, 2018

0.4.0 has been released

1reaction
blovecommented, Sep 13, 2018

@patoncrispy I don’t think a release has been cut yet with this PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started - Jest
Jest supports TypeScript, via Babel. First, make sure you followed the instructions on using Babel above. Next, install the @babel/preset- ...
Read more >
Adding Jest with TypeScript Support to a Vite Application
In the root of your application, create a new file called jest-setup.ts. Inside of this file, type import @testing-library/jest-dom. This library is going...
Read more >
Jest | IntelliJ IDEA Documentation - JetBrains
Create a Jest run configuration. Open the Run/Debug Configuration dialog (Run | Edit Configurations on the main menu), click the Add button ...
Read more >
"jest" task | Rush Stack
Interactive: Jest supports a "watch mode" for automatically re-running tests ... on the Jest packages that it needs, so you don't need to...
Read more >
Getting Started · Jest - API Manual
You can run Jest directly from the CLI (if it's globally available in your PATH , e.g. by yarn global add jest or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found