Upgrading @types/jest 19 to 20
Unknown19.2.4 → 20.0.8
Fetching 9 releases from GitHub…0 / 9
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- removed:
call jasmine.CustomEqualityTester(first: any, second: any): boolean - removed:
call jasmine.CustomMatcherFactory(util: MatchersUtil, customEqualityTesters: Array<CustomEqualityTester>): CustomMatcher - removed:
call jest.EmptyFunction(): void - removed:
call jest.Lifecycle(fn: ProvidesCallback): any - removed:
call jest.ProvidesCallback(cb: DoneCallback): any - removed:
interface jasmine.CustomEqualityTester - removed:
interface jasmine.CustomMatcherFactory - removed:
interface jest.EmptyFunction - removed:
interface jest.Lifecycle - removed:
interface jest.ProvidesCallback - removed:
var jasmine.DEFAULT_TIMEOUT_INTERVAL: number - removed:
var jasmine.clock: () => Clock - changed:
call jest.Expect(actual: any): Matchers → call jest.Expect(actual: any): Matchers<void> - changed:
call jest.It(name: string, fn?: ProvidesCallback): void → call jest.It(name: string, fn?: ProvidesCallback, timeout?: number): void - changed:
function jasmine.createSpy(name: string, originalFn?: Function): Spy → function jasmine.createSpy(name: string, originalFn?: (...args: any[]) => any): Spy - changed:
function jest.doMock(moduleName: string): typeof jest → function jest.doMock(moduleName: string, factory?: any, options?: MockOptions): typeof jest - changed:
function jest.fn<T>(implementation?: Function): Mock<T> → function jest.fn<T>(implementation?: (...args: any[]) => any): Mock<T> - changed:
index jest.ExpectExtendMap[key: string]: (this: MatcherUtils, received: any, actual: any) => { message: () => string, pass: boolean } → index jest.ExpectExtendMap[key: string]: (this: MatcherUtils, received: any, actual: any) => { message(): string, pass: boolean } - changed:
interface jest.Matchers → interface jest.Matchers<R> - changed:
method jasmine.MatchersUtil.buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: Array<any>): string → method jasmine.MatchersUtil.buildFailureMessage(matcherName: string, isNot: boolean, actual: any, ...expected: any[]): string - changed:
method jasmine.MatchersUtil.contains<T>(haystack: ArrayLike<T> | string, needle: any, customTesters?: Array<CustomEqualityTester>): boolean → method jasmine.MatchersUtil.contains<T>(haystack: ArrayLike<T> | string, needle: any, customTesters?: CustomEqualityTester[]): boolean - changed:
method jasmine.MatchersUtil.equals(a: any, b: any, customTesters?: Array<CustomEqualityTester>): boolean → method jasmine.MatchersUtil.equals(a: any, b: any, customTesters?: CustomEqualityTester[]): boolean - changed:
method jasmine.SpyAnd.callFake(fn: Function): Spy → method jasmine.SpyAnd.callFake(fn: (...args: any[]) => any): Spy - changed:
method jest.Expect.addSnapshotSerializer(serializer: SnapshotSerializerPlugin) : void → method jest.Expect.addSnapshotSerializer(serializer: SnapshotSerializerPlugin): void - changed:
method jest.Matchers.lastCalledWith(...args: any[]): void → method jest.Matchers.lastCalledWith(...args: any[]): R - changed:
method jest.Matchers.toBe(expected: any): void → method jest.Matchers.toBe(expected: any): R - changed:
method jest.Matchers.toBeCalled(): void → method jest.Matchers.toBeCalled(): R - changed:
method jest.Matchers.toBeCalledWith(...args: any[]): void → method jest.Matchers.toBeCalledWith(...args: any[]): R - changed:
method jest.Matchers.toBeCloseTo(expected: number, delta?: number): void → method jest.Matchers.toBeCloseTo(expected: number, delta?: number): R - changed:
method jest.Matchers.toBeDefined(): void → method jest.Matchers.toBeDefined(): R - changed:
method jest.Matchers.toBeFalsy(): void → method jest.Matchers.toBeFalsy(): R - changed:
method jest.Matchers.toBeGreaterThan(expected: number): void → method jest.Matchers.toBeGreaterThan(expected: number): R - changed:
method jest.Matchers.toBeGreaterThanOrEqual(expected: number): void → method jest.Matchers.toBeGreaterThanOrEqual(expected: number): R - changed:
method jest.Matchers.toBeInstanceOf(expected: any): void → method jest.Matchers.toBeInstanceOf(expected: any): R - changed:
method jest.Matchers.toBeLessThan(expected: number): void → method jest.Matchers.toBeLessThan(expected: number): R - changed:
method jest.Matchers.toBeLessThanOrEqual(expected: number): void → method jest.Matchers.toBeLessThanOrEqual(expected: number): R - changed:
method jest.Matchers.toBeNull(): void → method jest.Matchers.toBeNull(): R - changed:
method jest.Matchers.toBeTruthy(): void → method jest.Matchers.toBeTruthy(): R - changed:
method jest.Matchers.toBeUndefined(): void → method jest.Matchers.toBeUndefined(): R - changed:
method jest.Matchers.toContain(expected: any): void → method jest.Matchers.toContain(expected: any): R - changed:
method jest.Matchers.toContainEqual(expected: any): void → method jest.Matchers.toContainEqual(expected: any): R - changed:
method jest.Matchers.toEqual(expected: any): void → method jest.Matchers.toEqual(expected: any): R - changed:
method jest.Matchers.toHaveBeenCalled(): boolean → method jest.Matchers.toHaveBeenCalled(): R - changed:
method jest.Matchers.toHaveBeenCalledTimes(expected: number): boolean → method jest.Matchers.toHaveBeenCalledTimes(expected: number): R - changed:
method jest.Matchers.toHaveBeenCalledWith(...params: any[]): boolean → method jest.Matchers.toHaveBeenCalledWith(...params: any[]): R - changed:
method jest.Matchers.toHaveBeenLastCalledWith(...params: any[]): boolean → method jest.Matchers.toHaveBeenLastCalledWith(...params: any[]): R - changed:
method jest.Matchers.toHaveLength(expected: number): void → method jest.Matchers.toHaveLength(expected: number): R - changed:
method jest.Matchers.toHaveProperty(propertyPath: string, value?: any): void → method jest.Matchers.toHaveProperty(propertyPath: string, value?: any): R - changed:
method jest.Matchers.toMatch(expected: string | RegExp): void → method jest.Matchers.toMatch(expected: string | RegExp): R - changed:
method jest.Matchers.toMatchObject(expected: {}): void → method jest.Matchers.toMatchObject(expected: {} | any[]): R - changed:
method jest.Matchers.toMatchSnapshot(snapshotName?: string): void → method jest.Matchers.toMatchSnapshot(snapshotName?: string): R - changed:
method jest.Matchers.toThrow(error?: string | Constructable | RegExp): void → method jest.Matchers.toThrow(error?: string | Constructable | RegExp): R - changed:
method jest.Matchers.toThrowError(error?: string | Constructable | RegExp): void → method jest.Matchers.toThrowError(error?: string | Constructable | RegExp): R - changed:
method jest.Matchers.toThrowErrorMatchingSnapshot(): void → method jest.Matchers.toThrowErrorMatchingSnapshot(): R - changed:
method jest.MockInstance.mockImplementation(fn: Function): Mock<T> → method jest.MockInstance.mockImplementation(fn: (...args: any[]) => any): Mock<T> - changed:
method jest.MockInstance.mockImplementationOnce(fn: Function): Mock<T> → method jest.MockInstance.mockImplementationOnce(fn: (...args: any[]) => any): Mock<T> - changed:
method jest.SnapshotSerializerPlugin.print(val:any, serialize:((val:any) => string), indent:((str:string) => string), opts:SnapshotSerializerOptions, colors: SnapshotSerializerColors) : string → method jest.SnapshotSerializerPlugin.print(val: any, serialize: ((val: any) => string), indent: ((str: string) => string), opts: SnapshotSerializerOptions, colors: SnapshotSerializerColors): string - changed:
method jest.SnapshotSerializerPlugin.test(val:any) : boolean → method jest.SnapshotSerializerPlugin.test(val: any): boolean - changed:
new jest.Mock(): T → new jest.Mock(...args: any[]): T - changed:
property jest.Matchers.not: Matchers → property jest.Matchers.not: Matchers<R> - changed:
property jest.SnapshotSerializerOptions.plugins?: Array<SnapshotSerializerPlugin> → property jest.SnapshotSerializerOptions.plugins?: SnapshotSerializerPlugin[] - added:
function jasmine.clock(): Clock - added:
index jest.RawCoverage[filePath: string]: RawFileCoverage - added:
interface jest.$JestEnvironment - added:
interface jest.AggregatedResult - added:
interface jest.AssertionResult - added:
interface jest.Context - added:
interface jest.CoverageMap - added:
interface jest.CoverageSummary - added:
interface jest.FakeTimers - added:
interface jest.FileCoverage - added:
interface jest.FileCoverageTotal - added:
interface jest.GlobalConfig - added:
interface jest.HasteConfig - added:
interface jest.LogEntry - added:
interface jest.ProjectConfig - added:
interface jest.RawCoverage - added:
interface jest.RawFileCoverage - added:
interface jest.Reporter - added:
interface jest.ReporterOnStartOptions - added:
interface jest.SerializableError - added:
interface jest.SnapshotSummary - added:
interface jest.Test - added:
interface jest.TestResult - added:
interface jest.TransformOptions - added:
interface jest.TransformedSource - added:
interface jest.Transformer - added:
let jasmine.DEFAULT_TIMEOUT_INTERVAL: number - added:
method jest.$JestEnvironment.dispose(): void - added:
method jest.$JestEnvironment.runScript(script: Script): any - added:
method jest.CoverageMap.addFileCoverage(fileCoverage: RawFileCoverage): void - added:
method jest.CoverageMap.fileCoverageFor(file: string): FileCoverage - added:
method jest.CoverageMap.files(): string[] - added:
method jest.CoverageMap.getCoverageSummary(): FileCoverage - added:
method jest.CoverageMap.merge(data: object): void - added:
method jest.Expect.hasAssertions(): void - added:
method jest.FakeTimers.clearAllTimers(): void - added:
method jest.FakeTimers.runAllImmediates(): void - added:
method jest.FakeTimers.runAllTicks(): void - added:
method jest.FakeTimers.runAllTimers(): void - added:
method jest.FakeTimers.runOnlyPendingTimers(): void - added:
method jest.FakeTimers.runTimersToTime(msToRun: number): void - added:
method jest.FakeTimers.runWithRealTimers(callback: any): void - added:
method jest.FakeTimers.useFakeTimers(): void - added:
method jest.FakeTimers.useRealTimers(): void - added:
method jest.FileCoverage.computeBranchTotals(): FileCoverageTotal - added:
method jest.FileCoverage.computeSimpleTotals(property: string): FileCoverageTotal - added:
method jest.FileCoverage.getBranchCoverageByLine(): object - added:
method jest.FileCoverage.getLineCoverage(): object - added:
method jest.FileCoverage.getUncoveredLines(): number[] - added:
method jest.FileCoverage.merge(other: object): void - added:
method jest.FileCoverage.resetHits(): void - added:
method jest.FileCoverage.toJSON(): object - added:
method jest.FileCoverage.toSummary(): CoverageSummary - added:
method jest.Matchers.toBeNaN(): R - added:
method jest.Reporter.getLastError?(): Maybe<Error> - added:
method jest.Reporter.onRunComplete?(contexts: Set<Context>, results: AggregatedResult): Maybe<Promise<void>> - added:
method jest.Reporter.onRunStart?(results: AggregatedResult, options: ReporterOnStartOptions): void - added:
method jest.Reporter.onTestResult?(test: Test, testResult: TestResult, aggregatedResult: AggregatedResult): void - added:
method jest.Reporter.onTestStart?(test: Test): void - added:
method jest.Transformer.createTransformer?(options: any): Transformer - added:
method jest.Transformer.getCacheKey?(fileData: string, filePath: Path, configStr: string, options: TransformOptions): string - added:
method jest.Transformer.process(sourceText: string, sourcePath: Path, config: ProjectConfig, options?: TransformOptions): string | TransformedSource - added:
property jest.$JestEnvironment.fakeTimers: FakeTimers - added:
property jest.$JestEnvironment.global: Global - added:
property jest.$JestEnvironment.moduleMocker: ModuleMocker - added:
property jest.$JestEnvironment.testFilePath: string - added:
property jest.AggregatedResult.coverageMap?: Maybe<CoverageMap> - added:
property jest.AggregatedResult.numFailedTestSuites: number - added:
property jest.AggregatedResult.numFailedTests: number - added:
property jest.AggregatedResult.numPassedTestSuites: number - added:
property jest.AggregatedResult.numPassedTests: number - added:
property jest.AggregatedResult.numPendingTestSuites: number - added:
property jest.AggregatedResult.numPendingTests: number - added:
property jest.AggregatedResult.numRuntimeErrorTestSuites: number - added:
property jest.AggregatedResult.numTotalTestSuites: number - added:
property jest.AggregatedResult.numTotalTests: number - added:
property jest.AggregatedResult.snapshot: SnapshotSummary - added:
property jest.AggregatedResult.startTime: number - added:
property jest.AggregatedResult.success: boolean - added:
property jest.AggregatedResult.testResults: TestResult[] - added:
property jest.AggregatedResult.wasInterrupted: boolean - added:
property jest.AssertionResult.ancestorTitles: string[] - added:
property jest.AssertionResult.duration?: Maybe<Milliseconds> - added:
property jest.AssertionResult.failureMessages: string[] - added:
property jest.AssertionResult.fullName: string - added:
property jest.AssertionResult.numPassingAsserts: number - added:
property jest.AssertionResult.status: Status - added:
property jest.AssertionResult.title: string - added:
property jest.Context.config: ProjectConfig - added:
property jest.Context.hasteFS: HasteFS - added:
property jest.Context.moduleMap: ModuleMap - added:
property jest.Context.resolver: HasteResolver - added:
property jest.CoverageMap.data: RawCoverage - added:
property jest.CoverageSummary.branches: FileCoverageTotal - added:
property jest.CoverageSummary.functions: FileCoverageTotal - added:
property jest.CoverageSummary.lines: FileCoverageTotal - added:
property jest.CoverageSummary.statements: FileCoverageTotal - added:
property jest.FileCoverageTotal.covered: number - added:
property jest.FileCoverageTotal.pct?: number - added:
property jest.FileCoverageTotal.skipped: number - added:
property jest.FileCoverageTotal.total: number - added:
property jest.GlobalConfig.bail: boolean - added:
property jest.GlobalConfig.collectCoverage: boolean - added:
property jest.GlobalConfig.collectCoverageFrom: Glob[] - added:
property jest.GlobalConfig.collectCoverageOnlyFrom: Maybe<{ [key: string]: boolean }> - added:
property jest.GlobalConfig.coverageDirectory: string - added:
property jest.GlobalConfig.coverageReporters: string[] - added:
property jest.GlobalConfig.coverageThreshold: { global: { [key: string]: number } } - added:
property jest.GlobalConfig.expand: boolean - added:
property jest.GlobalConfig.forceExit: boolean - added:
property jest.GlobalConfig.logHeapUsage: boolean - added:
property jest.GlobalConfig.mapCoverage: boolean - added:
property jest.GlobalConfig.noStackTrace: boolean - added:
property jest.GlobalConfig.notify: boolean - added:
property jest.GlobalConfig.projects: Glob[] - added:
property jest.GlobalConfig.replname: Maybe<string> - added:
property jest.GlobalConfig.reporters: ReporterConfig[] - added:
property jest.GlobalConfig.rootDir: Path - added:
property jest.GlobalConfig.silent: boolean - added:
property jest.GlobalConfig.testNamePattern: string - added:
property jest.GlobalConfig.testPathPattern: string - added:
property jest.GlobalConfig.testResultsProcessor: Maybe<string> - added:
property jest.GlobalConfig.updateSnapshot: SnapshotUpdateState - added:
property jest.GlobalConfig.useStderr: boolean - added:
property jest.GlobalConfig.verbose: Maybe<boolean> - added:
property jest.GlobalConfig.watch: boolean - added:
property jest.GlobalConfig.watchman: boolean - added:
property jest.HasteConfig.defaultPlatform?: Maybe<string> - added:
property jest.HasteConfig.hasteImplModulePath?: string - added:
property jest.HasteConfig.platforms?: string[] - added:
property jest.HasteConfig.providesModuleNodeModules: string[] - added:
property jest.LogEntry.message: LogMessage - added:
property jest.LogEntry.origin: string - added:
property jest.LogEntry.type: LogType - added:
property jest.Matchers.rejects: Matchers<Promise<R>> - added:
property jest.Matchers.resolves: Matchers<Promise<R>> - added:
property jest.ProjectConfig.automock: boolean - added:
property jest.ProjectConfig.browser: boolean - added:
property jest.ProjectConfig.cache: boolean - added:
property jest.ProjectConfig.cacheDirectory: Path - added:
property jest.ProjectConfig.clearMocks: boolean - added:
property jest.ProjectConfig.coveragePathIgnorePatterns: string[] - added:
property jest.ProjectConfig.globals: ConfigGlobals - added:
property jest.ProjectConfig.haste: HasteConfig - added:
property jest.ProjectConfig.moduleDirectories: string[] - added:
property jest.ProjectConfig.moduleFileExtensions: string[] - added:
property jest.ProjectConfig.moduleLoader: Path - added:
property jest.ProjectConfig.moduleNameMapper: Array<[string, string]> - added:
property jest.ProjectConfig.modulePathIgnorePatterns: string[] - added:
property jest.ProjectConfig.modulePaths: string[] - added:
property jest.ProjectConfig.name: string - added:
property jest.ProjectConfig.resetMocks: boolean - added:
property jest.ProjectConfig.resetModules: boolean - added:
property jest.ProjectConfig.resolver: Maybe<Path> - added:
property jest.ProjectConfig.rootDir: Path - added:
property jest.ProjectConfig.roots: Path[] - added:
property jest.ProjectConfig.setupFiles: Path[] - added:
property jest.ProjectConfig.setupTestFrameworkScriptFile: Path - added:
property jest.ProjectConfig.skipNodeResolution: boolean - added:
property jest.ProjectConfig.snapshotSerializers: Path[] - added:
property jest.ProjectConfig.testEnvironment: string - added:
property jest.ProjectConfig.testMatch: Glob[] - added:
property jest.ProjectConfig.testPathIgnorePatterns: string[] - added:
property jest.ProjectConfig.testRegex: string - added:
property jest.ProjectConfig.testRunner: string - added:
property jest.ProjectConfig.testURL: string - added:
property jest.ProjectConfig.timers: 'real' | 'fake' - added:
property jest.ProjectConfig.transform: Array<[string, Path]> - added:
property jest.ProjectConfig.transformIgnorePatterns: Glob[] - added:
property jest.ProjectConfig.unmockedModulePathPatterns: Maybe<string[]> - added:
property jest.RawFileCoverage.b: { [branchId: number]: number } - added:
property jest.RawFileCoverage.branchMap: { [branchId: number]: any } - added:
property jest.RawFileCoverage.f: { [functionId: number]: number } - added:
property jest.RawFileCoverage.fnMap: { [functionId: number]: any } - added:
property jest.RawFileCoverage.inputSourceMap?: object - added:
property jest.RawFileCoverage.l: { [lineId: number]: number } - added:
property jest.RawFileCoverage.path: string - added:
property jest.RawFileCoverage.s: { [statementId: number]: number } - added:
property jest.RawFileCoverage.statementMap: { [statementId: number]: any } - added:
property jest.ReporterOnStartOptions.estimatedTime: number - added:
property jest.ReporterOnStartOptions.showStatus: boolean - added:
property jest.SerializableError.code?: any - added:
property jest.SerializableError.message: string - added:
property jest.SerializableError.stack: Maybe<string> - added:
property jest.SerializableError.type?: string - added:
property jest.SnapshotSummary.added: number - added:
property jest.SnapshotSummary.didUpdate: boolean - added:
property jest.SnapshotSummary.failure: boolean - added:
property jest.SnapshotSummary.filesAdded: number - added:
property jest.SnapshotSummary.filesRemoved: number - added:
property jest.SnapshotSummary.filesUnmatched: number - added:
property jest.SnapshotSummary.filesUpdated: number - added:
property jest.SnapshotSummary.matched: number - added:
property jest.SnapshotSummary.total: number - added:
property jest.SnapshotSummary.unchecked: number - added:
property jest.SnapshotSummary.unmatched: number - added:
property jest.SnapshotSummary.updated: number - added:
property jest.Test.context: Context - added:
property jest.Test.duration?: number - added:
property jest.Test.path: Path - added:
property jest.TestResult.console: Maybe<ConsoleBuffer> - added:
property jest.TestResult.coverage?: RawCoverage - added:
property jest.TestResult.failureMessage: Maybe<string> - added:
property jest.TestResult.memoryUsage?: Bytes - added:
property jest.TestResult.numFailingTests: number - added:
property jest.TestResult.numPassingTests: number - added:
property jest.TestResult.numPendingTests: number - added:
property jest.TestResult.perfStats: { end: Milliseconds, start: Milliseconds } - added:
property jest.TestResult.skipped: boolean - added:
property jest.TestResult.snapshot: { added: number, fileDeleted: boolean, matched: number, unchecked: number, unmatched: number, updated: number } - added:
property jest.TestResult.sourceMaps: { [sourcePath: string]: string } - added:
property jest.TestResult.testExecError?: SerializableError - added:
property jest.TestResult.testFilePath: string - added:
property jest.TestResult.testResults: AssertionResult[] - added:
property jest.TransformOptions.instrument: boolean - added:
property jest.TransformedSource.code: string - added:
property jest.TransformedSource.map: Maybe<object | string> - added:
property jest.Transformer.canInstrument?: boolean - added:
type jasmine.CustomEqualityTester = (first: any, second: any) => boolean - added:
type jasmine.CustomMatcherFactory = (util: MatchersUtil, customEqualityTesters: CustomEqualityTester[]) => CustomMatcher - added:
type jest.Bytes = number - added:
type jest.ConfigGlobals = object - added:
type jest.ConsoleBuffer = LogEntry[] - added:
type jest.EmptyFunction = () => void - added:
type jest.Environment = $JestEnvironment - added:
type jest.Glob = string - added:
type jest.Global = object - added:
type jest.HasteFS = any - added:
type jest.HasteResolver = any - added:
type jest.Lifecycle = (fn: ProvidesCallback, timeout?: number) => any - added:
type jest.LogMessage = string - added:
type jest.LogType = 'log' | 'info' | 'warn' | 'error' - added:
type jest.Maybe<T> = void | null | undefined | T - added:
type jest.Milliseconds = number - added:
type jest.ModuleMap = any - added:
type jest.ModuleMocker = any - added:
type jest.Path = string - added:
type jest.ProvidesCallback = (cb: DoneCallback) => any - added:
type jest.ReporterConfig = [string, object] - added:
type jest.Runtime = any - added:
type jest.Script = any - added:
type jest.SnapshotUpdateState = 'all' | 'new' | 'none' - added:
type jest.Status = 'passed' | 'failed' | 'skipped' | 'pending' - added:
type jest.TestFramework = (globalConfig: GlobalConfig, config: ProjectConfig, environment: Environment, runtime: Runtime, testPath: string) => Promise<TestResult> - added:
type jest.TestResultsProcessor = (testResult: AggregatedResult) => AggregatedResult