@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 +2 -2
- package/index.js +4 -4
- package/package.json +6 -6
- package/plugins/cypress-preset.js +1 -1
- package/src/generators/component-configuration/schema.json +1 -1
- package/src/generators/configuration/configuration.js +3 -1
- package/src/generators/configuration/schema.json +1 -1
- package/src/generators/cypress-project/schema.json +1 -1
- package/src/generators/init/schema.json +1 -1
- package/src/generators/migrate-to-cypress-11/schema.json +1 -1
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
|
|
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
|
|
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(
|
|
12
|
-
/** @deprecated Use `configurationGenerator` instead. It will be removed in Nx
|
|
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(
|
|
15
|
-
/** @deprecated Add a new project and call `configurationGenerator` instead. It will be removed in Nx
|
|
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.
|
|
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.
|
|
38
|
-
"@nx/eslint": "17.3.
|
|
39
|
-
"@nx/js": "17.3.
|
|
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.
|
|
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]: {
|
|
@@ -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
|
|
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
|
};
|