Skip to content

Upgrading vitest 0.0 to 0.1

Unknown0.0.142 → 0.1.27New18Fixed26

UnknownUpgrade verdict

DepDelta hasn't looked for the notes of 2 of 16 releases yet, so breaking changes can't be ruled out.

  • DepDelta hasn't finished looking for the notes in this range, so it can't rule out breaking changes yet.
  • Their commits are listed with this comparison.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: interface Chai.Assertion extends JestAssertions
  • removed: interface Chai.JestAssertions
  • removed: method Chai.Assertion.chaiEqual(expected: any): void
  • removed: method Chai.JestAssertions.lastCalledWith(...args: any[]): void
  • removed: method Chai.JestAssertions.lastReturnedWith(value: any): void
  • removed: method Chai.JestAssertions.matchSnapshot(message?: string): void
  • removed: method Chai.JestAssertions.nthCalledWith(n: number, ...args: any[]): void
  • removed: method Chai.JestAssertions.nthReturnedWith(nthCall: number, value: any): void
  • removed: method Chai.JestAssertions.toBe(expected: any): void
  • removed: method Chai.JestAssertions.toBeCalled(): void
  • removed: method Chai.JestAssertions.toBeCalledTimes(n: number): void
  • removed: method Chai.JestAssertions.toBeCalledWith(...args: any[]): void
  • removed: method Chai.JestAssertions.toBeCloseTo(number: number, numDigits?: number): void
  • removed: method Chai.JestAssertions.toBeDefined(): void
  • removed: method Chai.JestAssertions.toBeFalsy(): void
  • removed: method Chai.JestAssertions.toBeGreaterThan(num: number): void
  • removed: method Chai.JestAssertions.toBeGreaterThanOrEqual(num: number): void
  • removed: method Chai.JestAssertions.toBeInstanceOf(c: any): void
  • removed: method Chai.JestAssertions.toBeLessThan(num: number): void
  • removed: method Chai.JestAssertions.toBeLessThanOrEqual(num: number): void
  • removed: method Chai.JestAssertions.toBeNaN(): void
  • removed: method Chai.JestAssertions.toBeNull(): void
  • removed: method Chai.JestAssertions.toBeTruthy(): void
  • removed: method Chai.JestAssertions.toBeUndefined(): void
  • removed: method Chai.JestAssertions.toContain(item: any): void
  • removed: method Chai.JestAssertions.toContainEqual(item: any): void
  • removed: method Chai.JestAssertions.toEqual(expected: any): void
  • removed: method Chai.JestAssertions.toHaveBeenCalled(): void
  • removed: method Chai.JestAssertions.toHaveBeenCalledOnce(): void
  • removed: method Chai.JestAssertions.toHaveBeenCalledTimes(n: number): void
  • removed: method Chai.JestAssertions.toHaveBeenCalledWith(...args: any[]): void
  • removed: method Chai.JestAssertions.toHaveBeenLastCalledWith(...args: any[]): void
  • removed: method Chai.JestAssertions.toHaveBeenNthCalledWith(n: number, ...args: any[]): void
  • removed: method Chai.JestAssertions.toHaveLastReturnedWith(value: any): void
  • removed: method Chai.JestAssertions.toHaveLength(l: number): void
  • removed: method Chai.JestAssertions.toHaveNthReturnedWith(nthCall: number, value: any): void
  • removed: method Chai.JestAssertions.toHaveProperty(p: string, value?: any): void
  • removed: method Chai.JestAssertions.toHaveReturned(): void
  • removed: method Chai.JestAssertions.toHaveReturnedTimes(times: number): void
  • removed: method Chai.JestAssertions.toHaveReturnedWith(value: any): void
  • removed: method Chai.JestAssertions.toMatch(expected: string | RegExp): void
  • removed: method Chai.JestAssertions.toMatchInlineSnapshot(properties: object, snapshot?: string, message?: string): void
  • removed: method Chai.JestAssertions.toMatchInlineSnapshot(snapshot?: string, message?: string): void
  • removed: method Chai.JestAssertions.toMatchObject(expected: any): void
  • removed: method Chai.JestAssertions.toMatchSnapshot(message?: string): void
  • removed: method Chai.JestAssertions.toMatchSnapshot(snapshot: object, message?: string): void
  • removed: method Chai.JestAssertions.toReturn(): void
  • removed: method Chai.JestAssertions.toReturnTimes(times: number): void
  • removed: method Chai.JestAssertions.toReturnWith(value: any): void
  • removed: method Chai.JestAssertions.toStrictEqual(expected: any): void
  • removed: method Chai.JestAssertions.toThrow(expected?: string | RegExp): void
  • removed: method Chai.JestAssertions.toThrowError(expected?: string | RegExp): void
  • removed: method Chai.JestAssertions.toThrowErrorMatchingInlineSnapshot(snapshot?: string, message?: string): void
  • removed: method Chai.JestAssertions.toThrowErrorMatchingSnapshot(message?: string): void
  • removed: property Chai.Assertion.rejects: Promisify<Assertion>
  • removed: property Chai.Assertion.resolves: Promisify<Assertion>
  • removed: type Chai.Promisify<O> = { [K in keyof O]: O[K] extends (...args: infer A) => infer R ? O extends R ? Promisify<O[K]> : (...args: A) => Promise<R> : O[K] }
  • added: call Chai.ExpectStatic<T>(actual: T, message?: string): VitestAssertion<T>
  • added: interface Chai.JestAssertion<T = any>
  • added: interface Chai.VitestAssertion<T = any> extends VitestifyAssertion<Assertion>, JestAssertion<T>
  • added: method Chai.JestAssertion.lastCalledWith<E extends any[]>(...args: E): void
  • added: method Chai.JestAssertion.lastReturnedWith<E>(value: E): void
  • added: method Chai.JestAssertion.matchSnapshot(message?: string): void
  • added: method Chai.JestAssertion.matchSnapshot<U extends { [P in keyof T]: any }>(snapshot: Partial<U>, message?: string): void
  • added: method Chai.JestAssertion.nthCalledWith<E extends any[]>(nthCall: number, ...args: E): void
  • added: method Chai.JestAssertion.nthReturnedWith<E>(nthCall: number, value: E): void
  • added: method Chai.JestAssertion.toBe<E>(expected: E): void
  • added: method Chai.JestAssertion.toBeCalled(): void
  • added: method Chai.JestAssertion.toBeCalledTimes(times: number): void
  • added: method Chai.JestAssertion.toBeCalledWith<E extends any[]>(...args: E): void
  • added: method Chai.JestAssertion.toBeCloseTo(number: number, numDigits?: number): void
  • added: method Chai.JestAssertion.toBeDefined(): void
  • added: method Chai.JestAssertion.toBeFalsy(): void
  • added: method Chai.JestAssertion.toBeGreaterThan(num: number): void
  • added: method Chai.JestAssertion.toBeGreaterThanOrEqual(num: number): void
  • added: method Chai.JestAssertion.toBeInstanceOf<E>(expected: E): void
  • added: method Chai.JestAssertion.toBeLessThan(num: number): void
  • added: method Chai.JestAssertion.toBeLessThanOrEqual(num: number): void
  • added: method Chai.JestAssertion.toBeNaN(): void
  • added: method Chai.JestAssertion.toBeNull(): void
  • added: method Chai.JestAssertion.toBeTruthy(): void
  • added: method Chai.JestAssertion.toBeUndefined(): void
  • added: method Chai.JestAssertion.toContain<E>(item: E): void
  • added: method Chai.JestAssertion.toContainEqual<E>(item: E): void
  • added: method Chai.JestAssertion.toEqual<E>(expected: E): void
  • added: method Chai.JestAssertion.toHaveBeenCalled(): void
  • added: method Chai.JestAssertion.toHaveBeenCalledOnce(): void
  • added: method Chai.JestAssertion.toHaveBeenCalledTimes(times: number): void
  • added: method Chai.JestAssertion.toHaveBeenCalledWith<E extends any[]>(...args: E): void
  • added: method Chai.JestAssertion.toHaveBeenLastCalledWith<E extends any[]>(...args: E): void
  • added: method Chai.JestAssertion.toHaveBeenNthCalledWith<E extends any[]>(n: number, ...args: E): void
  • added: method Chai.JestAssertion.toHaveLastReturnedWith<E>(value: E): void
  • added: method Chai.JestAssertion.toHaveLength(length: number): void
  • added: method Chai.JestAssertion.toHaveNthReturnedWith<E>(nthCall: number, value: E): void
  • added: method Chai.JestAssertion.toHaveProperty<E>(property: string, value?: E): void
  • added: method Chai.JestAssertion.toHaveReturned(): void
  • added: method Chai.JestAssertion.toHaveReturnedTimes(times: number): void
  • added: method Chai.JestAssertion.toHaveReturnedWith<E>(value: E): void
  • added: method Chai.JestAssertion.toMatch(expected: string | RegExp): void
  • added: method Chai.JestAssertion.toMatchInlineSnapshot(snapshot?: string, message?: string): void
  • added: method Chai.JestAssertion.toMatchInlineSnapshot<U extends { [P in keyof T]: any }>(properties: Partial<U>, snapshot?: string, message?: string): void
  • added: method Chai.JestAssertion.toMatchObject<E extends {} | any[]>(expected: E): void
  • added: method Chai.JestAssertion.toMatchSnapshot(message?: string): void
  • added: method Chai.JestAssertion.toMatchSnapshot<U extends { [P in keyof T]: any }>(snapshot: Partial<U>, message?: string): void
  • added: method Chai.JestAssertion.toReturn(): void
  • added: method Chai.JestAssertion.toReturnTimes(times: number): void
  • added: method Chai.JestAssertion.toReturnWith<E>(value: E): void
  • added: method Chai.JestAssertion.toStrictEqual<E>(expected: E): void
  • added: method Chai.JestAssertion.toThrow(expected?: string | Constructable | RegExp | Error): void
  • added: method Chai.JestAssertion.toThrowError(expected?: string | Constructable | RegExp | Error): void
  • added: method Chai.JestAssertion.toThrowErrorMatchingInlineSnapshot(snapshot?: string, message?: string): void
  • added: method Chai.JestAssertion.toThrowErrorMatchingSnapshot(message?: string): void
  • added: method Chai.VitestAssertion.chaiEqual<E>(expected: E): void
  • added: property Chai.VitestAssertion.rejects: Promisify<VitestAssertion<T>>
  • added: property Chai.VitestAssertion.resolves: Promisify<VitestAssertion<T>>
  • added: type Chai.VitestifyAssertion<A> = { [K in keyof A]: A[K] extends Assertion ? VitestAssertion<any> : A[K] extends (...args: any[]) => any ? A[K] : VitestifyAssertion<A[K]> }
  • changed: function spyOn<T, G extends Properties<Required<T>>>(obj: T, methodName: G, accesType: 'set'): JestMockCompat<[], T[G]> → function spyOn<T, G extends Properties<Required<T>>>(obj: T, methodName: G, accesType: 'set'): JestMockCompat<[T[G]], void>
  • changed: function spyOn<T, S extends Properties<Required<T>>>(obj: T, methodName: S, accesType: 'get'): JestMockCompat<[T[S]], void> → function spyOn<T, S extends Properties<Required<T>>>(obj: T, methodName: S, accesType: 'get'): JestMockCompat<[], T[S]>
  • changed: interface WebSocketEvents extends Pick<Reporter, 'onCollected' | 'onTaskUpdate' | 'onUserConsoleLog'> → interface WebSocketEvents extends Pick<Reporter, 'onCollected' | 'onFinished' | 'onTaskUpdate' | 'onUserConsoleLog'>
  • changed: property InlineConfig.deps?: { external?: (string | RegExp)[]; inline?: (string | RegExp)[]; interpretDefault?: boolean; fallbackCJS?: boolean } → property InlineConfig.deps?: { external?: (string | RegExp)[]; inline?: (string | RegExp)[]; interopDefault?: boolean; fallbackCJS?: boolean }
  • added: interface Constructable
  • added: interface RawSourceMap extends StartOfSourceMap
  • added: interface StartOfSourceMap
  • added: method WebSocketHandlers.updateSnapshot(file?: File): Promise<void>
  • added: new Constructable(...args: any[]): any
  • added: property InlineConfig.globals?: boolean
  • added: property InlineConfig.outputFile?: string
  • added: property RawSourceMap.mappings: string
  • added: property RawSourceMap.names: string[]
  • added: property RawSourceMap.sources: string[]
  • added: property RawSourceMap.sourcesContent?: string[]
  • added: property RawSourceMap.version: string
  • added: property StartOfSourceMap.file?: string
  • added: property StartOfSourceMap.sourceRoot?: string
  • added: property WorkerRPC.onFinished: (files: File[]) => void
  • added: property WorkerRPC.resolveId: ResolveIdFunction
  • added: type DeepMerge<F, S> = MergeInsertions<{ [K in keyof F | keyof S]: K extends keyof S & keyof F ? DeepMerge<F[K], S[K]> : K extends keyof S ? S[K] : K extends keyof F ? F[K] : never }>
  • added: type MergeInsertions<T> = T extends object ? { [K in keyof T]: MergeInsertions<T[K]> } : T
  • added: type ResolveIdFunction = (id: string, importer?: string) => Promise<ViteNodeResolveId | null>
  • added: method Vitest.exit(force?: boolean): Promise<void>
  • added: method Vitest.getConfig(): ResolvedConfig
  • added: method Vitest.rerunFiles(files?: string[], trigger?: string): Promise<void>
  • added: method Vitest.returnFailed(): Promise<void>
  • added: method Vitest.updateSnapshot(files?: string[]): Promise<void>
  • added: property Vitest.configOverride: Partial<ResolvedConfig> | undefined
  • removed: declare global
  • added: declare global