grunt-jest-enforcer
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "grunt-jest-enforcer", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -21,2 +20,15 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"license": "BSD", | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.5" | ||
}, | ||
"main": "Gruntfile.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"dependencies": { | ||
"grunt": "^0.4.5" | ||
}, | ||
"bugs": { | ||
@@ -23,0 +35,0 @@ "url": "https://github.com/bigdatr/grunt-jest-enforcer/issues" |
# grunt-jest-enforcer | ||
## Getting Started: | ||
This plugin is to find all files matching a list of patterns and create a new file, which will be executed by test framework (eg. jest). The new file requires all matched files from the list above. | ||
```shell | ||
npm install grunt-jest-enforcer --save-dev | ||
``` | ||
## Examples: | ||
### Sample grunt file : | ||
src: the list of patterens that file will match. | ||
dest: the output file requires all matched files. | ||
```js | ||
jest_enforcer: { | ||
options: { | ||
}, | ||
files: { | ||
src: [ './sample_source/**/test*.js*' ], | ||
dest: './sample_output/requireFiles.js', | ||
} | ||
} | ||
``` | ||
### Sample output: | ||
The test framework (eg. jest) can run this file and you will get test coverage report for all required files. | ||
```js | ||
var __sample_source_test_1_js = require('./../sample_source/test_1.js'); | ||
var __sample_source_test_3_jsx = require('./../sample_source/test_3.jsx'); | ||
var __sample_source_test_4_js = require('./../sample_source/test_4.js'); | ||
``` |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
5871
10
51
41
0
1
1
+ Addedgrunt@^0.4.5
+ Addedabbrev@1.1.1(transitive)
+ Addedargparse@0.1.16(transitive)
+ Addedasync@0.1.22(transitive)
+ Addedcoffee-script@1.3.3(transitive)
+ Addedcolors@0.6.2(transitive)
+ Addeddateformat@1.0.2-1.2.3(transitive)
+ Addedesprima@1.0.4(transitive)
+ Addedeventemitter2@0.4.14(transitive)
+ Addedexit@0.1.2(transitive)
+ Addedfindup-sync@0.1.3(transitive)
+ Addedgetobject@0.1.0(transitive)
+ Addedglob@3.1.213.2.11(transitive)
+ Addedgraceful-fs@1.2.3(transitive)
+ Addedgrunt@0.4.5(transitive)
+ Addedgrunt-legacy-log@0.1.3(transitive)
+ Addedgrunt-legacy-log-utils@0.1.1(transitive)
+ Addedgrunt-legacy-util@0.2.0(transitive)
+ Addedhooker@0.2.3(transitive)
+ Addediconv-lite@0.2.11(transitive)
+ Addedinherits@1.0.22.0.4(transitive)
+ Addedjs-yaml@2.0.5(transitive)
+ Addedlodash@0.9.22.4.2(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedminimatch@0.2.140.3.0(transitive)
+ Addednopt@1.0.10(transitive)
+ Addedrimraf@2.2.8(transitive)
+ Addedsigmund@1.0.1(transitive)
+ Addedunderscore@1.7.0(transitive)
+ Addedunderscore.string@2.2.12.3.32.4.0(transitive)
+ Addedwhich@1.0.9(transitive)