forked from id-sk/id-sk-frontend
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why? Globals like __BROWSER__ are not available since Jest v24
- Loading branch information
1 parent
000e509
commit 6d48e3d
Showing
45 changed files
with
608 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
const configPaths = require('./config/paths.json') | ||
const PORT = process.env.PORT || configPaths.ports.test | ||
|
||
module.exports = { | ||
browserContext: 'incognito', | ||
launch: { | ||
// we use --no-sandbox --disable-setuid-sandbox as a workaround for the | ||
// 'No usable sandbox! Update your kernel' error | ||
// see more https://github.com/Googlechrome/puppeteer/issues/290 | ||
args: [ | ||
'--no-sandbox', | ||
'--disable-setuid-sandbox' | ||
] | ||
}, | ||
server: { | ||
command: `PORT=${PORT} node app/start.js`, | ||
launchTimeout: 30000, // Allow time for application to start | ||
port: PORT | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.