dceky 1.0.0-beta.5 → 1.0.0-beta.6
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 +0 -9
- package/lib/init.js.map +1 -1
- package/package.json +1 -1
- package/src/init.ts +0 -10
package/lib/init.js
CHANGED
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/// <reference types="cypress" />
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
// Find the top level directory
|
|
5
|
-
var pwd = (process.env.PWD || process.env.CWD);
|
|
6
4
|
var init = function () {
|
|
7
5
|
Cypress.Commands.add('clickSomething', function (selector) {
|
|
8
6
|
cy.get(selector).click();
|
|
9
7
|
});
|
|
10
|
-
// Add project commands
|
|
11
|
-
try {
|
|
12
|
-
Cypress.require("".concat(pwd, "/cypress/support/ProjectCommands.ts"));
|
|
13
|
-
}
|
|
14
|
-
catch (error) {
|
|
15
|
-
// No project commands found, do nothing
|
|
16
|
-
}
|
|
17
8
|
};
|
|
18
9
|
exports.default = init;
|
|
19
10
|
//# 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
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../src/init.ts"],"names":[],"mappings":";AAAA,iCAAiC;;AAejC,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;AACL,CAAC,CAAC;AAEF,kBAAe,IAAI,CAAC"}
|
package/package.json
CHANGED
package/src/init.ts
CHANGED
|
@@ -13,20 +13,10 @@ declare global {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
// Find the top level directory
|
|
17
|
-
const pwd = (process.env.PWD || process.env.CWD);
|
|
18
|
-
|
|
19
16
|
const init = () => {
|
|
20
17
|
Cypress.Commands.add('clickSomething', (selector: string) => {
|
|
21
18
|
cy.get(selector).click();
|
|
22
19
|
});
|
|
23
|
-
|
|
24
|
-
// Add project commands
|
|
25
|
-
try {
|
|
26
|
-
Cypress.require(`${pwd}/cypress/support/ProjectCommands.ts`);
|
|
27
|
-
} catch (error) {
|
|
28
|
-
// No project commands found, do nothing
|
|
29
|
-
}
|
|
30
20
|
};
|
|
31
21
|
|
|
32
22
|
export default init;
|