# @types/sinon-test

> TypeScript definitions for sinon-test

Latest version **2.4.7** (published 2025-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sinon-test
pnpm add @types/sinon-test
yarn add @types/sinon-test
bun add @types/sinon-test
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.4.7 |
| Published | 2025-11-12 |
| First published | 2017-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51450 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/sinon-test
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon-test
- npm.io page: https://npm.io/package/@types/sinon-test

## Dependencies (1)

- [@types/sinon](https://npm.io/package/@types/sinon.md) *

## Recent versions

- 2.4.7 (latest) — 2025-11-12
- 2.4.6 (ts4.9) — 2023-11-07
- 2.4.3 (ts3.6) — 2021-07-06
- 2.4.2 (ts3.2) — 2020-09-26
- 2.4.1 (ts2.8) — 2020-03-31
- 1.0.4 (ts2.3) — 2018-05-10
- 1.0.1 (ts2.0) — 2017-04-18
- 2.4.5 — 2023-10-18
- 2.4.4 — 2023-09-25
- 2.4.0 — 2019-07-09
- 1.0.7 — 2018-12-12
- 1.0.6 — 2018-11-18
- 1.0.5 — 2018-05-24
- 1.0.3 — 2018-05-09
- 1.0.2 — 2017-06-05
- … 1 more at https://npm.io/package/@types/sinon-test/versions

## README

# Installation
> `npm install --save @types/sinon-test`

# Summary
This package contains type definitions for sinon-test (https://github.com/sinonjs/sinon-test).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon-test.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon-test/index.d.ts)
````ts
import * as Sinon from "sinon";

interface Configuration {
    injectIntoThis?: boolean | undefined;
    injectInto?: any;
    properties?: Array<"spy" | "stub" | "mock" | "clock" | "server" | "requests"> | undefined;
    useFakeTimers?: boolean | undefined;
}

declare function sinonTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
declare namespace sinonTest {
    function configureTest(sinon: Sinon.SinonStatic, config?: Configuration): any;
}

export = sinonTest;

````

### Additional Details
 * Last updated: Wed, 12 Nov 2025 07:34:21 GMT
 * Dependencies: [@types/sinon](https://npmjs.com/package/@types/sinon)

# Credits
These definitions were written by [Francis Saul](https://github.com/mummybot).

---
_Source: https://npm.io/package/@types/sinon-test · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
