-
Notifications
You must be signed in to change notification settings - Fork 3k
Build/Test Tools: Improve dev environment's CLI in speed, non-interactive usage, and argument handling #8969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a3cf770
23ac059
6b3de67
7a66e62
b8b1425
f4d6575
bcbf5da
3e2fa2e
8f2af97
0e4ddbb
12b4457
1ce3750
ec71151
45954e9
1b2ef30
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Unchanged files with check annotations Beta
test.beforeEach( async () => { | ||
wpConfigOriginal = readFileSync( wpConfig, 'utf-8' ); | ||
// Changing the table prefix tricks WP into new install mode. | ||
writeFileSync( | ||
Check failure on line 24 in tests/e2e/specs/install.test.js
|
||
wpConfig, | ||
wpConfigOriginal.replace( `$table_prefix = 'wp_';`, `$table_prefix = 'wp_e2e_';` ) | ||
); | ||
} ); | ||
test.afterEach( async () => { | ||
writeFileSync( wpConfig, wpConfigOriginal ); | ||
Check failure on line 31 in tests/e2e/specs/install.test.js
|
||
} ); | ||
test( 'should install WordPress with pre-existing database credentials', async ( { page } ) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
wp
is removed here because previously the entrypoint would inject it if it was missing: https://github.com/WordPress/wpdev-docker-images/blob/becc6740684d6ff6414d6539df040633b5ac5794/entrypoint/entrypoint-cli.sh#L16-L17With this PR, the
wp
is always assumed.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is technically a breaking change, I searched github for
npm run env:cli wp
and there is only one reference which seems to be from a fork of a demo rather than actual production code, but it still might be worth a PR there after this lands and a quick note in the core room so folks are aware. I don't think it needs a dev note though since this isn't a public API.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR opened: Antonin06/wc-bretagne-2024#1