strapi/test/cypress.js

19 lines
339 B
JavaScript
Raw Normal View History

2019-03-11 10:42:43 +01:00
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);
});