mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
style(tests): apply repository formatter to source closure checks
This commit is contained in:
1 parent
dc7594e85f
commit
db6400d775
1 file changed
+6
-2
@@ -58,7 +58,10 @@ afterEach(() => {
|
||||
});
|
||||
|
||||
type FinalClose =
|
||||
"control" | "interrupt" | "cleanup-failure" | "interrupt-cleanup-failure";
|
||||
| "control"
|
||||
| "interrupt"
|
||||
| "cleanup-failure"
|
||||
| "interrupt-cleanup-failure";
|
||||
|
||||
const fixture = async (dependencyText = "Synthetic dependency") => {
|
||||
const root = await createTestTempDirectory("rea-source-closure-");
|
||||
@@ -182,7 +185,8 @@ const DATA_SIZED_LINKS = 200_000;
|
||||
const closureOf = (stdout: string) => {
|
||||
const failure = analysisErrorProjectionSchema.parse(JSON.parse(stdout));
|
||||
const closure = failure.details?.source_closure as unknown as
|
||||
UndeliveredSourceClosure | undefined;
|
||||
| UndeliveredSourceClosure
|
||||
| undefined;
|
||||
if (closure === undefined) throw new Error(`No source closure: ${stdout}`);
|
||||
return { failure, closure };
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user