Giter VIP home page Giter VIP logo

Comments (5)

Odalrick avatar Odalrick commented on June 5, 2024

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.

bendrucker avatar bendrucker commented on June 5, 2024

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.

Odalrick avatar Odalrick commented on June 5, 2024

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.

bendrucker avatar bendrucker commented on June 5, 2024

I assume/hope there's a reason they chose to use their own internal watcher instead of letting chokidar handle it.

from karma-browserify.

bendrucker avatar bendrucker commented on June 5, 2024

Moving to #24

from karma-browserify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.