Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace karma/jasmine by jest #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexjoverm
Copy link

Here you have a gift, you can take it or not :). Related to #12

Why to use Jest?

  • (almost) No configuration. The only thing is the "jest" object in the package.json, and because it is typescript
  • Combines under the hood jsdom, with jasmine and isparta
  • Really fast (parallel exec)
  • Amazing watch mode, try npm t -- --watch. Even you have the option to run only changed files, respect the latest git commit
  • Coverage? just run npm t -- --coverage --no-cache (no-cache is suggested when running transformers like ts-lint)
  • Great debugging and all kind of goodies

Basically, easier life 😎

@alexjoverm
Copy link
Author

It seems like somehow I missed to add the right packages and types over there

@alexjoverm
Copy link
Author

Hey @juristr! This PR has a dependency on DefinitelyTyped/DefinitelyTyped#14867, that's why is failing since the spyOn is not in the @types. As soon as that PR get's merged I'll update this and let you know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant