canirequire

canirequireESM-only › jest-watch-typeahead

Is jest-watch-typeahead ESM-only? Can you require() it?

Jest plugin for filtering by filename or test name

Last verified Sep 9, 2026 against jest-watch-typeahead@3.0.1. JSON

ESM-only ESM-only since 1.0.0 — last CommonJS version is 0.6.5

jest-watch-typeahead dropped its CommonJS build in 1.0.0 (September 2021). The last version you can require() on every Node.js version, including 18 and older, is 0.6.5, published Sep 28, 2021.

require("jest-watch-typeahead") failed in our probe on Node.js 20+ as well. See the runtime matrix below for the exact error.

Latest
3.0.1 (Jun 19, 2025)
Module format
ESM-only
Last CommonJS version
0.6.5
ESM-only since
1.0.0 (Sep 29, 2021)
TypeScript types
None
Node engines
>=18.0.0
Weekly downloads
7.7M
License
MIT

Does jest-watch-typeahead@3.0.1 actually load? Runtime test results

Installed and executed on Sep 9, 2026 with require("jest-watch-typeahead") from a CommonJS file and import "jest-watch-typeahead" from an ES module.

Runtimerequire("jest-watch-typeahead")import "jest-watch-typeahead"
Node.js 18✗ failsERR_REQUIRE_ESM✗ failsError:
Node.js 20✗ failsError:✗ failsError:
Node.js 22✗ failsError:✗ failsError:
Node.js 24✗ failsError:✗ failsError:
Node.js 26✗ failsError:✗ failsError:
Bun 1.4✗ failserror:✗ failserror:

How to import jest-watch-typeahead

ES modules (import)

import jestWatchTypeahead from "jest-watch-typeahead";

CommonJS (require)

// Node.js 20.19+ / 22.12+ / newer (package has no top-level await):
const jestWatchTypeahead = require("jest-watch-typeahead");

// Any Node.js version:
const jestWatchTypeahead = await import("jest-watch-typeahead");

// Or pin the last CommonJS release:
// npm install jest-watch-typeahead@0.6.5

Module format by version

Derived from the type, main and exports fields of every stable release on npm (26 versions; the newest 26 shown).

VersionsFormatFirst published
1.0.0 – 3.0.1ESM-onlySep 29, 2021
0.0.1 – 0.6.5CommonJSMay 29, 2018

Frequently asked

Is jest-watch-typeahead ESM-only?

jest-watch-typeahead@3.0.1 is ESM-only. jest-watch-typeahead dropped its CommonJS build in 1.0.0 (September 2021). The last version you can require() on every Node.js version, including 18 and older, is 0.6.5, published Sep 28, 2021.

Which version of jest-watch-typeahead still supports CommonJS / require()?

0.6.5 is the last version of jest-watch-typeahead with a CommonJS build. Install it with "npm install jest-watch-typeahead@0.6.5". Every version from 1.0.0 on is ESM-only.

How do I use jest-watch-typeahead from a CommonJS file?

Use a dynamic import: const mod = await import("jest-watch-typeahead"). On Node.js 20.19+, 22.12+ and newer, a plain require("jest-watch-typeahead") also works for ESM packages that do not use top-level await. Alternatively pin jest-watch-typeahead@0.6.5.

Does jest-watch-typeahead work in Bun?

Importing jest-watch-typeahead failed in Bun 1.4 on Sep 9, 2026: error:

Does jest-watch-typeahead ship TypeScript types?

No. jest-watch-typeahead ships no type declarations and there is no @types package for it.

Links

Other esm-only packages

Similar popularity