Comments (5)
Looking around I found the same issue in browserifast:
https://github.com/cjohansen/karma-browserifast/issues/23
It was closed; waiting for a fix in the plugin.
from karma-browserify.
Based on the linked issue and my understanding of Karma's API, WebStorm is wrong here. Disabling autoWatch
and then calling karma.runner.run
should only tell connected browsers to execute a test run. I did a little poking around and there really isn't a proper way to address this from our end. karma-bro relies on the fact that watchify efficiently watches the bundle graph and caches it so updates happen quickly. Karma watches the written bundle file and then ensures that updates get loaded by connected browsers and that a test run is executed. Indirectly, karma-bro is triggering the test run.
Click auto-test in the WebStorm Test Run window to enable automatic test rerun: The test will be run 10 seconds after your code was changed, if there are no syntax errors. (JetBrains Docs)
So I guess we could technically use a second config option to enable bundle watching internally even if autoWatch is off. Would be super gross but should work so long as your bundle builds within 10 seconds. I'll work up a quick PR and we can discuss there.
from karma-browserify.
Would be nice to have a workaround.
I found the bug reported in the Webstorm plugin, so hopefully the need is transient. https://youtrack.jetbrains.com/issue/WEB-12496
from karma-browserify.
I assume/hope there's a reason they chose to use their own internal watcher instead of letting chokidar handle it.
from karma-browserify.
Moving to #24
from karma-browserify.
Related Issues (20)
- intellij karma runner doesn't use watchify for bundle rebuild HOT 3
- Cannot read property 'bundleFile' of undefined HOT 2
- Error: Cannot find module HOT 2
- Use global transforms HOT 4
- ERROR [framework.browserify]: Error: Cannot find module HOT 2
- attempting to use node-underscorify with karma-browserify fails HOT 2
- Missing repo nikku/node-browserify breaks older versions (<4.0) HOT 1
- Karma not working with Firefox(FirefoxHeadless) when loading with html page. HOT 1
- Unable to browserify file HOT 1
- Install issues due to browserify peerDependecy condition HOT 1
- karma-browserify HOT 1
- lodash vulnerability reported by "npm audit" HOT 1
- When packaged, my test coverage is always 100% HOT 4
- release with PhantomJS removed? HOT 1
- promisify is not a function HOT 2
- Using karma-browserify with WASM HOT 2
- Cannot use import statement outside a module only on karma-browserify HOT 3
- Support for Browserify v17 HOT 2
- Breaking change coming for karma-browserify/lib/preprocessor.js HOT 4
- Support watchify <= 4 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karma-browserify.