@nx/cypress 16.0.0-beta.5 → 16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "16.0.0-beta.5",
3
+ "version": "16.0.0-beta.6",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
6
6
  "repository": {
@@ -34,10 +34,10 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nrwl/cypress": "16.0.0-beta.5",
38
- "@nx/devkit": "16.0.0-beta.5",
39
- "@nx/js": "16.0.0-beta.5",
40
- "@nx/linter": "16.0.0-beta.5",
37
+ "@nrwl/cypress": "16.0.0-beta.6",
38
+ "@nx/devkit": "16.0.0-beta.6",
39
+ "@nx/js": "16.0.0-beta.6",
40
+ "@nx/linter": "16.0.0-beta.6",
41
41
  "@phenomnomnominal/tsquery": "~5.0.1",
42
42
  "detect-port": "^1.5.1",
43
43
  "dotenv": "~10.0.0",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "types": "./index.d.ts",
58
- "gitHead": "04fed26279d04c2b02663df5872c6857eb7914bf"
58
+ "gitHead": "b719222d42a4e11bcdd537ef818c2bea130112f8"
59
59
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="cypress" />
2
+
2
3
  // ***********************************************
3
4
  // This example commands.ts shows you how to
4
5
  // create various custom commands and overwrite
@@ -9,18 +10,25 @@
9
10
  // https://on.cypress.io/custom-commands
10
11
  // ***********************************************
11
12
 
13
+ declare global {
12
14
  // eslint-disable-next-line @typescript-eslint/no-namespace
13
- declare namespace Cypress {
15
+ namespace Cypress {
14
16
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15
17
  interface Chainable<Subject> {
16
18
  login(email: string, password: string): void;
19
+ // TODO: define a mount command
20
+ // mount: typeof mount;
17
21
  }
18
22
  }
23
+ }
24
+
25
+ // Cypress.Commands.add('mount', mount)
26
+
19
27
  //
20
28
  // -- This is a parent command --
21
- Cypress.Commands.add('login', (email, password) => {
22
- console.log('Custom command example: Login', email, password);
23
- });
29
+ Cypress.Commands.add('login', (email, password) => {
30
+ console.log('Custom command example: Login', email, password);
31
+ });
24
32
  //
25
33
  // -- This is a child command --
26
34
  // Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
- "outDir": "<%= offsetFromRoot %>../dist/out-tsc",
4
+ "outDir": "<%= offsetFromRoot %>dist/out-tsc",
5
5
  "module": "commonjs",
6
6
  "types": ["cypress", "node"]
7
7
  },