feat(tooling): audit_metrics.py — size, complexity, gate weight and a speed baseline
This commit is contained in:
@@ -61,5 +61,17 @@ export default defineConfig({
|
||||
use: { ...devices["iPad (gen 7) landscape"], storageState: STORAGE_STATE },
|
||||
dependencies: ["setup"],
|
||||
},
|
||||
// The speed baseline (e2e/speed.measure.ts): readings, not tests. Only when PW_SPEED is set —
|
||||
// `scripts/audit_metrics.py --speed` sets it — so the e2e suite never runs it.
|
||||
...(process.env.PW_SPEED
|
||||
? [
|
||||
{
|
||||
name: "speed",
|
||||
testMatch: /\.measure\.ts/,
|
||||
use: { ...devices["Desktop Chrome"], storageState: STORAGE_STATE },
|
||||
dependencies: ["setup"],
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user