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.

Testing `jest-preview` in multiple platforms

See original GitHub issue

What & Why

  • jest-preview is developed and tested on macOS. So we are not sure if it works on other platforms:
    • OS: Windows, linux…
    • Monorepo: lerna, turborepo…

How

  • We should find a way to make sure this library works on other platforms:
    • Seeking helps from contributors to test on other platforms
    • Setup CI/CD to run tests automatically

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
KonnorRogerscommented, Jul 7, 2022

@nvh95 The only current reproduction I have is my Shadow Dom Testing library here:

https://github.com/ParamagicDev/shadow-dom-testing-library

it should be just:

git clone https://github.com/ParamagicDev/shadow-dom-testing-library
cd shadow-dom-testing-library
npm install

# Modify a file to include the jest-preview
npm run test
0reactions
nvh95commented, Aug 16, 2022

We tested the core function of jest-preview on

  • Mac (development machine)
  • Ubuntu
  • Windows

We also have CI to run on Ubuntu and Windows (GitHub Actions)

We also run it in some monorepo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running the same Jest tests across several OS - Medium
How to run the same Jest test suite on Windows, Mac and Linux with OS dependant features: we built a node module to...
Read more >
How to run the same Jest test suite across several platforms
You can just append skipWindows or onWindows (or any other platform) to the jest call, and we will make sure to forward it...
Read more >
nvh95/jest-preview: Debug your Jest tests. Effortlessly. - GitHub
When writing tests using Jest, we usually debug by reading the HTML code. Sometimes, the HTML is too complicated to visualize the UI...
Read more >
Usage | Jest Preview
If you opt-in to Automatic Mode, Jest Preview will automatically preview your app UI in a browser whenever there is a failed test....
Read more >
Jest · Delightful JavaScript Testing
Jest is a JavaScript testing framework designed to ensure correctness of any JavaScript codebase. It allows you to write tests with an approachable,...
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