Skip to content

An ava companion for snapshots testing with puppeteer

Notifications You must be signed in to change notification settings

jakwuh/ava-puppeteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ava-puppeteer

An ava companion for snapshots testing with puppeteer

// bootstrap.js
const {createCapture} = require('ava-puppeteer');

global.capture = createCapture();
// test-module-A.js
import test from 'ava';

test('Dailytip homepage has Telegram subscribe banner', async t => {
    await capture({
        url: 'https://akwuh.me/t/',
        selector: 'h4'
    });
    t.pass();
});

About

An ava companion for snapshots testing with puppeteer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published