🎥 Make videos programmatically with React
Update cancel-render.test.ts
Jonny Burger735bde574583
diff --git a/packages/it-tests/src/rendering/cancel-render.test.ts b/packages/it-tests/src/rendering/cancel-render.test.tsindex 7b0eabef48..942fb32118 100644--- a/packages/it-tests/src/rendering/cancel-render.test.ts+++ b/packages/it-tests/src/rendering/cancel-render.test.ts@@ -28,39 +28,43 @@ afterEach(() => {}});-test('Should fail to render if cancelRender() was being used', async () => {- const task = await execa(- 'pnpm',- [- 'exec',- 'remotion',- 'render',- 'build',- 'cancel-render',- '--frames=2-10',- outputPath,- ],- {- cwd: path.join(process.cwd(), '..', 'example'),- reject: false,- },- );+test(+ 'Should fail to render if cancelRender() was being used',+ async () => {+ const task = await execa(+ 'pnpm',+ [+ 'exec',+ 'remotion',+ 'render',+ 'build',+ 'cancel-render',+ '--frames=2-10',+ outputPath,+ ],+ {+ cwd: path.join(process.cwd(), '..', 'example'),+ reject: false,+ },+ );- expect(task.exitCode).toBe(1);- if (!task.stderr.includes('CancelledError')) {- console.log(task.stderr);- }- expect(task.stderr).toContain('CancelledError');- expect(task.stderr).toContain('This should be the error message');+ expect(task.exitCode).toBe(1);+ if (!task.stderr.includes('CancelledError')) {+ console.log(task.stderr);+ }+ expect(task.stderr).toContain('CancelledError');+ expect(task.stderr).toContain('This should be the error message');- // Should symbolicate stacktrace- // Do not search for strings that depend on color support- expect(task.stdout).toContain('src/CancelRender/index.tsx:18');- expect(task.stdout).toContain(- 'Worst case: Inside a promise without a catch handler',- );- expect(task.stdout).toContain('and with a timeout running');- expect(task.stdout).toContain(- "cancelRender(new Error('This should be the error message'));",- );-});+ // Should symbolicate stacktrace+ // Do not search for strings that depend on color support+ expect(task.stdout).toContain('src/CancelRender/index.tsx:18');+ expect(task.stdout).toContain(+ 'Worst case: Inside a promise without a catch handler',+ );+ expect(task.stdout).toContain('and with a timeout running');+ expect(task.stdout).toContain(+ "cancelRender(new Error('This should be the error message'));",+ );+ },+ {timeout: 15000},+);