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.

Improve core tests

See original GitHub issue

Core tests are the followings:

tests/async.test.tsx
tests/basic.test.tsx
tests/dependency.test.tsx
tests/error.test.tsx
tests/items.test.tsx

I need someone to help advice if it’s ok or if there’s room for improvement. I followed the same pattern as in zustand, but I’m not quite sure if testing with findByText is a good/desired way (instead of using expect.)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dai-shicommented, Dec 5, 2020

Good idea. Please open new issue or PR for any improvements.

1reaction
LuckyPigeoncommented, Oct 7, 2020

@dai-shi Test with findByText is good in our case, since we have using asynchronous in our case and findByText is also do with asynchronous and promise. Then search the content shows within 1 second by default. As for the testcase improvement, I’m still reviewing the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Core Muscle Strength and Stability Test - Verywell Fit
The core muscle strength and stability test is one way to assess your current core strength and gauge your progress over time.
Read more >
5 Easy Ways to Test Core Strength - wikiHow
1. Get a friend or family member to assist you. The results of your 30-second sit-up test will typically be more accurate if...
Read more >
How Strong Is Your Core? 3 Tests to Find Out - Daily Burn
3 Core Strength Tests You Should Master · 1. Leg Lowering Test · 2. Plank Hold · 3. Rotating Side Plank.
Read more >
The 60-second core strength test (and how to get stronger)
To increase core strength, Litzy says she recommends any variation of a plank, the pilates roll up, the pallof press, and the wood...
Read more >
Exercises to improve your core strength - Mayo Clinic
Raise your head and shoulders off the floor. To avoid straining your neck, cross your arms on your chest rather than locking them...
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