mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2026-03-13 09:50:09 +08:00
tests specific to circle ci
This commit is contained in:
@@ -14,9 +14,16 @@ async function itShould(directive, test: (page: puppeteer.Page) => any){
|
||||
}
|
||||
|
||||
beforeAll(async () => {
|
||||
browser = await puppeteer.launch({
|
||||
headless: false
|
||||
});
|
||||
if(process.env.CIRCLECI){
|
||||
console.log("using CircleCI");
|
||||
browser = await puppeteer.launch({
|
||||
args: ['--no-sandbox', '--disable-setuid-sandbox']
|
||||
});
|
||||
}else{
|
||||
browser = await puppeteer.launch({
|
||||
headless: false
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
|
||||
Reference in New Issue
Block a user