Skip to content

Commit

Permalink
fix: cypress working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gilsonmandalogo committed Dec 7, 2022
1 parent b9801bb commit 02d7da9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!'))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vendus-export",
"version": "1.0.0",
"version": "1.0.1",
"main": "app.js",
"repository": "[email protected]:gilsonmandalogo/vendus-export.git",
"author": "Gilson Júnior <[email protected]>",
Expand Down

0 comments on commit 02d7da9

Please sign in to comment.