@jscutlery/cypress-harness 0.3.12 → 0.4.0

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 CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ # [0.4.0](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.12...cypress-harness-0.4.0) (2022-12-01)
6
+
7
+
8
+ ### Features
9
+
10
+ * **cypress-harness:** ✨ provide getPreprocessorConfig util ([56d74c9](https://github.com/jscutlery/devkit/commit/56d74c954785b4cc30d4aac63d7e87015e4b858f))
11
+ * **cypress-harness:** ✨add support for Cypress 10 & 11 ([4d29535](https://github.com/jscutlery/devkit/commit/4d2953594f280031d8df0e5f429f74171ad236bf))
12
+
13
+
14
+
5
15
  ## [0.3.12](https://github.com/jscutlery/devkit/compare/cypress-harness-0.3.11...cypress-harness-0.3.12) (2022-06-24)
6
16
 
7
17
 
package/package.json CHANGED
@@ -1,17 +1,39 @@
1
1
  {
2
2
  "name": "@jscutlery/cypress-harness",
3
- "version": "0.3.12",
3
+ "version": "0.4.0",
4
4
  "repository": {
5
5
  "url": "https://github.com/jscutlery/devkit"
6
6
  },
7
+ "exports": {
8
+ ".": {
9
+ "types": "./src/index.d.ts",
10
+ "default": "./src/index.js",
11
+ "require": "./src/index.js"
12
+ },
13
+ "./preprocessor-config": {
14
+ "types": "./src/preprocessor-config.d.ts",
15
+ "default": "./src/preprocessor-config.js"
16
+ },
17
+ "./support": {
18
+ "types": "./src/support.d.ts",
19
+ "default": "./src/support.js"
20
+ },
21
+ "./support-ct": {
22
+ "types": "./src/support-ct.d.ts",
23
+ "default": "./src/support-ct.js"
24
+ }
25
+ },
26
+ "dependencies": {
27
+ "@cypress/webpack-batteries-included-preprocessor": "^2.2.4"
28
+ },
7
29
  "peerDependencies": {
8
30
  "@angular/cdk": "*",
31
+ "@cypress/webpack-preprocessor": "^5.0.0",
9
32
  "cypress": "*",
10
33
  "cypress-pipe": "*",
11
- "zone.js": "^0.11.4",
34
+ "zone.js": "*",
12
35
  "tslib": "2.4.0"
13
36
  },
14
37
  "main": "./src/index.js",
15
- "typings": "./src/index.d.ts",
16
- "dependencies": {}
38
+ "types": "./src/index.d.ts"
17
39
  }
@@ -0,0 +1,2 @@
1
+ /// <reference types="cypress" />
2
+ export declare function getPreprocessorConfig(): Pick<Cypress.Config, 'setupNodeEvents'>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPreprocessorConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const webpack_batteries_included_preprocessor_1 = tslib_1.__importDefault(require("@cypress/webpack-batteries-included-preprocessor"));
6
+ function getPreprocessorConfig() {
7
+ return {
8
+ setupNodeEvents(on) {
9
+ /**
10
+ * We need this setup in e2e tests to fix "package exports conditionals"
11
+ * support.
12
+ * In fact, without this, importing @angular/cdk/testing (used by harnesses)
13
+ * will simply fail with a "Module not found" error.
14
+ */
15
+ on('file:preprocessor', (0, webpack_batteries_included_preprocessor_1.default)({
16
+ typescript: require.resolve('typescript')
17
+ }));
18
+ }
19
+ };
20
+ }
21
+ exports.getPreprocessorConfig = getPreprocessorConfig;
22
+ //# sourceMappingURL=preprocessor-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preprocessor-config.js","sourceRoot":"","sources":["../../../../packages/cypress-harness/src/preprocessor-config.ts"],"names":[],"mappings":";;;;AAAA,uIAAmF;AAGnF,SAAgB,qBAAqB;IACnC,OAAO;QACL,eAAe,CAAC,EAAE;YAChB;;;;;eAKG;YACH,EAAE,CAAC,mBAAmB,EAAE,IAAA,iDAAmB,EAAC;gBAC1C,UAAU,EAAE,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC;aAC1C,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC;AACJ,CAAC;AAdD,sDAcC"}
@@ -0,0 +1 @@
1
+ import 'cypress-pipe';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require("cypress-pipe");
4
+ //# sourceMappingURL=support-ct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support-ct.js","sourceRoot":"","sources":["../../../../packages/cypress-harness/src/support-ct.ts"],"names":[],"mappings":";;AAAA,wBAAsB"}
File without changes
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../../../../packages/cypress-harness/src/support.ts"],"names":[],"mappings":";;AAAA,wBAAsB;AAEtB;;;;;GAKG;AACH,6BAA2B;AAE3B,mEAAmE;AACnE,8DAA8D;AAC7D,UAAkB,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;AAEvD,qCAAmC"}
package/support.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"support.js","sourceRoot":"","sources":["../../../packages/cypress-harness/support.ts"],"names":[],"mappings":";;AAAA,wBAAsB;AAEtB;;;;;GAKG;AACH,6BAA2B;AAC3B,mEAAmE;AACnE,8DAA8D;AAC7D,UAAkB,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC;AACvD,qCAAmC"}