Compared with 4.1.12: `locators:processTimeoutOptions`, `locators:triggerCommandWithTrace`, `matchers:TestRunnerConfig`, `matchers:TestAPI.scoped`, `matchers:it.scoped`, and 35 more. 3 newly deprecated.
@vitest/browser 4.1.12 → 5.0.5: deprecates 40 API(s): from its source to your code
locators:processTimeoutOptions: the timeout is derived by the action itself; pass the options through unchanged
matchers:TestRunnerConfig: use `SerializedConfig` instead
matchers:TestAPI.scoped: Use `test.override()` instead
matchers:it.scoped: Use `test.override()` instead
matchers:Assertion.toBeCalledTimes: Ensures that a mock function is called an exact number of times. Alias for `expect.toHaveBeenCalledTimes`. Use `toHaveBeenCalledTimes` instead
matchers:Assertion.toBeCalled: Ensures that a mock function is called. Alias for `expect.toHaveBeenCalled`. Use `toHaveBeenCalled` instead
matchers:Assertion.toBeCalledWith: Ensure that a mock function is called with specific arguments. Alias for `expect.toHaveBeenCalledWith`. Use `toHaveBeenCalledWith` instead
matchers:Assertion.toThrowError: Used to test that a function throws when it is called. Alias for `expect.toThrow`. Use `toThrow` instead
matchers:Assertion.toReturn: Use to test that the mock function successfully returned (i.e., did not throw an error) at least one time Alias for `expect.toHaveReturned`. Use `toHaveReturned` instead
matchers:Assertion.toReturnTimes: Use to ensure that a mock function returned successfully (i.e., did not throw an error) an exact number of times. Any calls to the mock function that throw an error are not counted toward the number of times the function returned. Alias for `expect.toHaveReturnedTimes`. Use `toHaveReturnedTimes` instead
matchers:Assertion.toReturnWith: Use to ensure that a mock function returned a specific value. Alias for `expect.toHaveReturnedWith`. Use `toHaveReturnedWith` instead
matchers:JestAssertion.toBeCalledTimes: Ensures that a mock function is called an exact number of times. Alias for `expect.toHaveBeenCalledTimes`. Use `toHaveBeenCalledTimes` instead
matchers:JestAssertion.toBeCalled: Ensures that a mock function is called. Alias for `expect.toHaveBeenCalled`. Use `toHaveBeenCalled` instead
matchers:JestAssertion.toBeCalledWith: Ensure that a mock function is called with specific arguments. Alias for `expect.toHaveBeenCalledWith`. Use `toHaveBeenCalledWith` instead
matchers:JestAssertion.toThrowError: Used to test that a function throws when it is called. Alias for `expect.toThrow`. Use `toThrow` instead
matchers:JestAssertion.toReturn: Use to test that the mock function successfully returned (i.e., did not throw an error) at least one time Alias for `expect.toHaveReturned`. Use `toHaveReturned` instead
matchers:JestAssertion.toReturnTimes: Use to ensure that a mock function returned successfully (i.e., did not throw an error) an exact number of times. Any calls to the mock function that throw an error are not counted toward the number of times the function returned. Alias for `expect.toHaveReturnedTimes`. Use `toHaveReturnedTimes` instead
matchers:JestAssertion.toReturnWith: Use to ensure that a mock function returned a specific value. Alias for `expect.toHaveReturnedWith`. Use `toHaveReturnedWith` instead
matchers:MatcherState.dontThrow: exists only in types
matchers:MatcherState.error: exists only in types
matchers:MatcherState.expand: exists only in types
matchers:MatcherState.suppressedErrors: exists only in types
matchers:WebSocketHandlers.getResolvedProjectLabels: Use `getConfig().projects` instead.
matchers:SuiteCollector.test.scoped: Use `test.override()` instead
matchers:WorkerGlobalState.environment.transformMode: use `viteEnvironment` instead. Uses `name` by default
matchers:Assertion.resolves.toBeCalledTimes: Ensures that a mock function is called an exact number of times. Alias for `expect.toHaveBeenCalledTimes`. Use `toHaveBeenCalledTimes` instead
matchers:Assertion.resolves.toBeCalled: Ensures that a mock function is called. Alias for `expect.toHaveBeenCalled`. Use `toHaveBeenCalled` instead
matchers:Assertion.resolves.toBeCalledWith: Ensure that a mock function is called with specific arguments. Alias for `expect.toHaveBeenCalledWith`. Use `toHaveBeenCalledWith` instead
matchers:Assertion.resolves.toThrowError: Used to test that a function throws when it is called. Alias for `expect.toThrow`. Use `toThrow` instead
matchers:Assertion.resolves.toReturn: Use to test that the mock function successfully returned (i.e., did not throw an error) at least one time Alias for `expect.toHaveReturned`. Use `toHaveReturned` instead
matchers:Assertion.resolves.toReturnTimes: Use to ensure that a mock function returned successfully (i.e., did not throw an error) an exact number of times. Any calls to the mock function that throw an error are not counted toward the number of times the function returned. Alias for `expect.toHaveReturnedTimes`. Use `toHaveReturnedTimes` instead
matchers:Assertion.resolves.toReturnWith: Use to ensure that a mock function returned a specific value. Alias for `expect.toHaveReturnedWith`. Use `toHaveReturnedWith` instead
matchers:Assertion.called.toBeCalledTimes: Ensures that a mock function is called an exact number of times. Alias for `expect.toHaveBeenCalledTimes`. Use `toHaveBeenCalledTimes` instead
matchers:Assertion.called.toBeCalled: Ensures that a mock function is called. Alias for `expect.toHaveBeenCalled`. Use `toHaveBeenCalled` instead
matchers:Assertion.called.toBeCalledWith: Ensure that a mock function is called with specific arguments. Alias for `expect.toHaveBeenCalledWith`. Use `toHaveBeenCalledWith` instead
matchers:Assertion.called.toThrowError: Used to test that a function throws when it is called. Alias for `expect.toThrow`. Use `toThrow` instead
matchers:Assertion.called.toReturn: Use to test that the mock function successfully returned (i.e., did not throw an error) at least one time Alias for `expect.toHaveReturned`. Use `toHaveReturned` instead
matchers:Assertion.called.toReturnTimes: Use to ensure that a mock function returned successfully (i.e., did not throw an error) an exact number of times. Any calls to the mock function that throw an error are not counted toward the number of times the function returned. Alias for `expect.toHaveReturnedTimes`. Use `toHaveReturnedTimes` instead
matchers:Assertion.called.toReturnWith: Use to ensure that a mock function returned a specific value. Alias for `expect.toHaveReturnedWith`. Use `toHaveReturnedWith` instead