UNPKG

jest-mock-random

Version:

Math.random() as a deterministic jest mock function

47 lines 1.05 kB
{ "name": "jest-mock-random", "version": "1.1.1", "description": "Math.random() as a deterministic jest mock function", "main": "index.js", "types": "index.d.ts", "repository": { "type": "git", "url": "https://github.com/peoplenarthax/jest-mock-random.git" }, "author": { "name": "Angel Paredes Barato", "email": "angel.p.barato@gmail.com" }, "license": "MIT", "scripts": { "precommit": "lint-staged", "test": "jest **/*.js", "test-watch": "jest --watch", "lint": "eslint \"index.js\" \"__tests__/**/*.js\"" }, "lint-staged": { "*.js": [ "lint --fix", "git add" ] }, "keywords": [ "math", "jest", "mock", "random" ], "devDependencies": { "eslint": "^6.6.0", "eslint-config-airbnb": "^18.0.1", "eslint-plugin-import": "^2.18.2", "husky": "^3.1.0", "jest": "^24.9.0", "jest-cli": "^24.9.0", "lint-staged": "^9.4.3" }, "files": [ "index.js", "index.d.ts" ] }