Comments (4)
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.
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.
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.
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)
- Rollup has moved output options within the config
- sourcemaps not working HOT 4
- Add support of array configs HOT 4
- Source Maps not Working HOT 1
- Not compatible with the latest version of Rollup (v1.0.0) HOT 2
- TypeError: Cannot read property 'forEach' of undefined HOT 4
- dynamic imports give a 404 HOT 4
- dependencies are duplicated for each test file HOT 19
- Issues using babel-typescript and @types packages HOT 3
- Watching fails to process files HOT 6
- Missing options in examples HOT 2
- Warnings when used with Rollup >= 1.27.0
- There are hints when using plug-ins that introduce files HOT 1
- @rollup/plugin-multi-entry broken by #54 HOT 6
- Watch not working on windows HOT 9
- #69 breaks configs with output.file HOT 1
- Watcher not working using TypeScript? HOT 13
- Watch mode overwrites the test file HOT 9
- New version containing fix for watch mode HOT 1
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-rollup-preprocessor.