UNPKG

jest-time-helpers

Version:

Helpers you can use in tests that relate to the passage of time (i.e. code that involves setTimeout, setInterval, new Date(), Date.now(), etc)

64 lines (63 loc) 2.03 kB
{ "name": "jest-time-helpers", "version": "0.1.1", "description": "Helpers you can use in tests that relate to the passage of time (i.e. code that involves setTimeout, setInterval, new Date(), Date.now(), etc)", "main": "dist/index.js", "scripts": { "prepack": "rm -Rf dist && tsc", "docs": "typedoc src/index.ts", "watch": "tsc --watch", "lint": "yarn prettier:check && eslint --ext .js,.jsx,.ts,.tsx,.graphql .", "lint:fix": "eslint --ext .js,.jsx,.ts,.tsx,.graphql . --fix; prettier --ignore-path .eslintignore --write '**/*.{js,jsx,ts,tsx,graphql,md,json}'", "prettier:check": "prettier --ignore-path .eslintignore --check '**/*.{js,jsx,ts,tsx,graphql,md,json}'", "test": "yarn prepack && jest && depcheck", "preversion": "grep '^### Pending' RELEASE_NOTES.md && echo \"⚠️ Cannot publish with 'Pending' in RELEASE_NOTES ⚠️\" && exit 1 || true" }, "repository": { "type": "git", "url": "git+https://github.com/graphile/jest-time-helpers.git" }, "keywords": [ "jest", "time", "timing", "timeout", "interval", "now", "date", "helpers", "test", "testing", "passage", "settimeout", "setinterval" ], "author": "Benjie Gillam <code@benjiegillam.com>", "license": "MIT", "bugs": { "url": "https://github.com/graphile/jest-time-helpers/issues" }, "homepage": "https://github.com/graphile/jest-time-helpers#readme", "peerDependencies": { "jest": ">=22 <27" }, "devDependencies": { "@types/node": "^14.14.21", "@typescript-eslint/eslint-plugin": "^4.13.0", "@typescript-eslint/parser": "^4.13.0", "depcheck": "^1.3.1", "eslint": "^7.17.0", "eslint-config-prettier": "^7.1.0", "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "^24.1.3", "eslint-plugin-simple-import-sort": "^7.0.0", "jest": "^26.6.3", "prettier": "^2.2.1", "ts-jest": "^26.4.4", "typedoc": "^0.20.14", "typescript": "^4.1.3" }, "files": [ "dist" ] }