mirror of
https://github.com/strapi/strapi.git
synced 2025-07-14 12:32:35 +00:00
19 lines
339 B
JavaScript
19 lines
339 B
JavaScript
![]() |
const cypress = require('cypress');
|
||
|
|
||
|
const config = Object.assign(
|
||
|
{
|
||
|
spec: './packages/**/test/front/integration/*',
|
||
|
},
|
||
|
process.env.npm_config_browser === 'true' ? { browser: 'chrome' } : {}
|
||
|
);
|
||
|
|
||
|
cypress
|
||
|
.run(config)
|
||
|
.then(() => {
|
||
|
process.exit(0);
|
||
|
})
|
||
|
.catch(err => {
|
||
|
console.error(err);
|
||
|
process.exit(1);
|
||
|
});
|