Skip to content

Commit 4d3ad9e

Browse files
committed
Merge branch 'master' into develop
2 parents cbb5e35 + f72d6c5 commit 4d3ad9e

File tree

5 files changed

+32
-7
lines changed

5 files changed

+32
-7
lines changed

npm/cypress-schematic/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [@cypress/schematic-v2.0.1](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.0...@cypress/schematic-v2.0.1) (2022-07-25)
2+
3+
4+
### Bug Fixes
5+
6+
* cypress-schematic ci issue with @types/eslint ([#22636](https://github.com/cypress-io/cypress/issues/22636)) ([62199b7](https://github.com/cypress-io/cypress/commit/62199b7379cbf600f045f9a8508b7d15af4c4359))
7+
* **cypress/schematic:** run configuration does not work anymore without baseUrl ([#21629](https://github.com/cypress-io/cypress/issues/21629)) ([3ed93e1](https://github.com/cypress-io/cypress/commit/3ed93e1dae8e540ab45cbbf4e3ff5e33630ff386))
8+
9+
# [@cypress/schematic-v2.0.1](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v2.0.0...@cypress/schematic-v2.0.1) (2022-07-25)
10+
11+
12+
### Bug Fixes
13+
14+
* cypress-schematic ci issue with @types/eslint ([#22636](https://github.com/cypress-io/cypress/issues/22636)) ([62199b7](https://github.com/cypress-io/cypress/commit/62199b7379cbf600f045f9a8508b7d15af4c4359))
15+
* **cypress/schematic:** run configuration does not work anymore without baseUrl ([#21629](https://github.com/cypress-io/cypress/issues/21629)) ([3ed93e1](https://github.com/cypress-io/cypress/commit/3ed93e1dae8e540ab45cbbf4e3ff5e33630ff386))
16+
117
# [@cypress/schematic-v2.0.0](https://github.com/cypress-io/cypress/compare/@cypress/schematic-v1.7.0...@cypress/schematic-v2.0.0) (2022-06-01)
218

319

npm/cypress-schematic/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ Read our docs to learn more about working with [reporters](https://on.cypress.io
178178

179179
### Running the builder with a different baseUrl
180180

181-
You can specify a `baseUrl` that is different than the one in `cypress.json`. To do this, add `baseUrl` to `configurations` like the following:
181+
You can specify a `baseUrl` that is different than the one in `cypress.json`. There are two ways to do this.
182+
183+
1. Add `baseUrl` to `configurations` like the following:
182184

183185
```json
184186
"cypress-open": {
@@ -204,6 +206,15 @@ You can specify a `baseUrl` that is different than the one in `cypress.json`. To
204206
}
205207
```
206208

209+
2. Add custom options to `devServerTarget` in `angular.json`:
210+
211+
```json
212+
"options": {
213+
"host": "localhost",
214+
"port": 4200
215+
},
216+
```
217+
207218
In order to prevent the application from building, add the following to the end of your command:
208219

209220
```shell

npm/cypress-schematic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:watch": "tsc -p tsconfig.json --watch",
1111
"clean12": "git checkout HEAD -- sandbox12 && git clean -f -d sandbox12",
1212
"launch12": "yarn link:sandbox12 && cd sandbox12 && ng add @cypress/schematic && cd ..",
13-
"launch:test12": "yarn link:sandbox12 && cd sandbox12 && ng add @cypress/schematic --e2eUpdate=true && cd ..",
13+
"launch:test12": "yarn link:sandbox12 && cd sandbox12 && ng add @cypress/schematic --e2eUpdate && cd ..",
1414
"link:sandbox12": "yarn link && cd sandbox12 && yarn link @cypress/schematic",
1515
"test": "mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json src/**/*.spec.ts",
1616
"test:e2e:sandbox12": "cd sandbox12 && ng run sandbox:cypress-run",

npm/cypress-schematic/src/builders/cypress/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,10 @@ function initCypress (userOptions: CypressBuilderOptions): Observable<BuilderOut
8383
}
8484

8585
if (userOptions.configFile === undefined) {
86-
options.config = {}
86+
options.config = { e2e: { baseUrl: userOptions.devServerBaseUrl as string } }
8787
}
8888

89-
if (userOptions.baseUrl) {
90-
options.config = { ...options.config, e2e: { ...options.config?.e2e, baseUrl: userOptions.baseUrl } }
91-
}
89+
options.config = { ...options.config }
9290

9391
const { watch, headless } = userOptions
9492

npm/webpack-dev-server/src/createWebpackDevServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function createWebpackDevServer (
5252
}
5353

5454
if (webpackDevServerMajorVersion === 3) {
55-
debug('using webpack-dev-server v4')
55+
debug('using webpack-dev-server v3')
5656

5757
return webpackDevServer3(config, webpackCompiler, finalWebpackConfig)
5858
}

0 commit comments

Comments
 (0)