Skip to content

Commit

Permalink
fix: Restart server on blockHost configuration change (#24257)
Browse files Browse the repository at this point in the history
Co-authored-by: Bill Glesias <bglesias@gmail.com>
  • Loading branch information
meisster and AtofStryker committed Oct 14, 2022
1 parent fa21345 commit 582ab6c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/config/src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const driverConfigOptions: Array<DriverConfigOption> = [
defaultValue: null,
validation: validate.isStringOrArrayOfStrings,
overrideLevel: 'any',
requireRestartOnChange: 'server',
}, {
name: 'chromeWebSecurity',
defaultValue: true,
Expand Down
11 changes: 11 additions & 0 deletions packages/config/test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,15 @@ describe('config/src/index', () => {
expect(errorFn).to.have.callCount(0)
})
})

describe('.validateNeedToRestartOnChange', () => {
it('returns the need to restart if given key has changed', () => {
const result = configUtil.validateNeedToRestartOnChange({ blockHosts: [] }, { blockHosts: ['https://example.com'] })

expect(result).to.eql({
server: true,
browser: false,
})
})
})
})

5 comments on commit 582ab6c

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 582ab6c Oct 14, 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.11.0/linux-x64/develop-582ab6ce5395c5f1e1bf87392887c1f0e441458e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 582ab6c Oct 14, 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.11.0/linux-arm64/develop-582ab6ce5395c5f1e1bf87392887c1f0e441458e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 582ab6c Oct 14, 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.11.0/darwin-arm64/develop-582ab6ce5395c5f1e1bf87392887c1f0e441458e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 582ab6c Oct 14, 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.11.0/darwin-x64/develop-582ab6ce5395c5f1e1bf87392887c1f0e441458e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 582ab6c Oct 14, 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.11.0/win32-x64/develop-582ab6ce5395c5f1e1bf87392887c1f0e441458e/cypress.tgz

Please sign in to comment.