Commit a2f7fd2
Migrate to wp-env v11, require Node 20+, remove lock files (#6)
* Migrate to wp-env v11, require Node 20+, remove lock files
- Bump @wordpress/env from ^10 to ^11
- Add engines.node >= 20 to package.json
- Remove package-lock.json and add lock files to .gitignore
- Update CI to use npm install instead of npm ci
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Accommodate wp-env v11 removing test environment
- Use cli container instead of tests-cli (removed in v11)
- Remove env.tests section from .wp-env.json
- Auto-detect test library path (/wordpress-phpunit or /tmp/wordpress-tests-lib)
- Use --legacy-peer-deps for wp-scripts peer dep on wp-env ^10
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add @testing-library/dom as explicit dependency
Required when using --legacy-peer-deps since peer deps of
@testing-library/react are not auto-installed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4af0a51 commit a2f7fd2
6 files changed
Lines changed: 26 additions & 29004 deletions
File tree
- .github/workflows
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 10 | | |
18 | 11 | | |
0 commit comments