Skip to content

Commit 35dbe75

Browse files
committed
- Testing e2e on Circle CI
1 parent 6e6d273 commit 35dbe75

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jobs:
33
build:
44
working_directory: ~/repo
55
docker:
6-
- image: circleci/node:lts
6+
- image: circleci/node:latest-browsers
77
steps:
88
- checkout
99
- restore_cache:
@@ -23,6 +23,9 @@ jobs:
2323
- run:
2424
name: test
2525
command: yarn run test:coverage
26+
- run:
27+
name: e2e
28+
command: yarn run test:e2e
2629
- run:
2730
name: codecov
2831
command: yarn run codecov

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ module.exports = {
1717
testMatch: [
1818
'<rootDir>/test/e2e/v2.fetch.spec.js',
1919
'<rootDir>/test/e2e/v2.xhr.spec.js',
20-
'<rootDir>/test/e2e/v2.node.spec.js',
20+
// '<rootDir>/test/e2e/v2.node.spec.js',
2121
'<rootDir>/test/e2e/v3.fetch.spec.js',
2222
'<rootDir>/test/e2e/v3.xhr.spec.js',
23-
'<rootDir>/test/e2e/v3.node.spec.js',
23+
// '<rootDir>/test/e2e/v3.node.spec.js',
2424
],
2525
},
2626
],

test/e2e/scripts/browser.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ async function start() {
99
// This starts the a new puppeteer browser (Chrome)
1010
// and load the localhost page, this page will load the
1111
// javascript modules (see server.js for more info)
12-
browser = await puppeteer.launch();
12+
browser = await puppeteer.launch({
13+
args: [
14+
'--no-sandbox',
15+
'--disable-setuid-sandbox',
16+
]
17+
});
1318
page = await browser.newPage();
1419
await page.goto(`http://localhost:3000/`, {
1520
waitUntil: 'networkidle0',

0 commit comments

Comments
 (0)