Skip to content
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

Setting specFilter directly on Env is deprecated #190

Closed
dotnetCarpenter opened this issue Nov 11, 2018 · 12 comments
Closed

Setting specFilter directly on Env is deprecated #190

dotnetCarpenter opened this issue Nov 11, 2018 · 12 comments

Comments

@dotnetCarpenter
Copy link

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.

@dotnetCarpenter
Copy link
Author

"jasmine-core": "^3.3.0",
"karma": "^3.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage": "^1.1.2",
"karma-firefox-launcher": "^1.1.0",
"karma-jasmine": "^1.1.2",

@abdelkrimdev
Copy link

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

@dotnetCarpenter
Copy link
Author

@abdelkrimdev Thanks, that works!

@mowali
Copy link

mowali commented 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",

@proAppleEater
Copy link

I'm in the exact same situation as mowali !

@ovitrif
Copy link

ovitrif commented Mar 15, 2019

Same

@rogeriopvl
Copy link
Collaborator

@mowali @proAppleEater @ovitrif This issue is not related with karma-chrome-launcher. Please check: karma-runner/karma-jasmine#221

colegregory added a commit to colegregory/yacs that referenced this issue Mar 29, 2019
Changed for running individual tests.
Fixes the following error: 
ERROR: 'DEPRECATION:', 'Setting specFilter directly on Env is 
deprecated, please use the specFilter option in `configure`'

karma-runner/karma-chrome-launcher#190
@shardulsonar
Copy link

How to check the version of karma-jasmine ?

@johnjbarton
Copy link
Contributor

Look in node_modules/karma-jasmine/package.json

@lenichols
Copy link

Updating Karma-Jasmine to 2.0.1 solved this for me. Thnks!

@Yagnadat-Talakola
Copy link

Yagnadat-Talakola commented Jan 7, 2020

Thanks for raising the issue @dotnetCarpenter, I've had a similar issue today. Updating the version to 2.0.0 helped remove it.

@johnjbarton
Copy link
Contributor

You probably want 2.0.1... but 3.0.1 is out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants