UNPKG

@vabole/patcher

Version:

Tool for patching npm packages without modifying source repositories

18 lines (17 loc) 446 B
/** * Shared test configuration for patching is-odd package * Used by all test scripts to ensure consistent behavior */ export default { // Package details packagePath: "node_modules/is-odd/index.js", beautify: false, // Patches to apply replacements: [ [ "module.exports = function isOdd(value) {", `module.exports = function isOdd(value) { if (value === 0) throw new Error('zero is not allowed');` ] ] }