Skip to content

build & tests tools in hls.js #5792

Answered by robwalch
sparrowscout asked this question in Q&A
Discussion options

You must be logged in to vote

Could you please explain why you chose rollup + babel as your build tools and karma + mocha as your test tools, instead of something like rollup + SWC or karma + jasmine?

Rollup provides the cleanest JavaScript output without adding any additional boiler plate for module import/export. We recently switched from webpack to rollup with #5299.

Babel does exactly what we need - I don't see any compelling reason to change. I don't think SWC was even an option when we adopted Babel.

The test framework and tools are maybe not the slickest, but they still work, and are easier to maintain than replace.

I'd like to check the test coverage within hls.js. How can I do that?

After running unit tes…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sparrowscout
Comment options

Answer selected by sparrowscout
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants