{"library":"vehicles","type":"library","category":null,"description":"Vehicles is a JavaScript/TypeScript testing utility designed to manipulate the system's time, enabling developers to 'travel into the future' for deterministic testing of time-sensitive code. It achieves this by mocking and controlling internal timers, such as `setTimeout`, `setInterval`, and `Date.now()`, allowing tests to execute scenarios involving time progression without actual real-time waits. The current stable version is 10.0.23, with a release cadence that appears to be frequent, primarily consisting of patch releases. Its key differentiator lies in providing a controlled environment for asynchronous operations and date-based logic, ensuring test reliability and speed. The package explicitly targets Node.js environments, requiring version 18.2.0 or higher.","language":"javascript","status":"active","version":"10.0.23","tags":["javascript","scheduler","testing","timer","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vehicles","imports":["import { travel } from 'vehicles';","import { reset } from 'vehicles';","import type { MockedDate } from 'vehicles';"]},{"cmd":"yarn add vehicles","imports":[]},{"cmd":"pnpm add vehicles","imports":[]}],"homepage":null,"github":"https://github.com/chrisguttandin/vehicles","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vehicles","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vehicles/compatibility"}}