dceky 1.0.0-beta.4 → 1.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/init.js CHANGED
@@ -8,7 +8,12 @@ var init = function () {
8
8
  cy.get(selector).click();
9
9
  });
10
10
  // Add project commands
11
- Cypress.require("".concat(pwd, "/cypress/support/ProjectCommands.ts"));
11
+ try {
12
+ Cypress.require("".concat(pwd, "/cypress/support/ProjectCommands.ts"));
13
+ }
14
+ catch (error) {
15
+ // No project commands found, do nothing
16
+ }
12
17
  };
13
18
  exports.default = init;
14
19
  //# sourceMappingURL=init.js.map
package/lib/init.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";AAAA,iCAAiC;;AAejC,+BAA+B;AAC/B,IAAM,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,IAAM,IAAI,GAAG;IACX,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,UAAC,QAAgB;QACtD,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,uBAAuB;IACvB,OAAO,CAAC,OAAO,CAAC,UAAG,GAAG,wCAAqC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";AAAA,iCAAiC;;AAejC,+BAA+B;AAC/B,IAAM,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEjD,IAAM,IAAI,GAAG;IACX,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,gBAAgB,EAAE,UAAC,QAAgB;QACtD,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,uBAAuB;IACvB,IAAI,CAAC;QACH,OAAO,CAAC,OAAO,CAAC,UAAG,GAAG,wCAAqC,CAAC,CAAC;IAC/D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,wCAAwC;IAC1C,CAAC;AACH,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dceky",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Cypress toolkit for Harvard DCE",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
package/src/init.ts CHANGED
@@ -22,7 +22,11 @@ const init = () => {
22
22
  });
23
23
 
24
24
  // Add project commands
25
- Cypress.require(`${pwd}/cypress/support/ProjectCommands.ts`);
25
+ try {
26
+ Cypress.require(`${pwd}/cypress/support/ProjectCommands.ts`);
27
+ } catch (error) {
28
+ // No project commands found, do nothing
29
+ }
26
30
  };
27
31
 
28
32
  export default init;