test: support tests that include color information (#20220)

This commit is contained in:
Jacob Richman
2026-02-25 15:31:35 -08:00
committed by GitHub
parent 78dfe9dea8
commit f9f916e1dc
68 changed files with 2342 additions and 492 deletions

View File

@@ -235,7 +235,7 @@ Another paragraph.
);
await waitUntilReady();
expect(lastFrame()).toMatchSnapshot();
expect(lastFrame()).not.toContain(' 1 ');
expect(lastFrame()).not.toContain('1 const x = 1;');
unmount();
});
@@ -246,7 +246,7 @@ Another paragraph.
);
await waitUntilReady();
expect(lastFrame()).toMatchSnapshot();
expect(lastFrame()).toContain(' 1 ');
expect(lastFrame()).toContain('1 const x = 1;');
unmount();
});
});