-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Karma 6 #462
Comments
I'll take a look at this today, thanks for making an issue. |
After upgrade to karma 6 I get some additional errors:
|
@nicojs @marc-mabe Could you let me know if karma 6 works for you using |
Will it be possible to use webpack 4 with karma 6? |
Integration tests pass using a combination of
|
Why does |
It's aimed at supporting webpack 5, I don't believe that we want to continue to officially support older versions in the next release. Regardless, I don't think anything should stop you from including an older peerDependency, usually this just results in a warning like this. I have a project that builds using
What is the actual error that you see? |
NPM 7 forbids installing unmatched peer dependencies. I don’t use it yet, but eventually I will
Will check |
It just doesn't run any tests and exits with 1
The repo is https://github.com/JetBrains/ring-ui/tree/dependabot/npm_and_yarn/karma-6.0.0 and the command is |
You need to include webpack as a framework in your karma config. I see its currently missing from your project. |
That helped, thanks! |
I can confirm we do not use customFileHandlers in the latest release of karma-webpack and that I have had success in using the plugin with karma 6 on the latest version |
Our integration test is still failing with Might be unrelated to this issue though, needs more investigation. Will do that ASAP (later today), but have some other stuff to do now. |
Experiencing the same problem here. Was going to add tests to existing NativeScript Angular application but it fails when I run
What would be the best way to fix this? |
@andrewm-mitchells are you using karma-webpack |
Thank you for suggesting that. Not sure if it relates to Karma at this point or NativeScript. Will continue investigating.
|
I have an issue with the alfa.5 version. I'm getting
(no tests found) I'm using the alternative usage from the readme, is that still supported? Reproduce by extracting this file and run |
@nicojs the test folder in that repro is empty, also you need to add webpack to your list of frameworks in karma.conf I made those adjustments and everything seems to work |
I have an issue with
This is my karma.conf file https://github.com/RedHatInsights/policies-ui-frontend/blob/ad7654587474ae0eef5672decd3c8af117f07691/config/karma.conf.ts Any idea where I could look? |
Hi @codymikol , thanks for the fast response. Adding I've added the original tests to zip, so this complete example should work now: I can also confirm that this works with webpack 4.x |
@nicojs glad you got it working. The webpack requirement is new, I'm planning on making a PR that will automatically add that if it's missing, it seems to be a big pain point. |
I'll leave this issue open for those looking to troubleshoot karma 6 configuration until 5.0.0 is released |
And when are you planning on releasing v5? |
I want to clean up some of the remaining pain points before the official release, I don't have a real timeline on that unfortunately. |
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: #3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
The Karma project restored |
Thanks @donkirkby ! We just released an alpha.6 version that will automatically set the webpack framework, which seems to be the root of this ticket, I'm going to close this unless you're experiencing more issues. Hopefully a stable v5 will be out in the next two weeks, I want to further investigate some of the requirements in our docs and see if we can avoid having to specify them entirely. |
v5 is now available |
The removal of `customFileHandlers` turned out to be more disruptive change than anticipated as this provider is still used by several popular plugins: karma-runner#3619, codymikol/karma-webpack#462, angular/angular-cli#19815. Hence we restore the provider and print a deprecation warning to make upgrading easier. This should give more time for the plugin authors to release new versions and users to adopt these versions.
Feature Proposal
Karma 6 just released yesterday but doesn't seem to be supported by karma-webpack.
Maybe this has to do with
customFileHandlers
being injected?https://github.com/ryanclark/karma-webpack/blob/3cc35b33e14405e65b8f91505f212b0b035f8cc0/src/karma-webpack.js#L56
This is no longer supported: https://github.com/karma-runner/karma/blob/master/CHANGELOG.md#breaking-changes
The text was updated successfully, but these errors were encountered: