refactor: init cypress-cucumber-preprocessor install.
This commit is contained in:
16
node_modules/cosmiconfig/dist/parseJson.js
generated
vendored
Normal file
16
node_modules/cosmiconfig/dist/parseJson.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
//
|
||||
'use strict';
|
||||
|
||||
const parseJson = require('parse-json');
|
||||
|
||||
module.exports = function parseJsonWrapper(
|
||||
json ,
|
||||
filepath
|
||||
) {
|
||||
try {
|
||||
return parseJson(json);
|
||||
} catch (err) {
|
||||
err.message = `JSON Error in ${filepath}:\n${err.message}`;
|
||||
throw err;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user