@cankode/test-runner-browser
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

@cankode/test-runner-browserr

wip

startTestServer will glob search your disk for test files, build and serve them on the provided URL. testPage will run the tests via Playwright in chromium, webkit and firefox

import { startTestServer, testPage } from '@cankode/test-runner-browser';

main();

async function main() {
  const [url, server] = await startTestServer('./**/*.spec.ts');
  try {
    await testPage(url);
  } finally {
    server.close();
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @cankode/test-runner-browser

Weekly Downloads

2

Version

0.0.2

License

ISC

Unpacked Size

7.73 kB

Total Files

8

Last publish

Collaborators

  • anderscan