Mock createAikidoEndpointConfigFile in tests

This commit is contained in:
Sander Declerck 2026-05-08 16:42:39 +02:00
parent 5a3df40ee5
commit 38ee7e6f4f
No known key found for this signature in database
2 changed files with 12 additions and 4 deletions

View file

@ -99,9 +99,13 @@ async function startRama(ramaPath, dataFolder, reportingUrl) {
dataFolder,
"--reporting-endpoint",
reportingUrl,
"--config-file",
await createAikidoEndpointConfigFile(dataFolder),
];
const configFile = await createAikidoEndpointConfigFile(dataFolder);
if (configFile) {
args.push("--config-file", configFile);
}
const stdio = getLoggingLevel() === LOGGING_VERBOSE ? "inherit" : "pipe";
const process = spawn(ramaPath, args, { stdio: stdio });