UNPKG

stubfn

Version:

A minimal, zero-dependency stub utility for JavaScript testing. Simple API, predictable behavior, and no magic—perfect for replacing Sinon in modern test setups.

51 lines 1.26 kB
{ "name": "stubfn", "version": "0.1.2", "license": "MIT", "description": "A minimal, zero-dependency stub utility for JavaScript testing. Simple API, predictable behavior, and no magic—perfect for replacing Sinon in modern test setups.", "main": "./dist/index.js", "types": "dist/index.d.ts", "files": [ "dist" ], "repository": { "type": "git", "url": "git+https://github.com/mhweiner/stubfn.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/stubfn", "keywords": [ "sinon", "sinon.js", "mock", "stub", "unit test", "ts unit test", "unit-test", "mock", "mockito", "mocktail", "mocking", "ts mock", "proxyquire", "isolate", "dependency mock", "rewire" ], "dependencies": {}, "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" } }