diff --git a/packages/playground/wordpress-builds/src/sqlite-database-integration/get-sqlite-driver-module-details.ts b/packages/playground/wordpress-builds/src/sqlite-database-integration/get-sqlite-driver-module-details.ts index 7b1881e8d2..ab08783be6 100644 --- a/packages/playground/wordpress-builds/src/sqlite-database-integration/get-sqlite-driver-module-details.ts +++ b/packages/playground/wordpress-builds/src/sqlite-database-integration/get-sqlite-driver-module-details.ts @@ -19,11 +19,10 @@ export function getSqliteDriverModuleDetails( url: string; } { switch (version) { - case 'develop': /** @ts-ignore */ return { - size: 215141, + size: 215168, url: url_develop, }; case 'v2.1.16': diff --git a/packages/playground/wordpress-builds/src/sqlite-database-integration/sqlite-database-integration-develop.zip b/packages/playground/wordpress-builds/src/sqlite-database-integration/sqlite-database-integration-develop.zip index 2bd02e6d29..180cd56e03 100644 Binary files a/packages/playground/wordpress-builds/src/sqlite-database-integration/sqlite-database-integration-develop.zip and b/packages/playground/wordpress-builds/src/sqlite-database-integration/sqlite-database-integration-develop.zip differ diff --git a/packages/playground/wordpress/src/index.ts b/packages/playground/wordpress/src/index.ts index 93978992a1..27ff9c8b14 100644 --- a/packages/playground/wordpress/src/index.ts +++ b/packages/playground/wordpress/src/index.ts @@ -439,6 +439,15 @@ class Playground_SQLite_Integration_Loader { require_once ${phpVar(SQLITE_MUPLUGIN_PATH)}; } } +/** + * The Query Monitor plugin short-circuits in the CLI SAPI. However, in Playground, + * the SAPI is always "cli" at the moment. Let's set a constant to disable the CLI + * detection. + * + * @see https://github.com/WordPress/sqlite-database-integration/pull/212 + * @see https://github.com/WordPress/sqlite-database-integration/pull/215 + */ +define('QM_TESTS', true); $wpdb = $GLOBALS['wpdb'] = new Playground_SQLite_Integration_Loader(); /**