question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting specFilter directly on Env is deprecated

See original GitHub issue

When I run tests now, I get the following:

HeadlessChrome 0.0.0 (Ubuntu 0.0.0) ERROR: ‘DEPRECATION:’, ‘Setting specFilter directly on Env is deprecated, please use the specFilter option in configure

For now it’s ok. But one day it will probably fail.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

36reactions
abdelkrimdevcommented, Nov 15, 2018

Hello!!! You have to update the karma-jasmine to the latest version 2.0.0 this will fix the issue. Thanks 😄

9reactions
mowalicommented, Mar 8, 2019

My karma-jasmine is set to latest 2.0.1 but still getting error. I just updated to Angular 7 and TypeScript 3.2 “jasmine-core”: “^3.3.0”, “jasmine-spec-reporter”: “^4.2.1”, “karma”: “^4.0.1”, “karma-chrome-launcher”: “^2.2.0”, “karma-cli”: “^2.0.0”, “karma-coverage”: “^1.1.2”, “karma-coverage-istanbul-reporter”: “^2.0.5”, “karma-jasmine”: “^2.0.1”, “karma-jasmine-html-reporter”: “^1.4.0”, “karma-trx-reporter”: “^0.4.0”,

Read more comments on GitHub >

github_iconTop Results From Across the Web

DEPRECATION:', 'Setting specFilter directly on Env is ...
I was using the version 1.1.1 of karma-jasmine package. Reading this post, I updated it to version 2.0.1 and the warning disappeared.
Read more >
Karma Plugin raises deprecation warning when executing ...
DEPRECATION: Setting specFilter directly on Env is deprecated, please use the specFilter option in `configure` DEPRECATION: Getting specFilter directly from ...
Read more >
webdriverio/webdriverio - Gitter
hi everyone ... I keep getting the DEPRECATION warning DEPRECATION: Setting randomizeTests directly is deprecated, please use the random option in configure ......
Read more >
Class: Env - Jasmine Documentation
2.7.0. Deprecated: Use the `failFast` option with Env#configure. throwOnExpectationFailure(value).
Read more >
Renovate Bot Package Diff
If you only wish to configure the Jasmine env, you ... 'Getting specFilter directly from Env is deprecated and will be removed in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found