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.

Move tests to jest

See original GitHub issue

What the issue is about

Right now we’re using karma for some tests and jest for the other ones. Jest is faster, so we should set up all our tests to use it

Where to start

We’re using nx, check out their docs for moving to jest Search for test in package json to see how we run tests now

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
O-Muttcommented, Oct 23, 2019

Hi @kirjs, Looks like I worked on some tests which are already done in #1176. @Mutmatt, can you tell me if there are any tests remaining which need to be refactored to use Jest.

I primarily tried to get kirjs’s tests running and functional. If you look at any other project the tests may be less functional. All of the tests should now be running under the jest framework, though.

1reaction
NothingEverHappenscommented, Oct 19, 2019

Yes, all apps should use jest in the end. Breaking the work up per-app would make sense to me.

Also note that some tests are still broken, fixing them doesn’t have to be part of this task

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating to Jest
Jest Codemods can migrate from chai (see below). ... To transform your existing tests, navigate to the project containing the tests and run:....
Read more >
How do I move jest tests to a /test folder and get them to run?
I solved the problem by just setting the regex so it finds all .js files in my ./test folder: "jest": { "preset": "react-native", ......
Read more >
Migrate from Jasmine to Jest and Testing Library in Angular
I decided to move all my Angular projects to Jest and testing library for a few reasons. Jest is: Faster than Karma. Easy...
Read more >
Jest Testing Tutorial: 5 Easy Steps - Testim Blog
Jest is a popular test framework for JavaScript. It claims to provide “delightful JavaScript testing” and, after our tutorial, I bet you might ......
Read more >
Move unit tests to jest instead of cypress · Issue #91 · dhis2/ui
I would be in favour of moving as much tests as possible to jest. My proposal would be to do all our unit...
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