Skip to content

Commit

Permalink
update library version and removing travis.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanaworld committed Jun 2, 2024
1 parent 1d0fabd commit 63d7c1c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 73 deletions.
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

62 changes: 10 additions & 52 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"standard-version": "^9.0.0",
"ts-node": "^9.0.0",
"typedoc": "^0.19.0",
"typescript": "^4.0.2"
"typescript": "^5.4.5"
},
"files": [
"build/main",
Expand Down Expand Up @@ -174,4 +174,4 @@
"**/*.spec.js"
]
}
}
}
9 changes: 8 additions & 1 deletion src/example/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import puppeteer from 'puppeteer';

import { PuppeteerScreenRecorder } from '../lib/PuppeteerScreenRecorder';

/** @ignore */
function sleep(time: number) {
return new Promise((resolve) => {
setTimeout(resolve, time);
});
}

/** @ignore */
async function testStartMethod(format: string, isStream: boolean) {
const browser = await puppeteer.launch({
Expand All @@ -23,7 +30,7 @@ async function testStartMethod(format: string, isStream: boolean) {
await recorder.start(format);
}
await page.goto('https://developer.mozilla.org/en-US/docs/Web/CSS/animation');
await page.waitFor(10 * 1000);
await sleep(10 * 1000);
await recorder.stop();
await browser.close();
}
Expand Down

0 comments on commit 63d7c1c

Please sign in to comment.