chore(deps): upgrade @pierre/diffs to 1.5.2 and @pierre/trees to beta.6 (#16644)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
d021f57bf3
commit
f8ed2a039b
22 files changed
+510
-956
No files matched your search
@@ -98,7 +98,7 @@ vi.mock("@pierre/diffs/worker/worker.js?worker", async () => {
|
||||
|
||||
vi.mock("@pierre/diffs/react", async (importOriginal) => ({
|
||||
...(await importOriginal<typeof import("@pierre/diffs/react")>()),
|
||||
CodeView: (props: CodeViewProps) => {
|
||||
CodeView: (props: CodeViewProps<undefined, undefined>) => {
|
||||
return props.items?.map((item) =>
|
||||
item.type === "file" ? <FileOutput key={item.id} file={item.file} /> : null,
|
||||
);
|
||||
@@ -115,6 +115,7 @@ function FileOutput({ file }: { file: FileContents }) {
|
||||
testState.renderPools.push(pool);
|
||||
const renderer = new FileRenderer(
|
||||
{ theme: "pierre-dark", preferredHighlighter: "shiki-wasm" },
|
||||
undefined,
|
||||
render,
|
||||
pool,
|
||||
);
|
||||
@@ -301,8 +302,10 @@ describe("code-view worker lifecycle", () => {
|
||||
expect(pool.getStats().totalWorkers).toBe(2);
|
||||
expect(testState.terminations).toHaveLength(0);
|
||||
await act(async () => renderer!.update(renderViews(0)));
|
||||
// Pierre gives up on a held startup after 10 seconds; the idle timer then tears the pool down.
|
||||
const timedOut = expect(pending).rejects.toThrow("worker initialization timed out");
|
||||
await vi.advanceTimersByTimeAsync(30_000);
|
||||
await pending;
|
||||
await timedOut;
|
||||
await Promise.all(testState.terminations);
|
||||
await act(async () => {
|
||||
for (const deliver of testState.heldResponses) deliver();
|
||||
|
||||
Reference in new issue
Block a user