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.

HELP WANTED: A simple unit test that webpack builds dont throw errors

See original GitHub issue

as the number of examples grow, its getting very hard to verify everything works as i update dependencies.

If anyone would be willing to create a jest test that loops over the examples directory and runs a yarn build if the build doesn’t error, its a pass.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ScriptedAlchemycommented, Oct 13, 2020

Ill likely want to extend it further to support E2E testing with jest-puppeteer or something to confirm dev and prod mode build + don’t error out in the client. @armujahid

Ill merge the build script and test it out, it’ll be helpful to run litmus checks at a very high level 😃

1reaction
ScriptedAlchemycommented, Oct 13, 2020

Thanks everyone! Sorry I didn’t expect a quick response 😁 I was right in the middle of the upgrade and that’s what caused me to reach out! Master was broken for a few hours after renovate not update everything. Half the battle is running them all 😂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unit Testing - Webpack from Nothing
Ideally, we want the ability to: test our modules in isolation; execute a single test while we drive functionality in a module. run...
Read more >
How to ignore test files in webpack with ts-loader
ts-loader by default compiles all ts files, even files Webpack isn't told to bundle, like test files for instance that will throw errors...
Read more >
Unit test should fail if an element is not known #36430 - GitHub
I'm experiencing similar, where I just see a console error but the tests pass; however on our build server the tests fail as...
Read more >
How I solved and debugged my Webpack issue through trial ...
by Margarita Obraztsova How I solved and debugged my Webpack issue through trial, error, and a little outside help.
Read more >
jasmine an error was thrown in afterall - You.com
BlockI don't want to see this, for any search ... Angular 6 Unit Tests: An error was thrown in afterAll\nReferenceError: ... Hope it...
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