Add Jest support
See original GitHub issueFeature 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:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
0.4.0
has been released@patoncrispy I don’t think a release has been cut yet with this PR.