最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Will Karma be updated for future versions of Angular and Jasmine? - Stack Overflow

programmeradmin2浏览0评论

I tried updating our panies Angular module, with that es the required dependencies update. So I went to all the newest versions. Which included jasmine-core 5.0.0. This broke our Jasmine-karma-HTML-Reporter, since version 2.0.0 is the last of Jasmine-karma-HTML-Reporter versions since 1 year. That version relies on Jasmine-core 4.x.x, this made me look into all the other karma dependencies. And I found out that a lot, if not all, of the karma packages haven't been getting updates since 1 year or more. So what I am trying to figure out is if these will be getting updates or if there are any similar other packages. If we have to migrate it, we would love as little change as possible. Also we would like to keep the configurability that we had with the karma.config, does something like this exist?

We want to update to Angular 16, with all the newest versions. Currently I went back down to Jasmine-core 4.6.0, but this cant be the long term solution. I went to the corresponding NPM post of all the karma packages.

I tried updating our panies Angular module, with that es the required dependencies update. So I went to all the newest versions. Which included jasmine-core 5.0.0. This broke our Jasmine-karma-HTML-Reporter, since version 2.0.0 is the last of Jasmine-karma-HTML-Reporter versions since 1 year. That version relies on Jasmine-core 4.x.x, this made me look into all the other karma dependencies. And I found out that a lot, if not all, of the karma packages haven't been getting updates since 1 year or more. So what I am trying to figure out is if these will be getting updates or if there are any similar other packages. If we have to migrate it, we would love as little change as possible. Also we would like to keep the configurability that we had with the karma.config, does something like this exist?

We want to update to Angular 16, with all the newest versions. Currently I went back down to Jasmine-core 4.6.0, but this cant be the long term solution. I went to the corresponding NPM post of all the karma packages.

Share Improve this question asked May 26, 2023 at 15:21 NKFahrniNKFahrni 511 silver badge3 bronze badges 0
Add a ment  | 

1 Answer 1

Reset to default 5

Short answer: no. Karma is deprecated and is not accepting new features or general bug fixes:

The web testing space has evolved significantly in the 10+ years since Karma's creation. The web landscape looks very different today and new patterns and tools have emerged in the ecosystem. New test runners offer more performant alternatives, and Karma no longer provides clear unique value.

Based on the current state of the web testing ecosystem, we have made the hard decision to deprecate Karma.

We know Karma is used particularly monly in the Angular ecosystem, so Angular is adding Jest and Web Test Runner support to provide a migration path off of Karma. See the Angular blog for more details.

Critical security issues in Karma will still be triaged and fixed as necessary. This will continue until 12 months after Angular CLI's Web Test Runner support is marked stable.

For those outside Angular looking to migrate off Karma, both Web Test Runner and jasmine-browser-runner provide browser-based unit testing solutions which can be used as a direct alternative. Jest and Vitest also provide Node-based alternatives.

Remending alternatives is strictly outside the scope of StackOverflow, but hopefully the above provides some pointers.

发布评论

评论列表(0)

  1. 暂无评论