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 tests panel support

See original GitHub issue

Issue Description

Tell us how you think we can improve Sandpack

Packages affected

  • sandpack-client
  • sandpack-react

What is this feature?

Would it be possible to support test files? Currently on I can configure the sandbox view to show the tests panel which can run the tests.

How would your idea work?

Much like the sandpack-react does currently but with an additional view option which supports tests that instead of rendering the React component into the DOM it would run the test file with jest and display the results.

Do you have any examples of how you would like to see us implement it?

Sorry no real examples but the use case I have in mind is for a jest-extended docs site with an embedded repl (powered by Sandpack) that can run the examples for each matcher.

This would be preferable to creating a codesandbox per matcher and manually embedding it.

Here’s an example of what I’ve currently configured in a sandbox if it’s of any help.

I’m more than happy to get involved with building this if it’s of value to the project, would just need some pointers on where to begin 😆

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:7
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

danilowozcommented, Oct 27, 2021

Thanks for your feedback, @mattphillips!

I have added your feature request to our internal backlog which we use to prioritize what to build next. We can’t make any promises about the timing, but it’s on the list!

For others landing on this issue, feel free to add more context or simply leave a thumbs up 👍 on this comment if you find this feature useful.

danilowozcommented, Feb 2, 2022

Sorry I meant to say: I’m curious to know what kind of feature the Test component cannot miss? But you got the point.

Thanks for leaving your feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing with feature flags - GitLab Docs
If an end-to-end test enables a feature flag, the end-to-end test suite can be used to test changes in a merge request by...
Read more >
Issue tracking system and product feature requests
Discover how to use Google Cloud's issue tracking system to report issues, submit and vote for product feature requests from the issue tracker...
Read more >
TestComplete Feature Requests - SmartBear Community
Welcome to the TestComplete Feature Requests board! Here you can review submitted feature requests and vote up the ones you like! If you...
Read more >
Testing Extensions - Visual Studio Code
Visual Studio Code supports running and debugging tests for your extension. ... if (err) { return e(err); } // Add files to the...
Read more >
Submitting a Product Idea - Qualtrics
As of October 1, 2019, how you file a feature request has changed. We require that you login to Qualtrics XM Community with...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found