@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
156 lines (155 loc) • 6.65 kB
TypeScript
import { JestFacade } from '../jest-facade';
import { createJestPuppeteerEnvironment } from './jest-environment';
import { createTestRunner } from './jest-runner';
import { runJest } from './jest-runner';
import { runJestScreenshot } from './jest-screenshot';
import { jestSetupTestFramework } from './jest-setup-test-framework';
/**
* `JestFacade` implementation for communicating between this directory's version of Jest and Stencil
*/
export declare class Jest27Stencil implements JestFacade {
getJestCliRunner(): typeof runJest;
getRunJestScreenshot(): typeof runJestScreenshot;
getDefaultJestRunner(): string;
getCreateJestPuppeteerEnvironment(): typeof createJestPuppeteerEnvironment;
getJestPreprocessor(): {
process(sourceText: string, sourcePath: string, jestConfig: {
instrument: boolean;
rootDir: string;
} | {
config: {
instrument: boolean;
rootDir: string;
};
}, transformOptions?: {
instrument: boolean;
rootDir: string;
}): string;
getCacheKey(sourceText: string, sourcePath: string, jestConfigStr: string | {
config: {
instrument: boolean;
rootDir: string;
};
}, transformOptions?: {
instrument: boolean;
rootDir: string;
}): string;
};
getCreateJestTestRunner(): typeof createTestRunner;
getJestSetupTestFramework(): typeof jestSetupTestFramework;
getJestPreset(): Partial<{
automock: boolean;
bail: boolean | number;
cache: boolean;
cacheDirectory: import("@jest/types/build/Config").Path;
ci: boolean;
clearMocks: boolean;
changedFilesWithAncestor: boolean;
changedSince: string;
collectCoverage: boolean;
collectCoverageFrom: Array<import("@jest/types/build/Config").Glob>;
collectCoverageOnlyFrom: {
[key: string]: boolean;
};
coverageDirectory: string;
coveragePathIgnorePatterns: Array<string>;
coverageProvider: "babel" | "v8";
coverageReporters: import("@jest/types/build/Config").CoverageReporters;
coverageThreshold: {
[path: string]: import("@jest/types/build/Config").CoverageThresholdValue;
global: import("@jest/types/build/Config").CoverageThresholdValue;
};
dependencyExtractor: string;
detectLeaks: boolean;
detectOpenHandles: boolean;
displayName: string | import("@jest/types/build/Config").DisplayName;
expand: boolean;
extensionsToTreatAsEsm: Array<import("@jest/types/build/Config").Path>;
extraGlobals: Array<string>;
filter: import("@jest/types/build/Config").Path;
findRelatedTests: boolean;
forceCoverageMatch: Array<import("@jest/types/build/Config").Glob>;
forceExit: boolean;
json: boolean;
globals: import("@jest/types/build/Config").ConfigGlobals;
globalSetup: string | null | undefined;
globalTeardown: string | null | undefined;
haste: import("@jest/types/build/Config").HasteConfig;
injectGlobals: boolean;
reporters: Array<string | import("@jest/types/build/Config").ReporterConfig>;
logHeapUsage: boolean;
lastCommit: boolean;
listTests: boolean;
maxConcurrency: number;
maxWorkers: number | string;
moduleDirectories: Array<string>;
moduleFileExtensions: Array<string>;
moduleLoader: import("@jest/types/build/Config").Path;
moduleNameMapper: {
[key: string]: string | Array<string>;
};
modulePathIgnorePatterns: Array<string>;
modulePaths: Array<string>;
name: string;
noStackTrace: boolean;
notify: boolean;
notifyMode: string;
onlyChanged: boolean;
onlyFailures: boolean;
outputFile: import("@jest/types/build/Config").Path;
passWithNoTests: boolean;
preprocessorIgnorePatterns: Array<import("@jest/types/build/Config").Glob>;
preset: string | null | undefined;
prettierPath: string | null | undefined;
projects: Array<import("@jest/types/build/Config").Glob | import("@jest/types/build/Config").InitialProjectOptions>;
replname: string | null | undefined;
resetMocks: boolean;
resetModules: boolean;
resolver: import("@jest/types/build/Config").Path | null | undefined;
restoreMocks: boolean;
rootDir: import("@jest/types/build/Config").Path;
roots: Array<import("@jest/types/build/Config").Path>;
runner: string;
runTestsByPath: boolean;
scriptPreprocessor: string;
setupFiles: Array<import("@jest/types/build/Config").Path>;
setupTestFrameworkScriptFile: import("@jest/types/build/Config").Path;
setupFilesAfterEnv: Array<import("@jest/types/build/Config").Path>;
silent: boolean;
skipFilter: boolean;
skipNodeResolution: boolean;
slowTestThreshold: number;
snapshotResolver: import("@jest/types/build/Config").Path;
snapshotSerializers: Array<import("@jest/types/build/Config").Path>;
snapshotFormat: import("@jest/types/build/Config").PrettyFormatOptions;
errorOnDeprecated: boolean;
testEnvironment: string;
testEnvironmentOptions: Record<string, unknown>;
testFailureExitCode: string | number;
testLocationInResults: boolean;
testMatch: Array<import("@jest/types/build/Config").Glob>;
testNamePattern: string;
testPathDirs: Array<import("@jest/types/build/Config").Path>;
testPathIgnorePatterns: Array<string>;
testRegex: string | Array<string>;
testResultsProcessor: string;
testRunner: string;
testSequencer: string;
testURL: string;
testTimeout: number;
timers: "real" | "fake" | "modern" | "legacy";
transform: {
[regex: string]: import("@jest/types/build/Config").Path | import("@jest/types/build/Config").TransformerConfig;
};
transformIgnorePatterns: Array<import("@jest/types/build/Config").Glob>;
watchPathIgnorePatterns: Array<string>;
unmockedModulePathPatterns: Array<string>;
updateSnapshot: boolean;
useStderr: boolean;
verbose?: boolean;
watch: boolean;
watchAll: boolean;
watchman: boolean;
watchPlugins: Array<string | [string, Record<string, unknown>]>;
}>;
}