fix serialization and race cond

This commit is contained in:
sadan 2024-08-23 13:25:13 -04:00
parent d188a93a6c
commit c365c86a49
No known key found for this signature in database
3 changed files with 18 additions and 27 deletions

View file

@ -7,6 +7,7 @@
import { Logger } from "@utils/Logger";
import * as Webpack from "@webpack";
import { patches } from "plugins";
import { initWs } from "plugins/devCompanion.dev/initWs";
import { loadLazyChunks } from "./loadLazyChunks";
import { reporterData } from "./reporterData";
@ -78,11 +79,13 @@ async function runReporter() {
}
}
// if we are running the reporter with companion integration, send the list to vscode as soon as we can
if(IS_COMPANION_TEST)
initWs();
ReporterLogger.log("Finished test");
} catch (e) {
ReporterLogger.log("A fatal error occurred:", e);
}
console.log(reporterData);
}
// imported in webpack for reporterData, wrap to avoid running reporter