mnasyrov / karma-jasmine-spec-tags Goto Github PK
View Code? Open in Web Editor NEWA plugin for karma-jasmine which helps to filter tests (specs) by tags.
License: MIT License
A plugin for karma-jasmine which helps to filter tests (specs) by tags.
License: MIT License
Karma 6.0.0 introduced a breaking change where the cli errors on "unexpected options or parameters". This results in the following error in the console with karma-jasmine-spec-tags:
Unknown arguments: skip-tags, skipTags
First of all, thank you for creating this helpful utility!
Issue:
With Jasmine 3.3.0 getting and setting specFilter
directly from Env
is deprecated. This method was deprecated in the following commit: jasmine/jasmine@92d0882. When using this utitlity and version 3.3.0 of Jasmine or higher we get the following deprecation warnings:
'DEPRECATION:', 'Getting specFilter directly from Env is deprecated, please check the specFilter option from `configuration`'
'DEPRECATION:', 'Setting specFilter directly on Env is deprecated, please use the specFilter option in `configure`'
Proposed Fix:
Update lines 20 - 21 of client.js
from:
var specFilterFnDelegate = jasmineEnv.specFilter;
jasmineEnv.specFilter = customSpecFilter;
to:
var specFilterFnDelegate = jasmineEnv.configuration.specFilter;
jasmineEnv.configure({ specFilter: customSpecFilter });
Also, add the following jasmine
peerDependency to package.json:
"jasmine": "^3.3.0",
Note:
I'm happy to send a pull request with these changes; however, I believe I do not have permissions to do so at this time.
Thank you!
While updating my devDependencies to latest I found that if I update karma-jasmine to latest (v3.1.0) that my --skipTags
are no longer functional.
Staying at karma-jasmine 2.0.1 or upgrading to karma-jasmine 3.0.3 seem to work with karma-jasmine-spec-tags but when using karma-jasmine 3.1.0 my skipped tags are no longer skipped.
npm WARN Could not resolve dependency:
npm WARN peer jasmine@"^3.3.0" from [email protected]
For me this package works fine with jasmine 4.4.0.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.