Skip to content

Commit

Permalink
fix(helpers): applitools dep
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Mar 6, 2019
1 parent 57a6f1f commit a6d2bde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xplat-helper/applitools/web/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ export function supportApplitools_Web(
cypressConfig.supportFile = `${outputPath}support/index.js`;
// console.log('cypressConfig.supportFile:', cypressConfig.supportFile);
helperChains.push(updateJsonFile(tree, cypressConfigPath, cypressConfig));

// Add applitools modules
const packageJson = getJsonFromFile(tree, "package.json");
packageJson.devDependencies = packageJson.devDependencies || {};
packageJson.devDependencies["@applitools/eyes-cypress"] = "^3.5.2"
helperChains.push(updateJsonFile(tree, "package.json", packageJson));

// update sample test
helperChains.push(
createOrUpdate(
Expand Down

0 comments on commit a6d2bde

Please sign in to comment.