Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhenkes committed Aug 1, 2022
2 parents cbb5e35 + f72d6c5 commit 4d3ad9e
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 7 deletions.
16 changes: 16 additions & 0 deletions npm/cypress-schematic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# [@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)


### Bug Fixes

* 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))
* **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))

# [@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)


### Bug Fixes

* 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))
* **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))

# [@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)


Expand Down
13 changes: 12 additions & 1 deletion npm/cypress-schematic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ Read our docs to learn more about working with [reporters](https://on.cypress.io

### Running the builder with a different baseUrl

You can specify a `baseUrl` that is different than the one in `cypress.json`. To do this, add `baseUrl` to `configurations` like the following:
You can specify a `baseUrl` that is different than the one in `cypress.json`. There are two ways to do this.

1. Add `baseUrl` to `configurations` like the following:

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

2. Add custom options to `devServerTarget` in `angular.json`:

```json
"options": {
"host": "localhost",
"port": 4200
},
```

In order to prevent the application from building, add the following to the end of your command:

```shell
Expand Down
2 changes: 1 addition & 1 deletion npm/cypress-schematic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:watch": "tsc -p tsconfig.json --watch",
"clean12": "git checkout HEAD -- sandbox12 && git clean -f -d sandbox12",
"launch12": "yarn link:sandbox12 && cd sandbox12 && ng add @cypress/schematic && cd ..",
"launch:test12": "yarn link:sandbox12 && cd sandbox12 && ng add @cypress/schematic --e2eUpdate=true && cd ..",
"launch:test12": "yarn link:sandbox12 && cd sandbox12 && ng add @cypress/schematic --e2eUpdate && cd ..",
"link:sandbox12": "yarn link && cd sandbox12 && yarn link @cypress/schematic",
"test": "mocha -r @packages/ts/register --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json src/**/*.spec.ts",
"test:e2e:sandbox12": "cd sandbox12 && ng run sandbox:cypress-run",
Expand Down
6 changes: 2 additions & 4 deletions npm/cypress-schematic/src/builders/cypress/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,10 @@ function initCypress (userOptions: CypressBuilderOptions): Observable<BuilderOut
}

if (userOptions.configFile === undefined) {
options.config = {}
options.config = { e2e: { baseUrl: userOptions.devServerBaseUrl as string } }
}

if (userOptions.baseUrl) {
options.config = { ...options.config, e2e: { ...options.config?.e2e, baseUrl: userOptions.baseUrl } }
}
options.config = { ...options.config }

const { watch, headless } = userOptions

Expand Down
2 changes: 1 addition & 1 deletion npm/webpack-dev-server/src/createWebpackDevServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function createWebpackDevServer (
}

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

return webpackDevServer3(config, webpackCompiler, finalWebpackConfig)
}
Expand Down

5 comments on commit 4d3ad9e

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4d3ad9e Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/linux-x64/develop-4d3ad9edaa9b4b19ed10094279f72ed5657b851c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4d3ad9e Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/linux-arm64/develop-4d3ad9edaa9b4b19ed10094279f72ed5657b851c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4d3ad9e Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/darwin-arm64/develop-4d3ad9edaa9b4b19ed10094279f72ed5657b851c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4d3ad9e Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/darwin-x64/develop-4d3ad9edaa9b4b19ed10094279f72ed5657b851c/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 4d3ad9e Aug 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/10.4.0/win32-x64/develop-4d3ad9edaa9b4b19ed10094279f72ed5657b851c/cypress.tgz

Please sign in to comment.