Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
export type ChildProcessError = import('./lib/child-process-error.js').ChildProcessError;
|
|
export type Run = {
|
|
networkRequests: string[] | undefined;
|
|
lhr: LH.Result;
|
|
artifacts: LH.Artifacts;
|
|
lighthouseLog: string;
|
|
assertionLog: string;
|
|
};
|
|
export type SmokehouseResult = {
|
|
id: string;
|
|
passed: number;
|
|
failed: number;
|
|
runs: Run[];
|
|
};
|
|
/**
|
|
* Runs the selected smoke tests. Returns whether all assertions pass.
|
|
* @param {Array<Smokehouse.TestDfn>} smokeTestDefns
|
|
* @param {Smokehouse.SmokehouseOptions} smokehouseOptions
|
|
* @return {Promise<{success: boolean, testResults: SmokehouseResult[]}>}
|
|
*/
|
|
export function runSmokehouse(smokeTestDefns: Array<Smokehouse.TestDfn>, smokehouseOptions: Smokehouse.SmokehouseOptions): Promise<{
|
|
success: boolean;
|
|
testResults: SmokehouseResult[];
|
|
}>;
|
|
/**
|
|
* Parses the cli `shardArg` flag into `shardNumber/shardTotal`. Splits
|
|
* `testDefns` into `shardTotal` shards and returns the `shardNumber`th shard.
|
|
* Shards will differ in size by at most 1.
|
|
* Shard params must be 1 ≤ shardNumber ≤ shardTotal.
|
|
* @param {Array<Smokehouse.TestDfn>} testDefns
|
|
* @param {string=} shardArg
|
|
* @return {Array<Smokehouse.TestDfn>}
|
|
*/
|
|
export function getShardedDefinitions(testDefns: Array<Smokehouse.TestDfn>, shardArg?: string | undefined): Array<Smokehouse.TestDfn>;
|
|
//# sourceMappingURL=smokehouse.d.ts.map
|