@nx/cypress 17.3.0 → 17.3.2

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/index.d.ts CHANGED
@@ -2,10 +2,10 @@ import { configurationGenerator } from './src/generators/configuration/configura
2
2
  import { componentConfigurationGenerator } from './src/generators/component-configuration/component-configuration';
3
3
  import { cypressProjectGenerator as _cypressProjectGenerator } from './src/generators/cypress-project/cypress-project';
4
4
  export { configurationGenerator, componentConfigurationGenerator };
5
- /** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 18. */
5
+ /** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 19. */
6
6
  export declare const cypressComponentConfiguration: typeof componentConfigurationGenerator;
7
7
  export { configurationGenerator as cypressE2EConfigurationGenerator };
8
- /** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 18. */
8
+ /** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 19. */
9
9
  export declare const cypressProjectGenerator: typeof _cypressProjectGenerator;
10
10
  export { cypressInitGenerator } from './src/generators/init/init';
11
11
  export { migrateCypressProject } from './src/generators/migrate-to-cypress-11/migrate-to-cypress-11';
package/index.js CHANGED
@@ -8,11 +8,11 @@ const component_configuration_1 = require("./src/generators/component-configurat
8
8
  Object.defineProperty(exports, "componentConfigurationGenerator", { enumerable: true, get: function () { return component_configuration_1.componentConfigurationGenerator; } });
9
9
  const cypress_project_1 = require("./src/generators/cypress-project/cypress-project");
10
10
  // Maintain backwards compatibility with the old names in case community plugins used them.
11
- // TODO(v18): Remove old name
12
- /** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 18. */
11
+ // TODO(v19): Remove old name
12
+ /** @deprecated Use `configurationGenerator` instead. It will be removed in Nx 19. */
13
13
  exports.cypressComponentConfiguration = component_configuration_1.componentConfigurationGenerator;
14
- // TODO(v18): Remove project generator
15
- /** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 18. */
14
+ // TODO(v19): Remove project generator
15
+ /** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx 19. */
16
16
  exports.cypressProjectGenerator = cypress_project_1.cypressProjectGenerator;
17
17
  var init_1 = require("./src/generators/init/init");
18
18
  Object.defineProperty(exports, "cypressInitGenerator", { enumerable: true, get: function () { return init_1.cypressInitGenerator; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "17.3.0",
3
+ "version": "17.3.2",
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,14 +34,14 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "17.3.0",
38
- "@nx/eslint": "17.3.0",
39
- "@nx/js": "17.3.0",
37
+ "@nx/devkit": "17.3.2",
38
+ "@nx/eslint": "17.3.2",
39
+ "@nx/js": "17.3.2",
40
40
  "@phenomnomnominal/tsquery": "~5.0.1",
41
41
  "detect-port": "^1.5.1",
42
- "semver": "7.5.3",
42
+ "semver": "^7.5.3",
43
43
  "tslib": "^2.3.0",
44
- "@nrwl/cypress": "17.3.0"
44
+ "@nrwl/cypress": "17.3.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "cypress": ">= 3 < 14"
@@ -61,7 +61,7 @@ function nxE2EPreset(pathToConfig, options) {
61
61
  }*/ = {
62
62
  ...nxBaseCypressPreset(pathToConfig),
63
63
  fileServerFolder: '.',
64
- supportFile: `${basePath}/support/e2e.ts`,
64
+ supportFile: `${basePath}/support/e2e.{js,ts}`,
65
65
  specPattern: `${basePath}/**/*.cy.{js,jsx,ts,tsx}`,
66
66
  fixturesFolder: `${basePath}/fixtures`,
67
67
  [symbols_1.NX_PLUGIN_OPTIONS]: {
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxCypressComponentConfiguration",
4
4
  "cli": "nx",
5
5
  "title": "Set up Cypress component testing for a project",
@@ -158,7 +158,9 @@ function addTarget(tree, opts) {
158
158
  projectConfig.targets.e2e = {
159
159
  executor: '@nx/cypress:cypress',
160
160
  options: {
161
- cypressConfig: (0, devkit_1.joinPathFragments)(projectConfig.root, cyVersion && cyVersion < 10 ? 'cypress.json' : 'cypress.config.ts'),
161
+ cypressConfig: (0, devkit_1.joinPathFragments)(projectConfig.root, cyVersion && cyVersion < 10
162
+ ? 'cypress.json'
163
+ : `cypress.config.${opts.js ? 'js' : 'ts'}`),
162
164
  testingType: 'e2e',
163
165
  },
164
166
  };
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxCypressE2EConfigGenerator",
4
4
  "cli": "nx",
5
5
  "title": "Add a Cypress Configuration.",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxCypressProjectGeneratorSchema",
4
4
  "cli": "nx",
5
5
  "title": "Create Cypress Configuration for the workspace",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxCypressInit",
4
4
  "cli": "nx",
5
5
  "title": "Add Cypress Configuration to the workspace",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "http://json-schema.org/schema",
2
+ "$schema": "https://json-schema.org/schema",
3
3
  "$id": "NxCypressMigrateTo11",
4
4
  "cli": "nx",
5
5
  "title": "Migrate e2e project to Cypress 11",