Skip to content

Instantly share code, notes, and snippets.

@dualyticalchemy
Created February 7, 2021 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dualyticalchemy/8b63e930afc7c26a734752e2f8b56340 to your computer and use it in GitHub Desktop.
Save dualyticalchemy/8b63e930afc7c26a734752e2f8b56340 to your computer and use it in GitHub Desktop.
const load = async (context, platformPath) => {
const path = require('path');
cy.load('context: ', context);
cy.load('platformPath: ', platformPath);
return await cy.readFile(path.resolve(context, platformPath));
};
module.exports = {
load
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment