Skip to content
This repository has been archived by the owner on May 22, 2022. It is now read-only.
/ test-url Public archive

Manually check if a URL renders properly while testing.

License

Notifications You must be signed in to change notification settings

fabiospampinato/test-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Manually check if a URL renders properly while testing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published