impress-2020/cypress/plugins/index.js

13 lines
401 B
JavaScript
Raw Normal View History

require("dotenv").config();
2021-04-16 03:04:39 -07:00
const { initPlugin } = require("cypress-plugin-snapshots/plugin");
module.exports = (on, config) => {
2021-04-16 03:04:39 -07:00
initPlugin(on, config);
config.env.AUTH0_TEST_CLIENT_ID = process.env.AUTH0_TEST_CLIENT_ID;
config.env.AUTH0_TEST_CLIENT_SECRET = process.env.AUTH0_TEST_CLIENT_SECRET;
config.env.DTI_TEST_USER_PASSWORD = process.env.DTI_TEST_USER_PASSWORD;
2021-04-16 03:04:39 -07:00
return config;
};