🎥 Make videos programmatically with React
fix test
Jonny Burger02f18ebf9aff
diff --git a/packages/renderer/src/render-still.ts b/packages/renderer/src/render-still.tsindex eae56887c6..58e632d501 100644--- a/packages/renderer/src/render-still.ts+++ b/packages/renderer/src/render-still.ts@@ -158,12 +158,6 @@ const innerRenderStill = async ({output =typeof output === 'string' ? path.resolve(process.cwd(), output) : null;- if (jpegQuality !== undefined && imageFormat !== 'jpeg') {- throw new Error(- "You can only pass the `quality` option if `imageFormat` is 'jpeg'."- );- }-validateJpegQuality(jpegQuality);if (output) {@@ -399,6 +393,12 @@ export const renderStill = (quality,} = options;+ if (jpegQuality !== undefined && imageFormat !== 'jpeg') {+ throw new Error(+ "You can only pass the `quality` option if `imageFormat` is 'jpeg'."+ );+ }+if (quality) {console.warn('Passing `quality()` to `renderStill` is deprecated. Use `jpegQuality` instead.'