@storefront/testing
Version:
Test modules for working with StoreFront components
18 lines (17 loc) • 681 B
TypeScript
/// <reference types="sinon" />
/// <reference types="chai" />
import { Expectations } from './expectations';
import { Tests } from './tests';
import { sinon, suite } from './utils';
declare namespace Suite {
interface Utils {
sinon: sinon.SinonStatic;
expect: Chai.ExpectStatic;
spy: sinon.SinonSpyStatic;
stub: sinon.SinonStubStatic;
}
type FullUtils = Expectations & Tests & Utils;
const extendable: <T extends FullUtils>(extend: (utils: FullUtils) => T) => (chai: Chai.ChaiStatic) => suite.ModifiedDescription<T, any>;
const base: (chai: Chai.ChaiStatic) => suite.ModifiedDescription<FullUtils, any>;
}
export default Suite;