-
-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Hi All,
This is more a question or suggestion rather than a new issue.
Given cypress.config.js file, is it possible to define values from token.js and credentials.json in cypress.env file?
const { defineConfig } = require("cypress");
const gmailTester = require("gmail-tester");
const path = require("path");
module.exports = defineConfig({
e2e: {
setupNodeEvents(on, config) {
on("task", {
"gmail:get-messages": async (args) => {
const messages = await gmailTester.get_messages(
path.resolve(__dirname, "credentials.json"),
path.resolve(__dirname, "token.json"),
args.options
);
return messages;
},
});
},
},
});
JoeyAtSS, sebasegura97 and IlyaBesedin
Metadata
Metadata
Assignees
Labels
No labels