---
title: "cli-testing-library 4.0.0 Breaking Changes on npm"
description: "What each cli-testing-library release removed, renamed or changed: 57 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/cli-testing-library
last_updated: 2026-12-04
---

# cli-testing-library breaking changes

cli-testing-library 4.0.0 (August 11, 2026) is its newest release with breaking changes, 16 of them. The first: Runtime dependencies upgraded to latest major versions in cli-testing-library 4.0.0. Every breaking API change we have recorded in cli-testing-library on npm: 57 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released August 11, 2026. [Source repository](https://github.com/crutchcorn/cli-testing-library)

Its 4.0.0 release requires Node.js 22.18 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.1](#v-3-0-1) to [4.0.0](#v-4-0-0): 16 breaking changes in 1 version.

## cli-testing-library 4.0.0 breaking changes

cli-testing-library 4.0.0, released August 11, 2026: 16 breaking changes.

- **Behavior changed**  

Runtime dependencies were moved to their latest major versions, which may change behavior for code depending on them. [github.com](https://github.com/crutchcorn/cli-testing-library/releases/tag/cli-testing-library%404.0.0)
- **Default changed**  

Commands are spawned without a shell by default in this release; code relying on shell features must opt in explicitly. [github.com](https://github.com/crutchcorn/cli-testing-library/releases/tag/cli-testing-library%404.0.0)
- **Configuration changed**  

The package now requires Node.js 22.18 or newer; older Node.js versions are no longer supported. [github.com](https://github.com/crutchcorn/cli-testing-library/releases/tag/cli-testing-library%404.0.0)
- **Configuration changed**  

The package now ships ESM-only output built with tsdown, so CommonJS consumers must switch to ESM imports. [github.com](https://github.com/crutchcorn/cli-testing-library/releases/tag/cli-testing-library%404.0.0)
- **Signature changed** `BoundFunction`  

Was type BoundFunction\<T> = T extends (container: TestInstance, ...args: infer P) => infer R ? (...args: P) => R : never; now type BoundFunction\<T> = T extends ((container: TestInstance, ...args: infer P) => infer R) ? (...args: P) => R... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `BoundFunctions`  

Was type BoundFunctions\<TQueries> = TQueries extends typeof defaultQueries ? {getByText: \<T extends TestInstance = TestInstance>(...args: Parameters\<BoundFunction\<defaultQueries.GetByText\<T>>>) => ReturnType\<defaultQueries.GetByText\<T>>... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `buildQueries`  

Was function buildQueries(queryBy: QueryMethod<\[matcher: Matcher, options?: MatcherOptions\], TestInstance | null>, getMissingError: GetErrorFunction<\[matcher: Matcher, options?: MatcherOptions\]>): readonly \[\<T extends TestInstance =... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `getQueriesForElement`  

Was function getQueriesForElement\<T extends Queries = typeof defaultQueries>(instance: TestInstance, queries?: T, initialValue?: {}): BoundFunctions\<T>; now function getQueriesForElement\<T extends Queries = typeof... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `makeFindQuery`  

Was function makeFindQuery\<TQueryFor>(getter: (container: TestInstance, text: Matcher, options?: MatcherOptions) => TQueryFor): \<T extends TestInstance = TestInstance>(instance: TestInstance, text: Matcher, options?: MatcherOptions... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult`  

Was type RenderResult = TestInstance & {userEvent: {\[P in keyof UserEvent\]: BoundFunction\<UserEvent\[P\]>;};} & {\[P in keyof typeof queries\]: BoundFunction<(typeof queries)\[P\]>;}; now type RenderResult = TestInstance & {userEvent: {\[P in... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult.findByError`  

Was function findByError\<T extends TestInstance = TestInstance>(...args: Parameters\<FindByError\<T>>): ReturnType\<FindByError\<T>>; now findByError: (id: Matcher, options?: SelectorMatcherOptions, waitForElementOptions?: waitForOptions) =>... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult.findByText`  

Was function findByText\<T extends TestInstance = TestInstance>(...args: Parameters\<FindByText\<T>>): ReturnType\<FindByText\<T>>; now findByText: (id: Matcher, options?: SelectorMatcherOptions, waitForElementOptions?: waitForOptions) =>... [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult.getByError`  

Was function getByError\<T extends TestInstance = TestInstance>(...args: Parameters\<GetByError\<T>>): ReturnType\<GetByError\<T>>; now getByError: (id: Matcher, options?: SelectorMatcherOptions) => TestInstance. [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult.getByText`  

Was function getByText\<T extends TestInstance = TestInstance>(...args: Parameters\<GetByText\<T>>): ReturnType\<GetByText\<T>>; now getByText: (id: Matcher, options?: SelectorMatcherOptions) => TestInstance. [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult.queryByError`  

Was function queryByError\<T extends TestInstance = TestInstance>(...args: Parameters\<QueryByError\<T>>): ReturnType\<QueryByError\<T>>; now queryByError: (id: Matcher, options?: SelectorMatcherOptions) => TestInstance. [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)
- **Signature changed** `RenderResult.queryByText`  

Was function queryByText\<T extends TestInstance = TestInstance>(...args: Parameters\<QueryByText\<T>>): ReturnType\<QueryByText\<T>>; now queryByText: (id: Matcher, options?: SelectorMatcherOptions) => TestInstance. [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/4.0.0)

## cli-testing-library 3.0.1 breaking changes

cli-testing-library 3.0.1, released January 26, 2025: 41 breaking changes.

- **Removed** `BuiltQueryMethods`  

BuiltQueryMethods was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `EventMap`  

EventMap was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `FindAllBy`  

FindAllBy was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `FindBy`  

FindBy was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `GetAllBy`  

GetAllBy was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `GetBy`  

GetBy was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `getQueriesForInstance`  

getQueriesForInstance was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `getSuggestedQuery`  

getSuggestedQuery was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `jest`  

jest was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)
- **Removed** `Method`  

Method was removed in cli-testing-library 3.0.1 [npmjs.com](https://www.npmjs.com/package/cli-testing-library/v/3.0.1)

And 31 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
