@jscutlery/cypress-harness 0.3.6 → 0.3.10
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/CHANGELOG.md +54 -33
- package/LICENSE +21 -0
- package/package.json +9 -3
- package/src/lib/cypress-harness-environment.js +1 -1
- package/src/lib/get-all-harnesses.js +2 -2
- package/src/lib/get-all-harnesses.js.map +1 -1
- package/src/lib/get-harness.js +2 -2
- package/src/lib/get-harness.js.map +1 -1
- package/src/lib/get-root-harness.js +1 -1
- package/src/lib/get-root-harness.js.map +1 -1
- package/support.d.ts +1 -1
- package/support.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,63 +2,84 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
-
## [0.3.
|
|
5
|
+
## [0.3.10](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.9...cypress-harness-0.3.10) (2022-03-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [0.3.9](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.8...cypress-harness-0.3.9) (2021-12-08)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## [0.3.8](https://github.com/jscutlery/test-utils/compare/cypress-harness-0.3.7...cypress-harness-0.3.8) (2021-10-26)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.3.7](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.6...cypress-harness-0.3.7) (2021-10-25)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* use standalone projects ([8e4b7b7](https://github.com/jscutlery/devkit/commit/8e4b7b7fc5405fa01b6114654211ac45ec9bfd5e))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## [0.3.6](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.5...cypress-harness-0.3.6) (2021-08-05)
|
|
6
27
|
|
|
7
28
|
|
|
8
29
|
### Bug Fixes
|
|
9
30
|
|
|
10
|
-
* **cypress-harness:** 🐞 fix `getAllHarnesses` type ([e66d08c](https://github.com/jscutlery/
|
|
31
|
+
* **cypress-harness:** 🐞 fix `getAllHarnesses` type ([e66d08c](https://github.com/jscutlery/devkit/commit/e66d08c5745a934da3bc3ecc57adcfd44ee7b30d))
|
|
11
32
|
|
|
12
33
|
|
|
13
34
|
|
|
14
|
-
## [0.3.5](https://github.com/jscutlery/
|
|
35
|
+
## [0.3.5](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.4...cypress-harness-0.3.5) (2021-06-29)
|
|
15
36
|
|
|
16
37
|
|
|
17
38
|
### Bug Fixes
|
|
18
39
|
|
|
19
|
-
* **cypress-harness:** 🐞 correct return type of `getAllHarnesses` ([7b99fd9](https://github.com/jscutlery/
|
|
20
|
-
* **cypress-harness:** 🐞 fix typing with strict mode ([8ff4b42](https://github.com/jscutlery/
|
|
40
|
+
* **cypress-harness:** 🐞 correct return type of `getAllHarnesses` ([7b99fd9](https://github.com/jscutlery/devkit/commit/7b99fd9eff4e4614026d3fb9d2ec7d5f50e4fa47))
|
|
41
|
+
* **cypress-harness:** 🐞 fix typing with strict mode ([8ff4b42](https://github.com/jscutlery/devkit/commit/8ff4b428d6c1c2a252f93eb9722c6f6cf67f5359))
|
|
21
42
|
|
|
22
43
|
|
|
23
44
|
|
|
24
|
-
## [0.3.4](https://github.com/jscutlery/
|
|
45
|
+
## [0.3.4](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.3...cypress-harness-0.3.4) (2021-05-15)
|
|
25
46
|
|
|
26
47
|
|
|
27
48
|
|
|
28
|
-
## [0.3.3](https://github.com/jscutlery/
|
|
49
|
+
## [0.3.3](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.2...cypress-harness-0.3.3) (2021-05-13)
|
|
29
50
|
|
|
30
51
|
|
|
31
52
|
|
|
32
|
-
## [0.3.2](https://github.com/jscutlery/
|
|
53
|
+
## [0.3.2](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.1...cypress-harness-0.3.2) (2021-02-25)
|
|
33
54
|
|
|
34
55
|
|
|
35
56
|
|
|
36
|
-
## [0.3.1](https://github.com/jscutlery/
|
|
57
|
+
## [0.3.1](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.0...cypress-harness-0.3.1) (2021-02-25)
|
|
37
58
|
|
|
38
59
|
|
|
39
60
|
|
|
40
|
-
# [0.3.0](https://github.com/jscutlery/
|
|
61
|
+
# [0.3.0](https://github.com/jscutlery/devkit/compare/cypress-harness-0.2.1...cypress-harness-0.3.0) (2021-02-25)
|
|
41
62
|
|
|
42
63
|
|
|
43
64
|
### Bug Fixes
|
|
44
65
|
|
|
45
|
-
* **cypress-harness:** 🐞 don't proxy native cypress functions ([db3a409](https://github.com/jscutlery/
|
|
66
|
+
* **cypress-harness:** 🐞 don't proxy native cypress functions ([db3a409](https://github.com/jscutlery/devkit/commit/db3a409a4f40334f8b7eccd6f126913a395a5b3d))
|
|
46
67
|
|
|
47
68
|
|
|
48
69
|
### Features
|
|
49
70
|
|
|
50
|
-
* **cypress-harness:** ✅ make getHarness & getAllHarnesses & getRootHarness harnesses reusable ([35335a3](https://github.com/jscutlery/
|
|
51
|
-
* **cypress-harness:** ✅ support first level method chaining ([e52c26a](https://github.com/jscutlery/
|
|
52
|
-
* **cypress-harness:** ✅ support recursive chaining ([363ce84](https://github.com/jscutlery/
|
|
71
|
+
* **cypress-harness:** ✅ make getHarness & getAllHarnesses & getRootHarness harnesses reusable ([35335a3](https://github.com/jscutlery/devkit/commit/35335a38ea9949ba09066034bcb3c61d76318b1a)), closes [#3](https://github.com/jscutlery/devkit/issues/3)
|
|
72
|
+
* **cypress-harness:** ✅ support first level method chaining ([e52c26a](https://github.com/jscutlery/devkit/commit/e52c26a5df9e21ce7c5a6feb041ba661613810c3))
|
|
73
|
+
* **cypress-harness:** ✅ support recursive chaining ([363ce84](https://github.com/jscutlery/devkit/commit/363ce8471b18bda23f6aeb62c81bf53847fb8caf))
|
|
53
74
|
|
|
54
75
|
|
|
55
76
|
|
|
56
|
-
## [0.2.1](https://github.com/jscutlery/
|
|
77
|
+
## [0.2.1](https://github.com/jscutlery/devkit/compare/cypress-harness-0.2.0...cypress-harness-0.2.1) (2021-02-10)
|
|
57
78
|
|
|
58
79
|
|
|
59
80
|
### Bug Fixes
|
|
60
81
|
|
|
61
|
-
* **cypress-harness:** 🐞 support cypress-mount 0.5.0 ([07877e5](https://github.com/jscutlery/
|
|
82
|
+
* **cypress-harness:** 🐞 support cypress-mount 0.5.0 ([07877e5](https://github.com/jscutlery/devkit/commit/07877e524adabcf2b693c898a17b0fd5d977d3b8))
|
|
62
83
|
|
|
63
84
|
|
|
64
85
|
|
|
@@ -67,19 +88,19 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/s
|
|
|
67
88
|
|
|
68
89
|
### Bug Fixes
|
|
69
90
|
|
|
70
|
-
* **cypress-harness:** 🐞 fix "zone-testing is needed" error ([ab7b5a0](https://github.com/jscutlery/
|
|
71
|
-
* document root ([a99cf73](https://github.com/jscutlery/
|
|
91
|
+
* **cypress-harness:** 🐞 fix "zone-testing is needed" error ([ab7b5a0](https://github.com/jscutlery/devkit/commit/ab7b5a0978c46aae8331c69f570541917984d154)), closes [#2](https://github.com/jscutlery/devkit/issues/2)
|
|
92
|
+
* document root ([a99cf73](https://github.com/jscutlery/devkit/commit/a99cf73b6a3f95e8188f171acb952203231f1118))
|
|
72
93
|
|
|
73
94
|
|
|
74
95
|
### Features
|
|
75
96
|
|
|
76
|
-
* **cypress-harness:** ✅ add @jscutlery/cypress-harness/support ([454016d](https://github.com/jscutlery/
|
|
77
|
-
* ✅ remove log ([758c62a](https://github.com/jscutlery/
|
|
78
|
-
* use UnitTestElement ([79db9a0](https://github.com/jscutlery/
|
|
79
|
-
* **cypress-harness:** ✅ add chainable typed methods to `getHarness` result ([32f7e86](https://github.com/jscutlery/
|
|
80
|
-
* **cypress-harness:** ✅ add chainable typed methods to `getRootHarness` result ([7f2936d](https://github.com/jscutlery/
|
|
81
|
-
* **cypress-harness:** ✅ add getRootHarness ([27a1936](https://github.com/jscutlery/
|
|
82
|
-
* **cypress-harness:** ✅ log harness method name ([82c5744](https://github.com/jscutlery/
|
|
97
|
+
* **cypress-harness:** ✅ add @jscutlery/cypress-harness/support ([454016d](https://github.com/jscutlery/devkit/commit/454016d71fbb30260c5c5dec4d5cdb8ab47653f9))
|
|
98
|
+
* ✅ remove log ([758c62a](https://github.com/jscutlery/devkit/commit/758c62a2ab42b6ae52a4ed917693cfda19b0a3b5))
|
|
99
|
+
* use UnitTestElement ([79db9a0](https://github.com/jscutlery/devkit/commit/79db9a0526a8caddfa2d040d32dcf0f54399856b))
|
|
100
|
+
* **cypress-harness:** ✅ add chainable typed methods to `getHarness` result ([32f7e86](https://github.com/jscutlery/devkit/commit/32f7e86c8ff5862fa4f7922bc4b4336a9729169d))
|
|
101
|
+
* **cypress-harness:** ✅ add chainable typed methods to `getRootHarness` result ([7f2936d](https://github.com/jscutlery/devkit/commit/7f2936d16ee22214c5f2cae5da2b8544292f09fc))
|
|
102
|
+
* **cypress-harness:** ✅ add getRootHarness ([27a1936](https://github.com/jscutlery/devkit/commit/27a19360aff0c280af027822f13d403e28b4990a))
|
|
103
|
+
* **cypress-harness:** ✅ log harness method name ([82c5744](https://github.com/jscutlery/devkit/commit/82c574451df323db96736a062dc9cea9a132657d))
|
|
83
104
|
|
|
84
105
|
|
|
85
106
|
|
|
@@ -88,15 +109,15 @@ This file was generated using [@jscutlery/semver](https://github.com/jscutlery/s
|
|
|
88
109
|
|
|
89
110
|
### Bug Fixes
|
|
90
111
|
|
|
91
|
-
* document root ([a99cf73](https://github.com/jscutlery/
|
|
112
|
+
* document root ([a99cf73](https://github.com/jscutlery/devkit/commit/a99cf73b6a3f95e8188f171acb952203231f1118))
|
|
92
113
|
|
|
93
114
|
|
|
94
115
|
### Features
|
|
95
116
|
|
|
96
|
-
* **cypress-harness:** ✅ add @jscutlery/cypress-harness/support ([454016d](https://github.com/jscutlery/
|
|
97
|
-
* ✅ remove log ([758c62a](https://github.com/jscutlery/
|
|
98
|
-
* use UnitTestElement ([79db9a0](https://github.com/jscutlery/
|
|
99
|
-
* **cypress-harness:** ✅ add chainable typed methods to `getHarness` result ([32f7e86](https://github.com/jscutlery/
|
|
100
|
-
* **cypress-harness:** ✅ add chainable typed methods to `getRootHarness` result ([7f2936d](https://github.com/jscutlery/
|
|
101
|
-
* **cypress-harness:** ✅ add getRootHarness ([27a1936](https://github.com/jscutlery/
|
|
102
|
-
* **cypress-harness:** ✅ log harness method name ([82c5744](https://github.com/jscutlery/
|
|
117
|
+
* **cypress-harness:** ✅ add @jscutlery/cypress-harness/support ([454016d](https://github.com/jscutlery/devkit/commit/454016d71fbb30260c5c5dec4d5cdb8ab47653f9))
|
|
118
|
+
* ✅ remove log ([758c62a](https://github.com/jscutlery/devkit/commit/758c62a2ab42b6ae52a4ed917693cfda19b0a3b5))
|
|
119
|
+
* use UnitTestElement ([79db9a0](https://github.com/jscutlery/devkit/commit/79db9a0526a8caddfa2d040d32dcf0f54399856b))
|
|
120
|
+
* **cypress-harness:** ✅ add chainable typed methods to `getHarness` result ([32f7e86](https://github.com/jscutlery/devkit/commit/32f7e86c8ff5862fa4f7922bc4b4336a9729169d))
|
|
121
|
+
* **cypress-harness:** ✅ add chainable typed methods to `getRootHarness` result ([7f2936d](https://github.com/jscutlery/devkit/commit/7f2936d16ee22214c5f2cae5da2b8544292f09fc))
|
|
122
|
+
* **cypress-harness:** ✅ add getRootHarness ([27a1936](https://github.com/jscutlery/devkit/commit/27a19360aff0c280af027822f13d403e28b4990a))
|
|
123
|
+
* **cypress-harness:** ✅ log harness method name ([82c5744](https://github.com/jscutlery/devkit/commit/82c574451df323db96736a062dc9cea9a132657d))
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020 jscutlery
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jscutlery/cypress-harness",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
|
+
"repository": {
|
|
5
|
+
"url": "https://github.com/jscutlery/devkit"
|
|
6
|
+
},
|
|
4
7
|
"peerDependencies": {
|
|
5
8
|
"@angular/cdk": "*",
|
|
6
9
|
"cypress": "*",
|
|
7
10
|
"cypress-pipe": "*"
|
|
8
11
|
},
|
|
9
12
|
"main": "./src/index.js",
|
|
10
|
-
"typings": "./src/index.d.ts"
|
|
11
|
-
|
|
13
|
+
"typings": "./src/index.d.ts",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"zone.js": "~0.11.4"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -27,7 +27,7 @@ class CypressHarnessEnvironment extends testing_1.HarnessEnvironment {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
getAllRawElements(selector) {
|
|
30
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
|
|
31
31
|
return Array.from(this.rawRootElement.querySelectorAll(selector));
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -4,9 +4,9 @@ exports.getAllHarnesses = void 0;
|
|
|
4
4
|
const internals_1 = require("./internals");
|
|
5
5
|
function getAllHarnesses(query) {
|
|
6
6
|
/* Create a local variable so `pipe` can log name. */
|
|
7
|
-
const getAllHarnesses = ($documentRoot) => internals_1.createRootEnvironment($documentRoot).getAllHarnesses(query);
|
|
7
|
+
const getAllHarnesses = ($documentRoot) => (0, internals_1.createRootEnvironment)($documentRoot).getAllHarnesses(query);
|
|
8
8
|
return new Proxy({}, {
|
|
9
|
-
get: (_, prop) => internals_1.getDocumentRoot().pipe(getAllHarnesses)[prop],
|
|
9
|
+
get: (_, prop) => (0, internals_1.getDocumentRoot)().pipe(getAllHarnesses)[prop],
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
exports.getAllHarnesses = getAllHarnesses;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-harnesses.js","sourceRoot":"","sources":["../../../../../packages/cypress-harness/src/lib/get-all-harnesses.ts"],"names":[],"mappings":";;;AAGA,2CAAuF;AAEvF,SAAgB,eAAe,CAC7B,KAA4B;IAE5B,qDAAqD;IACrD,MAAM,eAAe,GAAG,CAAC,aAA8B,EAAE,EAAE,CACzD,iCAAqB,
|
|
1
|
+
{"version":3,"file":"get-all-harnesses.js","sourceRoot":"","sources":["../../../../../packages/cypress-harness/src/lib/get-all-harnesses.ts"],"names":[],"mappings":";;;AAGA,2CAAuF;AAEvF,SAAgB,eAAe,CAC7B,KAA4B;IAE5B,qDAAqD;IACrD,MAAM,eAAe,GAAG,CAAC,aAA8B,EAAE,EAAE,CACzD,IAAA,iCAAqB,EAAC,aAAa,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAE9D,OAAO,IAAI,KAAK,CAAC,EAAS,EAAE;QAC1B,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAE,IAAA,2BAAe,GAAE,CAAC,IAAI,CAAC,eAAe,CAAS,CAAC,IAAI,CAAC;KACzE,CAAC,CAAC;AACL,CAAC;AAVD,0CAUC"}
|
package/src/lib/get-harness.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.getHarness = void 0;
|
|
|
4
4
|
const internals_1 = require("./internals");
|
|
5
5
|
function getHarness(query) {
|
|
6
6
|
/* Create a local variable so `pipe` can log name. */
|
|
7
|
-
const getHarness = ($documentRoot) => internals_1.createRootEnvironment($documentRoot).getHarness(query);
|
|
7
|
+
const getHarness = ($documentRoot) => (0, internals_1.createRootEnvironment)($documentRoot).getHarness(query);
|
|
8
8
|
return new Proxy({}, {
|
|
9
|
-
get: (_, prop) => internals_1.addHarnessMethodsToChainer(internals_1.getDocumentRoot().pipe(getHarness))[prop],
|
|
9
|
+
get: (_, prop) => (0, internals_1.addHarnessMethodsToChainer)((0, internals_1.getDocumentRoot)().pipe(getHarness))[prop],
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
exports.getHarness = getHarness;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-harness.js","sourceRoot":"","sources":["../../../../../packages/cypress-harness/src/lib/get-harness.ts"],"names":[],"mappings":";;;AAGA,2CAKqB;AAErB,SAAgB,UAAU,CACxB,KAA4B;IAE5B,qDAAqD;IACrD,MAAM,UAAU,GAAG,CAAC,aAA8B,EAAE,EAAE,CACpD,iCAAqB,
|
|
1
|
+
{"version":3,"file":"get-harness.js","sourceRoot":"","sources":["../../../../../packages/cypress-harness/src/lib/get-harness.ts"],"names":[],"mappings":";;;AAGA,2CAKqB;AAErB,SAAgB,UAAU,CACxB,KAA4B;IAE5B,qDAAqD;IACrD,MAAM,UAAU,GAAG,CAAC,aAA8B,EAAE,EAAE,CACpD,IAAA,iCAAqB,EAAC,aAAa,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;IAEzD,OAAO,IAAI,KAAK,CAA4B,EAAS,EAAE;QACrD,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CACd,IAAA,sCAA0B,EAAC,IAAA,2BAAe,GAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAS,CAAC,IAAI,CAAC;KAChF,CAAC,CAAC;AACL,CAAC;AAXD,gCAWC"}
|
|
@@ -21,7 +21,7 @@ function getRootHarness(harnessType) {
|
|
|
21
21
|
}));
|
|
22
22
|
};
|
|
23
23
|
return new Proxy({}, {
|
|
24
|
-
get: (_, prop) => internals_1.addHarnessMethodsToChainer(internals_1.getDocumentRoot().pipe(getRootHarness))[prop],
|
|
24
|
+
get: (_, prop) => (0, internals_1.addHarnessMethodsToChainer)((0, internals_1.getDocumentRoot)().pipe(getRootHarness))[prop],
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
exports.getRootHarness = getRootHarness;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-root-harness.js","sourceRoot":"","sources":["../../../../../packages/cypress-harness/src/lib/get-root-harness.ts"],"names":[],"mappings":";;;AAMA,+EAA0E;AAC1E,2CAIqB;AAErB,SAAgB,cAAc,CAC5B,WAAiD;IAEjD,qDAAqD;IACrD,MAAM,cAAc,GAAG,CAAC,aAA8B,EAAE,EAAE;;QACxD,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,MAAM;QACV,6FAA6F;QAC7F,MAAA,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC;QACnC,iFAAiF;QACjF,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAEvC,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;SAC3C;QAED,OAAO,IAAI,WAAW,CACpB,IAAI,uDAAyB,CAAC,MAAM,EAAE;YACpC,YAAY;SACb,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,KAAK,CAA4B,EAAS,EAAE;QACrD,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CACd,sCAA0B,
|
|
1
|
+
{"version":3,"file":"get-root-harness.js","sourceRoot":"","sources":["../../../../../packages/cypress-harness/src/lib/get-root-harness.ts"],"names":[],"mappings":";;;AAMA,+EAA0E;AAC1E,2CAIqB;AAErB,SAAgB,cAAc,CAC5B,WAAiD;IAEjD,qDAAqD;IACrD,MAAM,cAAc,GAAG,CAAC,aAA8B,EAAE,EAAE;;QACxD,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,MAAM;QACV,6FAA6F;QAC7F,MAAA,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC;QACnC,iFAAiF;QACjF,YAAY,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAEvC,IAAI,MAAM,IAAI,IAAI,EAAE;YAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;SAC3C;QAED,OAAO,IAAI,WAAW,CACpB,IAAI,uDAAyB,CAAC,MAAM,EAAE;YACpC,YAAY;SACb,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,IAAI,KAAK,CAA4B,EAAS,EAAE;QACrD,GAAG,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CACd,IAAA,sCAA0B,EAAC,IAAA,2BAAe,GAAE,CAAC,IAAI,CAAC,cAAc,CAAC,CAAS,CAAC,IAAI,CAAC;KACpF,CAAC,CAAC;AACL,CAAC;AA3BD,wCA2BC"}
|
package/support.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import 'cypress-pipe';
|
|
|
3
3
|
* @hack we have to import `zone.js/dist/zone-testing`.
|
|
4
4
|
* This is due to implicit call to `resetFakeAsyncZone()`
|
|
5
5
|
* in `@angular/core/testing`.
|
|
6
|
-
* Cf. https://github.com/jscutlery/
|
|
6
|
+
* Cf. https://github.com/jscutlery/devkit/issues/2
|
|
7
7
|
*/
|
|
8
8
|
import 'zone.js/dist/zone';
|
|
9
9
|
import 'zone.js/dist/zone-testing';
|
package/support.js
CHANGED
|
@@ -5,7 +5,7 @@ require("cypress-pipe");
|
|
|
5
5
|
* @hack we have to import `zone.js/dist/zone-testing`.
|
|
6
6
|
* This is due to implicit call to `resetFakeAsyncZone()`
|
|
7
7
|
* in `@angular/core/testing`.
|
|
8
|
-
* Cf. https://github.com/jscutlery/
|
|
8
|
+
* Cf. https://github.com/jscutlery/devkit/issues/2
|
|
9
9
|
*/
|
|
10
10
|
require("zone.js/dist/zone");
|
|
11
11
|
/* @hack fixes "Mocha has already been patched with Zone" error. */
|