Giter Site home page Giter Site logo

Comments (4)

abaksha-sc avatar abaksha-sc commented on May 15, 2024 3

May be just change event run_start to listening ?
https://github.com/karma-runner/karma/blob/bb022a7fa06042eb0d98ed72c75b74038128d9c0/lib/server.js#L175

It dispatches when karma server is ready (see previous line with this.log.info). Here is a documentation for this: http://karma-runner.github.io/3.0/dev/public-api.html
I think it is a good point to start watching.

P.S. I tested this solution, it works with --no-single-run --no-browsers

from karma-rollup-preprocessor.

jlmakes avatar jlmakes commented on May 15, 2024 2

Ahh I see, the listening event was added in Karma 2.

I'm in the process of adding support for [email protected] so I'll make sure this issue is resolved in the next release: [email protected] coming soon...

from karma-rollup-preprocessor.

jlmakes avatar jlmakes commented on May 15, 2024

Do you know which flag prevents the run_start event?


Related:

https://glebbahmutov.com/blog/debugging-karma-unit-tests/
http://karma-runner.github.io/3.0/dev/public-api.html

from karma-rollup-preprocessor.

abaksha-sc avatar abaksha-sc commented on May 15, 2024

There are two flags prevent run_start: --no-single-run --no-browsers

1. Here is event fires when config.noSingleRun:
https://github.com/karma-runner/karma/blob/bb022a7fa06042eb0d98ed72c75b74038128d9c0/lib/server.js#L311

But I use flag --no-single-run

2. And here are event fired when capturedBrowsers is not empty:
https://github.com/karma-runner/karma/blob/bb022a7fa06042eb0d98ed72c75b74038128d9c0/lib/executor.js#L30
https://github.com/karma-runner/karma/blob/bb022a7fa06042eb0d98ed72c75b74038128d9c0/lib/middleware/runner.js#L38

But I use flag --no-browsers.

Because of this event run_start doesn't fire when I open debug.html directly.
Event fires when I open http://localhost:9876/. But it is a redundant step for me (and my colleagues).

from karma-rollup-preprocessor.

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.