@cankode/test-runner-browser
v0.0.2
Published
test-utils
Downloads
15
Readme
@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();
}
}