diff --git a/app.js b/app.js index d271760..beb5a09 100755 --- a/app.js +++ b/app.js @@ -71,17 +71,20 @@ const exportFile = async (options) => { config: { e2e: { baseUrl: config['base-url'], + supportFile: path.resolve(dirname, 'cypress/support/e2e.js'), + specPattern: path.resolve(dirname, 'cypress/e2e/*.cy.js'), }, }, env: { user: config.user, password: config.password, - output, + output: path.resolve(output), start: formatDate(start), end: formatDate(end), }, - spec: './cypress/e2e/exportPdf.cy.js', + spec: path.resolve(dirname, 'cypress/e2e/exportPdf.cy.js'), quiet: true, + configFile: path.resolve(dirname, 'cypress.config.js'), }) log(chalk.bold.green('Done, enjoy your saved time!')) diff --git a/package.json b/package.json index 9b20116..f01b481 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vendus-export", - "version": "1.0.0", + "version": "1.0.1", "main": "app.js", "repository": "git@github.com:gilsonmandalogo/vendus-export.git", "author": "Gilson JĂșnior ",