test-url
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Test URL

Manually check if a URL renders properly while testing.

Install

npm install --save test-url

Usage

The URL will be opened in a browser via puppeteer, if everything looks alright just close the browser, if something is wrong stop testing.

import testURL from 'test-url';

async function runTests () {

  // Some other tests...

  const url = `file://${encodeURI ( __dirname )}/index.html`;

  await testURL ( url ); // Opening the URL, waiting for the browser to be closed

}

runTests ();

License

MIT © Fabio Spampinato

Readme

Keywords

Package Sidebar

Install

npm i test-url

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

8.47 kB

Total Files

8

Last publish

Collaborators

  • fabiospampinato