hermione-test-filter
Advanced tools
Comparing version 0.2.0 to 0.3.0
'use strict'; | ||
const Promise = require('bluebird'); | ||
const fs = Promise.promisifyAll(require('fs')); | ||
const _ = require('lodash'); | ||
const parseConfig = require('./config'); | ||
const utils = require('./utils'); | ||
const readInput = async (inputFile) => { | ||
const input = await fs.readFileAsync(inputFile); | ||
return JSON.parse(input.toString()); | ||
}; | ||
module.exports = (hermione, opts) => { | ||
@@ -28,3 +21,3 @@ const pluginConfig = parseConfig(opts); | ||
hermione.on(hermione.events.INIT, async () => { | ||
input = await readInput(pluginConfig.inputFile); | ||
input = await utils.readFile(pluginConfig.inputFile); | ||
}); | ||
@@ -31,0 +24,0 @@ |
{ | ||
"name": "hermione-test-filter", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "plugin for filtering tests specified in json-file", | ||
@@ -27,2 +27,3 @@ "main": "lib/index.js", | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"eslint": "^5.0.1", | ||
@@ -29,0 +30,0 @@ "eslint-config-gemini-testing": "^2.8.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4887
6
71
7
1