Skip to content

πŸŽ₯ Make videos programmatically with React

Update cancel-render.test.ts

Jonny Burger8f48d2432603
diff --git a/packages/it-tests/src/rendering/cancel-render.test.ts b/packages/it-tests/src/rendering/cancel-render.test.ts
index c82f9d4be7..3677fc1225 100644
--- a/packages/it-tests/src/rendering/cancel-render.test.ts
+++ b/packages/it-tests/src/rendering/cancel-render.test.ts
@@ -32,14 +32,14 @@ test("Should fail to render if cancelRender() was being used", async () => {
expect(task.stderr).toContain("CancelledError");
expect(task.stderr).toContain("This should be the error message");
- console.log(task.stdout);
// Should symbolicate stacktrace
- expect(task.stdout).toContain("at src/CancelRender/index.tsx:18");
+ // Do not search for strings that depend on color support
+ expect(task.stdout).toContain("src/CancelRender/index.tsx:18");
expect(task.stdout).toContain(
- "16 β”‚ \t// Worst case: Inside a promise without a catch handler\n"
+ " \t// Worst case: Inside a promise without a catch handler\n"
);
- expect(task.stdout).toContain("17 β”‚ \t// and with a timeout running\n");
+ expect(task.stdout).toContain(" \t// and with a timeout running\n");
expect(task.stdout).toContain(
- "18 β”‚ \tcancelRender(new Error('This should be the error message'));\n"
+ " \tcancelRender(new Error('This should be the error message'));\n"
);
});