Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
lightspeedwp
.github
Repository navigation
Code
Issues
1.2k
(1.2k)
Pull requests
19
(19)
Discussions
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
develop
Breadcrumbs
.github
/
jest.config.cjs
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
25 lines (25 loc) · 1.43 KB
develop
Breadcrumbs
.github
/
jest.config.cjs
Copy path
Top
File metadata and controls
Code
Blame
25 lines (25 loc) · 1.43 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Auto-discovered entry point for bare `jest` invocations.
//
// Jest discovers this file because of its name — "The file will be discovered
// automatically, if it is named jest.config.js|ts|mjs|mts|cjs|cts|json"
// (https://jestjs.io/docs/configuration, read 2026-10-01). Without it, a bare
// `npx jest` finds no configuration at all and falls back to Jest's built-in
// defaults, which run test files this repository deliberately excludes,
// including those under `.jest-skip/` and suites under `scripts/release`,
// `scripts/automation` and `scripts/workflows` that have their own runners.
//
// `.jest.config.cjs` holds the intended configuration and stays the single
// source of truth. This file only forwards to it, so the two cannot drift.
// The npm scripts pass `--config .jest.config.cjs` explicitly, and Jest skips
// auto-discovery when --config is given, so the two entry points never both
// apply.
//
// CommonJS is required: the root package.json is "type": "module", so a .js
// file here would be read as an ES module and `module.exports` would throw
// "module is not defined in ES module scope" — the failure that made the
// previous root jest.config.js unusable.
//
// rootDir is unaffected. Jest defaults it to "the root of the directory
// containing your Jest config file", which is this directory, so the
// `<rootDir>` tokens inside .jest.config.cjs resolve exactly as before.
module.exports = require('./.jest.config.cjs');
You can’t perform that action at this time.