UNPKG

cjs-mock

Version:

NodeJS module mocking for CJS (CommonJS) modules for unit testing purposes.

52 lines 1.26 kB
{ "name": "cjs-mock", "version": "3.1.0", "description": "NodeJS module mocking for CJS (CommonJS) modules for unit testing purposes.", "main": "./dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/mhweiner/cjs-mock.git" }, "scripts": { "prepare": "npm run build", "lint": "eslint ./ --ext .js,.ts", "build": "rm -rf ./dist && tsc", "test": "npm run build && c8 hoare 'src/**/*.spec.ts' && c8 report -r text -r html" }, "homepage": "https://github.com/mhweiner/cjs-mock", "keywords": [ "unit test", "ts unit test", "typescript unit test", "unit-test", "mock", "mocking", "typescript mocking", "ts mock", "proxyquire", "ts proxyquire", "typescript proxyquire", "isolate", "dependency mock", "rewire" ], "dependencies": { "callsites": "3.1.0", "colorette": "2.0.20", "stubfn": "0.1.2" }, "devDependencies": { "@types/node": "^16.11.6", "@typescript-eslint/eslint-plugin": "^5.2.0", "@typescript-eslint/parser": "^5.2.0", "c8": "10.1.3", "eslint": "^8.1.0", "hoare": "3.4.4", "ts-node": "^10.4.0", "typescript": "^4.4.4" } }