Skip to content

Commit e975dfa

Browse files
committed
adding chromium test
1 parent 38e65fa commit e975dfa

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
const puppeteer = require('puppeteer');
2+
3+
test('Adds two numbers', () => {
4+
const sum = 1+2;
5+
expect(sum).toEqual(3);
6+
})
7+
8+
test('We can launch a browser', async () => {
9+
const browser = await puppeteer.launch({
10+
headless: false
11+
});
12+
13+
const page = await browser.newPage();
14+
await page.goto('localhost:3000');
15+
})

0 commit comments

Comments
 (0)