Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/jest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version: 20
node-version: 24
cache: 'npm'

- name: Install dependencies
Expand Down
18 changes: 16 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
const defaultConfig = require( '@wordpress/scripts/config/jest-unit.config.js' );
const presetConfig = require( '@wordpress/jest-preset-default' );

module.exports = {
...defaultConfig,
...presetConfig,
testPathIgnorePatterns: [ '/build/', '/node_modules/', '/vendor/' ],
/*
* Babel is configured here rather than in a root config file, so the transform stays scoped to
* the tests: a root Babel config would also apply to the webpack build.
*/
transform: {
'\\.[jt]sx?$': [
require.resolve( 'babel-jest' ),
{
presets: [
require.resolve( '@wordpress/babel-preset-default' ),
],
},
],
},
};
Loading
Loading