@@ -46,7 +46,11 @@ integration, or MCP transport is introduced in this foundation.
4646``` ts
4747test (' resolves a package from its config path without using process cwd' , async () => {
4848 const result = await resolveContextWorkspace (configPath );
49- expect (result ).toEqual ({ workspaceRoot , packageRoot , packageName: ' @repo/lib' });
49+ expect (result ).toEqual ({
50+ workspaceRoot ,
51+ packageRoot ,
52+ packageName: ' @repo/lib' ,
53+ });
5054});
5155
5256test (' falls back to a standalone package root' , async () => {
@@ -94,23 +98,38 @@ Expected: PASS with both workspace cases green.
9498
9599``` ts
96100test (' publishes concurrent run snapshots and reads each latest context' , async () => {
97- expect (await writeContextRunManifest (rootPath , run )).toMatchObject ({ written: true });
98- expect (await writeContextSnapshot (rootPath , first )).toMatchObject ({ written: true });
99- expect (await writeContextSnapshot (rootPath , second )).toMatchObject ({ written: true });
101+ expect (await writeContextRunManifest (rootPath , run )).toMatchObject ({
102+ written: true ,
103+ });
104+ expect (await writeContextSnapshot (rootPath , first )).toMatchObject ({
105+ written: true ,
106+ });
107+ expect (await writeContextSnapshot (rootPath , second )).toMatchObject ({
108+ written: true ,
109+ });
100110 expect (await readContextWorkspaceStatus (rootPath )).toMatchObject ({
101- runs: [{ run , contexts: [{ context: run .contexts [0 ], latestSnapshot: second }] }],
111+ runs: [
112+ { run , contexts: [{ context: run .contexts [0 ], latestSnapshot: second }] },
113+ ],
102114 });
103115});
104116
105117test (' does not replace an immutable record' , async () => {
106- expect (await writeContextSnapshot (rootPath , first )).toMatchObject ({ written: true });
107- expect (await writeContextSnapshot (rootPath , replacement )).toMatchObject ({ written: false });
118+ expect (await writeContextSnapshot (rootPath , first )).toMatchObject ({
119+ written: true ,
120+ });
121+ expect (await writeContextSnapshot (rootPath , replacement )).toMatchObject ({
122+ written: false ,
123+ });
108124});
109125
110126test (' reports malformed completed records without reading temporary files' , async () => {
111127 const status = await readContextWorkspaceStatus (rootPath );
112128 expect (status .issues ).toEqual ([
113- expect .objectContaining ({ code: ' invalid-record' , path: expect .any (String ) }),
129+ expect .objectContaining ({
130+ code: ' invalid-record' ,
131+ path: expect .any (String ),
132+ }),
114133 ]);
115134});
116135```
0 commit comments