@types/sinon-test
TypeScript icon, indicating that this package has built-in type declarations

2.4.6 • Public • Published

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

import * as Sinon from "sinon";

interface Configuration {
    injectIntoThis?: boolean | undefined;
    injectInto?: any;
    properties?: Array<"spy" | "stub" | "mock" | "clock" | "server" | "requests"> | undefined;
    useFakeTimers?: boolean | undefined;
    useFakeServer?: 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: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/sinon

Credits

These definitions were written by Francis Saul.

Dependents (3)

Package Sidebar

Install

npm i @types/sinon-test

Weekly Downloads

5,796

Version

2.4.6

License

MIT

Unpacked Size

3.67 kB

Total Files

5

Last publish

Collaborators

  • types