New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

grunt-jest-enforcer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-jest-enforcer - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

Gruntfile.js

16

package.json
{
"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');
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc