Gathering detailed insights and metrics for karma-jasmine-jquery
Gathering detailed insights and metrics for karma-jasmine-jquery
Gathering detailed insights and metrics for karma-jasmine-jquery
Gathering detailed insights and metrics for karma-jasmine-jquery
npm install karma-jasmine-jquery
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
18 Stars
26 Commits
55 Forks
4 Watching
1 Branches
2 Contributors
Updated on 06 Mar 2018
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
17.3%
833
Compared to previous day
Last week
9.1%
4,993
Compared to previous week
Last month
1.9%
19,931
Compared to previous month
Last year
-11%
229,599
Compared to previous year
2
Jasmine-jquery plugin for Jasmine in Karma.
It karma adapter for
Install the plugin from npm:
1$ npm install karma-jasmine-jquery
karma-jasmine-jquery has a dependency on jasmine, so you should use karma-jasmine
as well before karma-jasmine-jquery
. Please note the followings.
This plugin will only work for version karma-jasmine 2.0 and above.
karma will autoload all plugins, whose name start with karma-
, you can import karma-jasmine-jquery plugins manually. Please refer to http://karma-runner.github.io/0.12/config/plugins.htmt for more details.
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 5 frameworks: ['jasmine-jquery','jasmine'] 6 //... 7 }) 8}
The order('jasmine-jquery','jasmine') is important since it affects the order in which the files will be included to karma. Right order - reverse as karma works on the principle of LIFO stack.
This plugin already includes jquery version 2.1.1, it is used for the plugin. However, in the project, you can use a version of jquery (it can be both below and above) and they will not interfere with each other. When writing tests using jquery $ for the project, and to use jquery 2.1.1, use a global variable $j (it makes sense when you want to use when writing test jquery 2 opportunities that are not available in the current version of jquery used in your project, as I). Example of use:
1// karma.conf.js 2module.exports = function(config) { 3 config.set({ 4 5 frameworks: ['jquery-1.3.2', 'jasmine-jquery', 'jasmine'], 6 //... 7 }) 8} 9 10// Jasmine test example 11 12it('test1', function() { 13 $().destroyWin('window'); // jquery 1.3.2 14 expect($j('#window')).not.toBeInDOM(); // $j = jquery 2.1.1 15 }); 16
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 2/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More