UNPKG

time-fast-forward

Version:

Fake the system time (Date, hrtime) in your tests, without freezing it (unlike in many other libraries). Freeze only when you need.

58 lines (57 loc) 1.41 kB
{ "name": "time-fast-forward", "version": "1.0.3", "description": "Fake the system time (Date, hrtime) in your tests, without freezing it (unlike in many other libraries). Freeze only when you need.", "main": "./lib/index.js", "types": "./lib/index.d.ts", "files": [ "/lib" ], "scripts": { "test": "npm run build && nyc mocha --exit --timeout 5000 -r ts-node/register tests/**/*.test.ts", "posttest": "nyc report --reporter=lcov", "coverage": "codecov", "build": "prettier --write ./src && tsc" }, "repository": { "type": "git", "url": "git+https://github.com/ZitRos/time-fast-forward.git" }, "keywords": [ "date", "time", "mock", "fast", "forward", "backward", "system", "timezone", "shift", "tests", "mocha", "jest", "hrtime" ], "author": { "name": "Nikita Savchenko", "email": "me@nikita.tk", "url": "https://nikita.tk" }, "license": "MIT", "bugs": { "url": "https://github.com/ZitRos/time-fast-forward/issues" }, "homepage": "https://github.com/ZitRos/time-fast-forward#readme", "devDependencies": { "@types/chai": "^4.2.12", "@types/mocha": "^8.0.3", "@types/node": "^14.10.1", "chai": "^4.2.0", "codecov": "^3.7.2", "mocha": "^8.1.3", "nyc": "^15.1.0", "prettier": "^2.1.1", "ts-node": "^9.0.0", "typescript": "^4.0.2" } }