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
Deprecated jasmineEnv configuration breaks plugins #1617
Comments
same issue here |
The old functions haven't been removed, only deprecated. It looks like the error is caused because the way that karma-jasmine is setting the configuration options is breaking the Jasmine environments link to its own Hope this helps. |
Ah, that makes sense. I'll close this ticket and maybe try to fix it on karma-jasmine. Thank you. |
I know you can't do anything about this now, so this is just feedback for the future. Adding the new configure() API at 3.3 and simultaneously adding deprecation messages is very unpleasant for downstream apps like karma-jasmine. We can't use the new API because we need to support 3.x including 3.2; we don't want the deprecation messages because users will complain; we don't want to support both because we already have limited resources. So in effect this becomes a breaking API change for us. |
@johnjbarton sorry about this. I'm not sure what the fully correct answer here is. I added the deprecation warnings to give as much lead time for fixing them before things actually break and the methods are removed, and I know I'll forget to do it later if I wait a release or two. |
Hey, we recovered, no problems now, thanks! |
Expected Behavior
Since jasmine-core@3.3, configuration object is introduced to Env. Plugins like karma-jasmine, still uses the old style configuration.
Current Behavior
It prevents runners to run jasmine.
Possible Solution
Instead of deprecating it right away, a warning should suffice for the time being, to let plugin maintainers to migrate to the new configuration.
Environment
We're using karma, jasmine, and karma-jasmine to run tests.
The text was updated successfully, but these errors were encountered: