mocks.d.ts 701 B

12345678910
  1. import type { BuildCtx, Cache, CompilerCtx, CompilerSystem, Config } from '@stencil/core/internal';
  2. import { TestingLogger } from './testing-logger';
  3. export declare function mockConfig(sys?: CompilerSystem): Config;
  4. export declare function mockCompilerCtx(config?: Config): CompilerCtx;
  5. export declare function mockBuildCtx(config?: Config, compilerCtx?: CompilerCtx): BuildCtx;
  6. export declare function mockCache(config?: Config, compilerCtx?: CompilerCtx): Cache;
  7. export declare function mockLogger(): TestingLogger;
  8. export declare function mockStencilSystem(): CompilerSystem;
  9. export declare function mockDocument(html?: string): Document;
  10. export declare function mockWindow(html?: string): Window;