mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-16 16:13:20 +01:00
7 lines
240 B
JavaScript
7 lines
240 B
JavaScript
|
Cypress.Commands.add('artisan', (cmd) => {
|
||
|
let environment = Cypress.env('runningEnvironment');
|
||
|
let prefix = environment === 'docker' ? 'docker-compose run --rm artisan' : 'php artisan';
|
||
|
|
||
|
return cy.exec(`${prefix} ${cmd}`);
|
||
|
});
|