diff --git a/.changeset/eight-years-hope.md b/.changeset/eight-years-hope.md new file mode 100644 index 0000000000..a845151cc8 --- /dev/null +++ b/.changeset/eight-years-hope.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/rrvideo/package.json b/packages/rrvideo/package.json index e290206d31..9f03ea2989 100644 --- a/packages/rrvideo/package.json +++ b/packages/rrvideo/package.json @@ -33,7 +33,7 @@ "@open-tech-world/cli-progress-bar": "^2.0.2", "fs-extra": "^11.1.1", "minimist": "^1.2.5", - "playwright": "^1.32.1", + "playwright": "^1.56.1", "rrweb-player": "^2.0.0-alpha.19" } } diff --git a/packages/rrvideo/test/cli.test.ts b/packages/rrvideo/test/cli.test.ts index 29efe4815c..c8e5a78751 100644 --- a/packages/rrvideo/test/cli.test.ts +++ b/packages/rrvideo/test/cli.test.ts @@ -18,16 +18,19 @@ describe('should be able to run cli', () => { await fs.remove(path.resolve(__dirname, './generated')); }); + const execOptions = { stdio: 'pipe', timeout: 60_000 } as const; + it('should throw error without input path', () => { expect(() => { - execSync('node ./build/cli.js', { stdio: 'pipe' }); + execSync('node ./build/cli.js', execOptions); }).toThrowError(/.*please pass --input to your rrweb events file.*/); }); it('should generate a video without output path', () => { - execSync('node ./build/cli.js --input ./test/generated/example.json', { - stdio: 'pipe', - }); + execSync( + 'node ./build/cli.js --input ./test/generated/example.json', + execOptions, + ); const outputFile = path.resolve(__dirname, '../rrvideo-output.webm'); expect(fs.existsSync(outputFile)).toBe(true); fs.removeSync(outputFile); @@ -37,7 +40,7 @@ describe('should be able to run cli', () => { const outputFile = path.resolve(__dirname, './generated/output.webm'); execSync( `node ./build/cli.js --input ./test/generated/example.json --output ${outputFile}`, - { stdio: 'pipe' }, + execOptions, ); expect(fs.existsSync(outputFile)).toBe(true); fs.removeSync(outputFile); diff --git a/yarn.lock b/yarn.lock index 7d0b8c00de..050d4383c7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1,5 +1,5 @@ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 +# yarn lockfile v1 "@ampproject/remapping@^2.2.0", "@ampproject/remapping@^2.2.1": @@ -8238,17 +8238,17 @@ pkg-types@^1.0.3, pkg-types@^1.1.1: mlly "^1.7.0" pathe "^1.1.2" -playwright-core@1.44.1: - version "1.44.1" - resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.44.1.tgz#53ec975503b763af6fc1a7aa995f34bc09ff447c" - integrity sha512-wh0JWtYTrhv1+OSsLPgFzGzt67Y7BE/ZS3jEqgGBlp2ppp1ZDj8c+9IARNW4dwf1poq5MgHreEM2KV/GuR4cFA== +playwright-core@1.56.1: + version "1.56.1" + resolved "https://registry.yarnpkg.com/playwright-core/-/playwright-core-1.56.1.tgz#24a66481e5cd33a045632230aa2c4f0cb6b1db3d" + integrity sha512-hutraynyn31F+Bifme+Ps9Vq59hKuUCz7H1kDOcBs+2oGguKkWTU50bBWrtz34OUWmIwpBTWDxaRPXrIXkgvmQ== -playwright@^1.32.1: - version "1.44.1" - resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.44.1.tgz#5634369d777111c1eea9180430b7a184028e7892" - integrity sha512-qr/0UJ5CFAtloI3avF95Y0L1xQo6r3LQArLIg/z/PoGJ6xa+EwzrwO5lpNr/09STxdHuUoP2mvuELJS+hLdtgg== +playwright@^1.56.1: + version "1.56.1" + resolved "https://registry.yarnpkg.com/playwright/-/playwright-1.56.1.tgz#62e3b99ddebed0d475e5936a152c88e68be55fbf" + integrity sha512-aFi5B0WovBHTEvpM3DzXTUaeN6eN0qWnTkKx4NQaH4Wvcmc153PdaY2UBdSYKaGYw+UyWXSVyxDUg5DoPEttjw== dependencies: - playwright-core "1.44.1" + playwright-core "1.56.1" optionalDependencies: fsevents "2.3.2"