Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
"routes/*",
"storybook",
"test/e2e",
"test/integration",
"test/performance",
Comment on lines 244 to 246

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description mentions adding test:integration/watch/debug scripts and a test/integration/jest.config.js, but those changes aren’t present (root scripts still only include unit-test runners, and test/integration/ has no jest config). Either update the PR description or include the missing script/config changes so the workspace can actually be executed independently as described.

Copilot uses AI. Check for mistakes.
"test/storybook-playwright",
"test/unit",
Expand Down
29 changes: 29 additions & 0 deletions test/integration/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "@wordpress/integration-tests",
"version": "0.0.0",
"description": "Integration tests for WordPress Gutenberg.",
"private": true,
"author": "The WordPress Contributors",
"license": "GPL-2.0-or-later",
"keywords": [
"wordpress",
"gutenberg",
"integration-tests"
],
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/test/integration/README.md",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file doesn't exist. Let us create one.

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The homepage points to test/integration/README.md, but there is no README.md at test/integration/ (only READMEs deeper in fixtures). This makes the package metadata link dead; either add test/integration/README.md or update the homepage URL to the directory (without README.md).

Suggested change
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/test/integration/README.md",
"homepage": "https://github.com/WordPress/gutenberg/tree/HEAD/test/integration/",

Copilot uses AI. Check for mistakes.
"repository": {
"type": "git",
"url": "git+https://github.com/WordPress/gutenberg.git",
"directory": "test/integration"
},
"bugs": {
"url": "https://github.com/WordPress/gutenberg/issues"
},
"devDependencies": {
Comment on lines +21 to +22

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other test workspaces define workspace-scoped scripts and include the runner dependency they use (e.g. @wordpress/unit-tests includes @wordpress/scripts and test:unit* scripts in test/unit/package.json:22-48, and e2e/performance do similarly). This new @wordpress/integration-tests package currently has no scripts and no @wordpress/scripts; if the intent is to run integration tests independently via npm run --workspace @wordpress/integration-tests …, add the corresponding scripts and required devDependencies to match that established pattern.

Suggested change
},
"devDependencies": {
},
"scripts": {
"test:integration": "wp-scripts test-unit-js",
"test:integration:watch": "npm run test:integration -- --watch"
},
"devDependencies": {
"@wordpress/scripts": "^30.13.0",

Copilot uses AI. Check for mistakes.
"ajv": "^8.17.1",
"fast-glob": "^3.2.7"
},
Comment on lines +22 to +35

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let us ensure that we declare all the dependencies that the workspace uses.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, agv can be removed from root package.json

"publishConfig": {
"access": "public"
}
}
Loading