✅ back: diagnostics e2e adding aggregate failure result (#762)
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
import diagnostics from "../../../framework/api/diagnostics";
|
||||
|
||||
export const e2eTestOverride = {
|
||||
// Set to true to force fail to test diagnostic aggregation
|
||||
forceFail: false,
|
||||
};
|
||||
|
||||
export default () =>
|
||||
diagnostics.registerProviders({
|
||||
key: "process",
|
||||
tags: ["live", "ready"],
|
||||
async get() {
|
||||
return {
|
||||
ok: true,
|
||||
ok: !e2eTestOverride.forceFail,
|
||||
gc: !!global.gc,
|
||||
pid: process.pid,
|
||||
mem: process.memoryUsage(),
|
||||
|
||||
Reference in New Issue
Block a user