chore(deps): Update dependency eslint to version 6.8.0 🌟 (#6509)

* chore(deps): Update eslint to 6.8.0 🌟

* fix missing dangling commas for linter

* fix missing dangling commas for linter

* more lint fixes

* yarn lock

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
This commit is contained in:
renovate[bot]
2020-02-25 00:09:47 +06:30
committed by GitHub
parent 844a1bd12c
commit eab801ae3f
95 changed files with 440 additions and 387 deletions

View File

@@ -171,7 +171,7 @@ module.exports = {
debug('invalid CYPRESS_ENV value', process.env.CYPRESS_ENV)
return errors.exitWithError(errors.errors.invalidCypressEnv)(
`CYPRESS_ENV=${process.env.CYPRESS_ENV}`
`CYPRESS_ENV=${process.env.CYPRESS_ENV}`,
)
}
@@ -251,7 +251,7 @@ module.exports = {
.command('install')
.usage('[options]')
.description(
'Installs the Cypress executable matching this package\'s version'
'Installs the Cypress executable matching this package\'s version',
)
.option('-f, --force', text('forceInstall'))
.action((opts) => {
@@ -264,7 +264,7 @@ module.exports = {
.command('verify')
.usage('[options]')
.description(
'Verifies that Cypress is installed correctly and executable'
'Verifies that Cypress is installed correctly and executable',
)
.option('--dev', text('dev'), coerceFalse)
.action((opts) => {

View File

@@ -36,7 +36,7 @@ const failedUnzip = {
const missingApp = (binaryDir) => {
return {
description: `No version of Cypress is installed in: ${chalk.cyan(
binaryDir
binaryDir,
)}`,
solution: stripIndent`
\nPlease reinstall Cypress by running: ${chalk.cyan('cypress install')}
@@ -214,7 +214,7 @@ const removed = {
CYPRESS_BINARY_VERSION: {
description: stripIndent`
The environment variable CYPRESS_BINARY_VERSION has been renamed to CYPRESS_INSTALL_BINARY as of version ${chalk.green(
'3.0.0'
'3.0.0',
)}
`,
solution: stripIndent`
@@ -224,7 +224,7 @@ const removed = {
CYPRESS_SKIP_BINARY_INSTALL: {
description: stripIndent`
The environment variable CYPRESS_SKIP_BINARY_INSTALL has been removed as of version ${chalk.green(
'3.0.0'
'3.0.0',
)}
`,
solution: stripIndent`
@@ -287,7 +287,7 @@ function formErrorText (info, msg, prevMessage) {
la(
is.unemptyString(obj.description),
'expected error description to be text',
obj.description
obj.description,
)
// assuming that if there the solution is a function it will handle
@@ -307,7 +307,7 @@ function formErrorText (info, msg, prevMessage) {
la(
is.unemptyString(obj.solution),
'expected error solution to be text',
obj.solution
obj.solution,
)
add(`

View File

@@ -102,7 +102,7 @@ module.exports = {
// the launch cmd to be 'npm run dev'
executable = 'node'
args.unshift(
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js')
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'),
)
debug('in dev mode the args became %o', args)

View File

@@ -121,7 +121,7 @@ const verifyDownloadedFile = (filename, expectedSize, expectedChecksum) => {
debug(text)
throw new Error(text)
}
},
)
}
@@ -253,7 +253,7 @@ const downloadFromUrl = ({ url, downloadDestination, progress }) => {
Failed downloading the Cypress binary.
Response code: ${response.statusCode}
Response message: ${response.statusMessage}
`
`,
)
reject(err)

View File

@@ -50,7 +50,7 @@ const displayCompletionMsg = () => {
logger.log()
logger.log(
'You can now open Cypress by running:',
chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open')
chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open'),
)
logger.log()
@@ -88,7 +88,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => {
util.setTaskTitle(
task,
util.titleize(chalk.green('Downloaded Cypress')),
rendererOptions.renderer
rendererOptions.renderer,
)
})
},
@@ -115,7 +115,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => {
util.setTaskTitle(
task,
util.titleize(chalk.green('Finished Installation'), chalk.gray(installDir)),
rendererOptions.renderer
rendererOptions.renderer,
)
})
},
@@ -160,7 +160,7 @@ const start = (options = {}) => {
debug('environment variable CYPRESS_INSTALL_BINARY = 0, skipping install')
logger.log(
stripIndent`
${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`
${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`,
)
logger.log()
@@ -184,7 +184,7 @@ const start = (options = {}) => {
${chalk.yellow('Note:')} Overriding Cypress cache directory to: ${chalk.cyan(envCache)}
Previous installs of Cypress may not be found.
`
`,
)
logger.log()
@@ -254,7 +254,7 @@ const start = (options = {}) => {
Instead we will install version: ${chalk.green(needVersion)}
These versions may not work properly together.
`)
`),
)
logger.log()
@@ -337,7 +337,7 @@ const unzipTask = ({ zipFilePath, installDir, progress, rendererOptions }) => {
util.setTaskTitle(
task,
util.titleize(chalk.green('Unzipped Cypress')),
rendererOptions.renderer
rendererOptions.renderer,
)
})
},
@@ -355,7 +355,7 @@ const progessify = (task, title) => {
util.setTaskTitle(
task,
util.titleize(title, percentComplete, remaining),
getRendererOptions().renderer
getRendererOptions().renderer,
)
}
}

View File

@@ -150,7 +150,7 @@ const writeBinaryVerifiedAsync = (verified, binaryDir) => {
return fs.outputJsonAsync(
getBinaryStatePath(binaryDir),
_.extend(contents, { verified }),
{ spaces: 2 }
{ spaces: 2 },
)
})
}

View File

@@ -55,7 +55,7 @@ const runSmokeTest = (binaryDir, options) => {
debug('error timedOut is true')
return throwFormErrorText(
errors.smokeTestFailure(smokeTestCommand, true)
errors.smokeTestFailure(smokeTestCommand, true),
)(errMessage)
}
@@ -90,7 +90,7 @@ const runSmokeTest = (binaryDir, options) => {
if (options.dev) {
executable = 'node'
args.unshift(
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js')
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'),
)
}
@@ -208,9 +208,9 @@ function testBinary (version, binaryDir, options) {
task,
util.titleize(
chalk.green('Verified Cypress!'),
chalk.gray(binaryDir)
chalk.gray(binaryDir),
),
rendererOptions.renderer
rendererOptions.renderer,
)
})
},

View File

@@ -78,7 +78,7 @@
"cross-env": "6.0.3",
"dependency-check": "3.4.1",
"dtslint": "0.9.0",
"eslint": "6.1.0",
"eslint": "6.8.0",
"execa-wrap": "1.4.0",
"hasha": "5.0.0",
"mocha": "6.2.2",

View File

@@ -32,14 +32,14 @@ shell.sed(
'-i',
'<reference types="chai" />',
'<reference path="../chai/index.d.ts" />',
join('types', 'chai-jquery', 'index.d.ts')
join('types', 'chai-jquery', 'index.d.ts'),
)
shell.sed(
'-i',
'<reference types="jquery" />',
'<reference path="../jquery/index.d.ts" />',
join('types', 'chai-jquery', 'index.d.ts')
join('types', 'chai-jquery', 'index.d.ts'),
)
const sinonChaiFilename = join('types', 'sinon-chai', 'index.d.ts')
@@ -48,7 +48,7 @@ shell.sed(
'-i',
'<reference types="chai" />',
'<reference path="../chai/index.d.ts" />',
sinonChaiFilename
sinonChaiFilename,
)
// also use relative import via path for sinon-chai
@@ -57,7 +57,7 @@ shell.sed(
'-i',
'<reference types="sinon" />',
'<reference path="../sinon/index.d.ts" />',
sinonChaiFilename
sinonChaiFilename,
)
// and an import sinon line to be changed to relative path

View File

@@ -42,7 +42,7 @@ describe('exec open', function () {
return open.start({ env: 'host=http://localhost:1337,name=brian' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--env', 'host=http://localhost:1337,name=brian']
['--env', 'host=http://localhost:1337,name=brian'],
)
})
})
@@ -51,7 +51,7 @@ describe('exec open', function () {
return open.start({ config: 'watchForFileChanges=false,baseUrl=localhost' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--config', 'watchForFileChanges=false,baseUrl=localhost']
['--config', 'watchForFileChanges=false,baseUrl=localhost'],
)
})
})
@@ -60,7 +60,7 @@ describe('exec open', function () {
return open.start({ configFile: false })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--config-file', false]
['--config-file', false],
)
})
})
@@ -69,7 +69,7 @@ describe('exec open', function () {
return open.start({ configFile: 'special-cypress.json' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--config-file', 'special-cypress.json']
['--config-file', 'special-cypress.json'],
)
})
})
@@ -80,7 +80,7 @@ describe('exec open', function () {
return open.start()
.then(() => {
expect(spawn.start).to.be.calledWith(
['--project', process.cwd()]
['--project', process.cwd()],
)
})
})
@@ -91,7 +91,7 @@ describe('exec open', function () {
return open.start({ global: true })
.then(() => {
expect(spawn.start).not.to.be.calledWith(
['--project', process.cwd()]
['--project', process.cwd()],
)
})
})
@@ -102,7 +102,7 @@ describe('exec open', function () {
return open.start({ project: '/path/to/project' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--project', '/path/to/project']
['--project', '/path/to/project'],
)
})
})
@@ -111,7 +111,7 @@ describe('exec open', function () {
return open.start({ project: '/path/to/project' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--project', '/path/to/project']
['--project', '/path/to/project'],
)
})
})

View File

@@ -100,7 +100,7 @@ describe('exec run', function () {
return run.start({ configFile: false })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--run-project', process.cwd(), '--config-file', false]
['--run-project', process.cwd(), '--config-file', false],
)
})
})
@@ -109,7 +109,7 @@ describe('exec run', function () {
return run.start({ configFile: 'special-cypress.json' })
.then(() => {
expect(spawn.start).to.be.calledWith(
['--run-project', process.cwd(), '--config-file', 'special-cypress.json']
['--run-project', process.cwd(), '--config-file', 'special-cypress.json'],
)
})
})

View File

@@ -68,7 +68,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'skip installation 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -92,7 +92,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'specify version in env vars 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -195,7 +195,7 @@ describe('/lib/tasks/install', function () {
.then(() => {
return snapshot(
'version already installed - cypress install 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -207,7 +207,7 @@ describe('/lib/tasks/install', function () {
.then(() => {
snapshot(
'version already installed - postInstall 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -231,7 +231,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'continues installing on failure 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -254,12 +254,12 @@ describe('/lib/tasks/install', function () {
// cleans up the zip file
expect(fs.removeAsync).to.be.calledWith(
downloadDestination
downloadDestination,
)
snapshot(
'installs without existing installation 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -282,7 +282,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'installed version does not match needed version 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -305,7 +305,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'forcing true always installs 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -330,7 +330,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'warning installing as global 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -347,7 +347,7 @@ describe('/lib/tasks/install', function () {
it('uses verbose renderer', function () {
snapshot(
'installing in ci 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -371,7 +371,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'invalid cache directory 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -441,7 +441,7 @@ describe('/lib/tasks/install', function () {
snapshot(
'error for removed CYPRESS_BINARY_VERSION 1',
normalize(this.stdout.toString())
normalize(this.stdout.toString()),
)
})
})
@@ -455,7 +455,7 @@ describe('/lib/tasks/install', function () {
.then(() => {
return snapshot(
'silent install 1',
normalize(`[no output]${this.stdout.toString()}`)
normalize(`[no output]${this.stdout.toString()}`),
)
})
})

View File

@@ -20,7 +20,7 @@ const binaryPkgPath = path.join(
'Contents',
'Resources',
'app',
'package.json'
'package.json',
)
describe('lib/tasks/state', function () {
@@ -88,7 +88,7 @@ describe('lib/tasks/state', function () {
'.cache/Cypress/1.2.3/Cypress.app/Contents/MacOS/Cypress'
expect(state.getPathToExecutable(state.getBinaryDir())).to.equal(
macExecutable
macExecutable,
)
})
@@ -97,7 +97,7 @@ describe('lib/tasks/state', function () {
const linuxExecutable = '.cache/Cypress/1.2.3/Cypress/Cypress'
expect(state.getPathToExecutable(state.getBinaryDir())).to.equal(
linuxExecutable
linuxExecutable,
)
})
@@ -110,7 +110,7 @@ describe('lib/tasks/state', function () {
const customBinaryDir = 'home/downloads/cypress.app'
expect(state.getPathToExecutable(customBinaryDir)).to.equal(
'home/downloads/cypress.app/Contents/MacOS/Cypress'
'home/downloads/cypress.app/Contents/MacOS/Cypress',
)
})
})
@@ -118,7 +118,7 @@ describe('lib/tasks/state', function () {
context('.getBinaryDir', function () {
it('resolves path on macOS', function () {
expect(state.getBinaryDir()).to.equal(
path.join(versionDir, 'Cypress.app')
path.join(versionDir, 'Cypress.app'),
)
})
@@ -142,7 +142,7 @@ describe('lib/tasks/state', function () {
it('resolves path to binary/installation from version', function () {
expect(state.getBinaryDir('4.5.6')).to.be.equal(
path.join(cacheDir, '4.5.6', 'Cypress.app')
path.join(cacheDir, '4.5.6', 'Cypress.app'),
)
})
@@ -221,10 +221,10 @@ describe('lib/tasks/state', function () {
() => {
return expect(fs.outputJsonAsync).to.be.calledWith(
binaryStateFilename,
{ verified: true }
{ verified: true },
)
},
{ spaces: 2 }
{ spaces: 2 },
)
})
@@ -237,7 +237,7 @@ describe('lib/tasks/state', function () {
return expect(fs.outputJsonAsync).to.be.calledWith(
binaryStateFilename,
{ verified: false },
{ spaces: 2 }
{ spaces: 2 },
)
})
})
@@ -310,7 +310,7 @@ describe('lib/tasks/state', function () {
return state
.parseRealPlatformBinaryFolderAsync(
'/Documents/Cypress.app/Contents/MacOS/Cypress'
'/Documents/Cypress.app/Contents/MacOS/Cypress',
)
.then((path) => {
return expect(path).to.eql('/Documents/Cypress.app')

View File

@@ -82,7 +82,7 @@ context('lib/tasks/verify', () => {
snapshot(
'no version of Cypress installed 1',
normalize(stdout.toString())
normalize(stdout.toString()),
)
})
})
@@ -159,7 +159,7 @@ context('lib/tasks/verify', () => {
.catch(() => {
return snapshot(
'warning installed version does not match verified version 1',
normalize(stdout.toString())
normalize(stdout.toString()),
)
})
})
@@ -323,7 +323,7 @@ context('lib/tasks/verify', () => {
.then(() => {
return snapshot(
'fails verifying Cypress 1',
normalize(slice(stdout.toString()))
normalize(slice(stdout.toString())),
)
})
})
@@ -407,7 +407,7 @@ context('lib/tasks/verify', () => {
expect(util.exec).to.have.been.calledTwice
// user should have been warned
expect(logger.warn).to.have.been.calledWithMatch(
'This is likely due to a misconfigured DISPLAY environment variable.'
'This is likely due to a misconfigured DISPLAY environment variable.',
)
})
})
@@ -502,7 +502,7 @@ context('lib/tasks/verify', () => {
return snapshot(
'Cypress non-executable permissions 1',
normalize(stdout.toString())
normalize(stdout.toString()),
)
})
})
@@ -517,7 +517,7 @@ context('lib/tasks/verify', () => {
return verify.start().then(() => {
return snapshot(
'current version has not been verified 1',
normalize(stdout.toString())
normalize(stdout.toString()),
)
})
})
@@ -532,7 +532,7 @@ context('lib/tasks/verify', () => {
return verify.start().then(() => {
return snapshot(
'different version installed 1',
normalize(stdout.toString())
normalize(stdout.toString()),
)
})
})
@@ -549,7 +549,7 @@ context('lib/tasks/verify', () => {
return verify.start().then(() => {
return snapshot(
'silent verify 1',
normalize(`[no output]${stdout.toString()}`)
normalize(`[no output]${stdout.toString()}`),
)
})
})
@@ -712,7 +712,7 @@ context('lib/tasks/verify', () => {
logger.error(err)
snapshot(
`${platform}: error when invalid CYPRESS_RUN_BINARY 1`,
normalize(stdout.toString())
normalize(stdout.toString()),
)
})
})

View File

@@ -20,7 +20,7 @@ const normalize = (str) => {
.split('\n')
.map(removeExcessWhiteSpace)
.join('\n')
.replace(downloadQueryRe, '?platform=OS&arch=ARCH')
.replace(downloadQueryRe, '?platform=OS&arch=ARCH'),
)
}

View File

@@ -121,7 +121,7 @@
"decaffeinate": "6.0.9",
"del": "3.0.0",
"electron-builder": "20.39.0",
"eslint": "6.1.0",
"eslint": "6.8.0",
"eslint-plugin-cypress": "2.10.1",
"eslint-plugin-json-format": "2.0.0",
"eslint-plugin-mocha": "6.1.0",

View File

@@ -150,7 +150,7 @@ describe('Set Up Project', function () {
it('selects personal org by default', function () {
cy.get('.organizations-select').contains(
'Your personal organization'
'Your personal organization',
)
cy.get('.privacy-radio').should('be.visible')

View File

@@ -120,7 +120,7 @@ const closeProject = (project) => {
return Promise.join(
closeBrowser(project),
ipc.closeProject()
ipc.closeProject(),
)
}

View File

@@ -207,7 +207,7 @@ const ensureElIsNotCovered = function (cy, win, $el, fromElViewport, options, lo
// start nudging
return scrollContainers(
getAllScrollables([], $el)
getAllScrollables([], $el),
)
}
}

View File

@@ -113,7 +113,7 @@ const create = function (state, queue, retryFn) {
return cmd.get('fn').originalFn.apply(
state('ctx'),
[subject].concat(cmd.get('args'))
[subject].concat(cmd.get('args')),
)
})
}

View File

@@ -54,8 +54,8 @@ chai.use((chai, u) => {
'chai.invalid_jquery_obj', {
assertion: method,
subject: $utils.stringifyActual(obj),
}
)
},
),
)
throw err
@@ -282,7 +282,7 @@ chai.use((chai, u) => {
obj.is(selector) || !!obj.find(selector).length,
'expected #{this} to contain #{exp}',
'expected #{this} not to contain #{exp}',
text
text,
)
})
}
@@ -324,7 +324,7 @@ chai.use((chai, u) => {
`expected '${node}' to have a length of \#{exp} but got \#{act}`,
`expected '${node}' to not have a length of \#{act}`,
length,
obj.length
obj.length,
)
} catch (e1) {
e1.node = node
@@ -384,7 +384,7 @@ chai.use((chai, u) => {
'expected \#{act} to exist in the DOM',
'expected \#{act} not to exist in the DOM',
node,
node
node,
)
} catch (e1) {
e1.node = node

View File

@@ -255,7 +255,7 @@ module.exports = (Commands, Cypress, cy, state, config) => {
formatMouseEvents(domEvents.clickEvents[1]),
formatMouseEvents({
dblclick: domEvents.dblclick,
})
}),
),
}
},
@@ -286,7 +286,7 @@ module.exports = (Commands, Cypress, cy, state, config) => {
data: _.concat(
formatMouseEvents(domEvents.moveEvents.events),
formatMouseEvents(domEvents.clickEvents),
formatMouseEvents(domEvents.contextmenuEvent)
formatMouseEvents(domEvents.contextmenuEvent),
),
}
},

View File

@@ -528,6 +528,6 @@ module.exports = function (Commands, Cypress, cy, state, config) {
{
type,
clear,
}
},
)
}

View File

@@ -231,7 +231,7 @@ const shouldIgnoreEvent = <
K extends { [key in T]?: boolean }
>(
eventName: T,
options: K
options: K,
) => {
return options[eventName] === false
}
@@ -312,7 +312,7 @@ const validateTyping = (
currentIndex: number,
onFail: Function,
skipCheckUntilIndex: number | undefined,
force: boolean
force: boolean,
) => {
const chars = joinKeyArrayToString(keys.slice(currentIndex))
const allChars = joinKeyArrayToString(keys)
@@ -652,13 +652,13 @@ export class Keyboard {
// ignore empty strings
return _.filter(_.split(chars, ''))
}
},
)
}
const keyDetailsArr = _.map(
keys,
getKeyDetails(options.onNoMatchingSpecialChars)
getKeyDetails(options.onNoMatchingSpecialChars),
)
const numKeys = countNumIndividualKeyStrokes(keyDetailsArr)
@@ -694,7 +694,7 @@ export class Keyboard {
currentKeyIndex,
options.onFail,
_skipCheckUntilIndex,
options.force
options.force,
)
_skipCheckUntilIndex = skipCheckUntilIndex
@@ -725,7 +725,7 @@ export class Keyboard {
return $elements.setNativeProp(
activeEl as $elements.HTMLTextLikeInputElement,
'value',
valToSet
valToSet,
)
}
}
@@ -744,7 +744,7 @@ export class Keyboard {
return null
}
}
},
)
// we will only press each modifier once, so only find unique modifiers
@@ -778,7 +778,7 @@ export class Keyboard {
el: HTMLElement,
eventType: KeyEventType,
keyDetails: KeyDetails,
opts: typeOptions
opts: typeOptions,
) {
debug('fireSimulatedEvent', eventType, keyDetails)
@@ -874,7 +874,7 @@ export class Keyboard {
detail: 0,
view: win,
},
_.isUndefined
_.isUndefined,
),
}
@@ -890,7 +890,7 @@ export class Keyboard {
eventOptions.cancelable,
eventOptions.view,
eventOptions.data,
1
1,
// eventOptions.locale
)
/*1: IE11 Input method param*/
@@ -991,7 +991,7 @@ export class Keyboard {
debug(
'typeSimulatedKey options:',
_.pick(options, ['keydown', 'keypress', 'textInput', 'input', 'id'])
_.pick(options, ['keydown', 'keypress', 'textInput', 'input', 'id']),
)
if (

View File

@@ -408,7 +408,7 @@ const create = (state, keyboard, focused, Cypress) => {
// TODO: pointer events should have fractional coordinates, not rounded
let pointerdown = sendPointerdown(
el,
pointerEvtOptions
pointerEvtOptions,
)
const pointerdownPrevented = pointerdown.preventedDefault

View File

@@ -73,7 +73,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
_.includes(actual, expected),
`expected #{this} to contain ${message}`,
`expected #{this} not to contain ${notMessage}`,
...args
...args,
)
}
@@ -83,7 +83,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
actual === expected,
`expected #{this} to have ${message}`,
`expected #{this} not to have ${notMessage}`,
...args
...args,
)
}
@@ -106,7 +106,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
wrap(this).hasClass(className),
'expected #{this} to have class #{exp}',
'expected #{this} not to have class #{exp}',
className
className,
)
})
@@ -117,7 +117,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
wrap(this).prop('id') === id,
'expected #{this} to have id #{exp}',
'expected #{this} not to have id #{exp}',
id
id,
)
})
@@ -127,7 +127,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
'html',
'expected #{this} to have HTML #{exp}',
'expected #{this} not to have HTML #{exp}',
html
html,
)
const actual = wrap(this).html()
@@ -140,7 +140,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
'HTML #{exp}, but the HTML was #{act}',
'HTML #{exp}',
html,
actual
actual,
)
})
@@ -150,7 +150,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
'text',
'expected #{this} to have text #{exp}',
'expected #{this} not to have text #{exp}',
text
text,
)
const actual = wrap(this).text()
@@ -163,7 +163,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
'text #{exp}, but the text was #{act}',
'text #{exp}',
text,
actual
actual,
)
})
@@ -173,7 +173,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
'value',
'expected #{this} to have value #{exp}',
'expected #{this} not to have value #{exp}',
value
value,
)
const actual = wrap(this).val()
@@ -186,7 +186,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
'value #{exp}, but the value was #{act}',
'value #{exp}',
value,
actual
actual,
)
})
@@ -197,7 +197,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
wrap(this).has(selector).length > 0,
'expected #{this} to have descendants #{exp}',
'expected #{this} not to have descendants #{exp}',
selector
selector,
)
})
@@ -210,7 +210,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
wrap(this).is(':empty'),
'expected #{this} to be #{exp}',
'expected #{this} not to be #{exp}',
'empty'
'empty',
)
}
@@ -229,7 +229,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
wrap(this).is(selector),
'expected #{this} to match #{exp}',
'expected #{this} not to match #{exp}',
selector
selector,
)
}
@@ -245,7 +245,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
wrap(this).is(`:${selector}`),
'expected #{this} to be #{exp}',
'expected #{this} not to be #{exp}',
selectorName
selectorName,
)
})
})
@@ -257,7 +257,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
attr,
`expected #{this} to have ${description} #{exp}`,
`expected #{this} not to have ${description} #{exp}`,
name
name,
)
const actual = wrap(this)[attr](name)
@@ -270,7 +270,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
actual !== undefined,
`expected #{this} to have ${description} #{exp}`,
`expected #{this} not to have ${description} #{exp}`,
name
name,
)
// change the subject
@@ -297,7 +297,7 @@ const $chaiJquery = (chai, chaiUtils, callbacks = {}) => {
message,
negatedMessage,
val,
actual
actual,
)
}

View File

@@ -369,7 +369,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) {
current: command.get('name'),
called: enqueuedCmd.name,
},
}
},
)
}
@@ -390,7 +390,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) {
current: command.get('name'),
returned: ret,
},
}
},
)
}
@@ -988,7 +988,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) {
current: current.get('name'),
called: name,
},
}
},
)
}
}
@@ -1033,7 +1033,7 @@ const create = function (specWindow, Cypress, Cookies, state, config, log) {
now (name, ...args) {
return Promise.resolve(
commandFns[name].apply(cy, args)
commandFns[name].apply(cy, args),
)
},

View File

@@ -169,7 +169,7 @@ const wrapAll = (runnable) => {
return _.extend(
{},
$utils.reduceProps(runnable, RUNNABLE_PROPS),
$utils.reduceProps(runnable, RUNNABLE_LOGS)
$utils.reduceProps(runnable, RUNNABLE_LOGS),
)
}
@@ -743,7 +743,7 @@ const _runnerListeners = function (_runner, Cypress, _emissions, getTestById, ge
$errUtils.errMsgByPath('uncaught.error_in_hook', {
parentTitle,
hookName,
})
}),
)
}
@@ -914,7 +914,7 @@ const create = function (specWindow, mocha, Cypress, cy) {
setTests,
onRunnable,
onLogsById,
getTestId
getTestId,
)
},

View File

@@ -562,7 +562,7 @@ const isDisabled = ($el: JQuery) => {
}
const isReadOnlyInputOrTextarea = (
el: HTMLInputElement | HTMLTextAreaElement
el: HTMLInputElement | HTMLTextAreaElement,
) => {
return el.readOnly
}

View File

@@ -270,7 +270,7 @@ const deleteLeftOfCursor = function (el) {
'modify',
'extend',
'backward',
'character'
'character',
)
}

View File

@@ -1061,7 +1061,7 @@ describe('src/cy/commands/assertions', () => {
() => expect(`\'cypress\'`).to.eq(`\'cypress\'`),
// ****'cypress'**** -> ** for emphasizing result string + ** for emphasizing the entire result.
`expected **'cypress'** to equal ****'cypress'****`,
done
done,
)
})
@@ -1073,7 +1073,7 @@ describe('src/cy/commands/assertions', () => {
})
},
`expected **<body>** to contain **div**`,
done
done,
)
})
@@ -1085,7 +1085,7 @@ describe('src/cy/commands/assertions', () => {
expectMarkdown(
() => expect({ foo: 'bar' }).to.deep.eq({ foo: 'bar' }),
`expected **{ foo: bar }** to deeply equal **{ foo: bar }**`,
done
done,
)
})
@@ -1098,7 +1098,7 @@ describe('src/cy/commands/assertions', () => {
expectMarkdown(
() => expect(person).to.have.all.keys('name', 'age'),
`expected **{ name: Joe, age: 20 }** to have keys **name**, and **age**`,
done
done,
)
})
@@ -1349,11 +1349,11 @@ describe('src/cy/commands/assertions', () => {
const l3 = this.logs[2]
expect(l1.get('message')).to.eq(
'expected **<div.foo.bar>** to have class **foo**'
'expected **<div.foo.bar>** to have class **foo**',
)
expect(l3.get('message')).to.eq(
'expected **<div.foo.bar>** not to have class **baz**'
'expected **<div.foo.bar>** not to have class **baz**',
)
})
@@ -1361,7 +1361,7 @@ describe('src/cy/commands/assertions', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected \'foo\' to have class \'bar\''
'expected \'foo\' to have class \'bar\'',
)
expect(err.message).to.include('> class')
@@ -1420,11 +1420,11 @@ describe('src/cy/commands/assertions', () => {
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<div#foo>** to have id **foo**'
'expected **<div#foo>** to have id **foo**',
)
expect(l2.get('message')).to.eq(
'expected **<div#foo>** not to have id **bar**'
'expected **<div#foo>** not to have id **bar**',
)
})
@@ -1432,7 +1432,7 @@ describe('src/cy/commands/assertions', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected [] to have id \'foo\''
'expected [] to have id \'foo\'',
)
expect(err.message).to.include('> id')
@@ -1462,23 +1462,23 @@ describe('src/cy/commands/assertions', () => {
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<div>** to have HTML **<button>button</button>**'
'expected **<div>** to have HTML **<button>button</button>**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to have HTML **foo**'
'expected **<div>** not to have HTML **foo**',
)
this.clearLogs()
expect(this.$div).to.contain.html('<button>')
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** to contain HTML **<button>**'
'expected **<div>** to contain HTML **<button>**',
)
this.clearLogs()
expect(this.$div).to.not.contain.html('foo') // 4
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** not to contain HTML **foo**'
'expected **<div>** not to contain HTML **foo**',
)
this.clearLogs()
@@ -1486,7 +1486,7 @@ describe('src/cy/commands/assertions', () => {
expect(this.$div).to.have.html('<span>span</span>')
} catch (error) {
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** to have HTML **<span>span</span>**, but the HTML was **<button>button</button>**'
'expected **<div>** to have HTML **<span>span</span>**, but the HTML was **<button>button</button>**',
)
}
@@ -1495,7 +1495,7 @@ describe('src/cy/commands/assertions', () => {
expect(this.$div).to.contain.html('<span>span</span>')
} catch (error1) {
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** to contain HTML **<span>span</span>**, but the HTML was **<button>button</button>**'
'expected **<div>** to contain HTML **<span>span</span>**, but the HTML was **<button>button</button>**',
)
}
})
@@ -1504,7 +1504,7 @@ describe('src/cy/commands/assertions', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected null to have HTML \'foo\''
'expected null to have HTML \'foo\'',
)
expect(err.message).to.include('> html')
@@ -1543,23 +1543,23 @@ describe('src/cy/commands/assertions', () => {
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<div>** to have text **foo**'
'expected **<div>** to have text **foo**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to have text **bar**'
'expected **<div>** not to have text **bar**',
)
this.clearLogs()
expect(this.$div).to.contain.text('f')
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** to contain text **f**'
'expected **<div>** to contain text **f**',
)
this.clearLogs()
expect(this.$div).to.not.contain.text('foob')
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** not to contain text **foob**'
'expected **<div>** not to contain text **foob**',
)
this.clearLogs()
@@ -1567,7 +1567,7 @@ describe('src/cy/commands/assertions', () => {
expect(this.$div).to.have.text('bar')
} catch (error) {
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** to have text **bar**, but the text was **foo**'
'expected **<div>** to have text **bar**, but the text was **foo**',
)
}
@@ -1576,7 +1576,7 @@ describe('src/cy/commands/assertions', () => {
expect(this.$div).to.contain.text('bar')
} catch (error1) {
expect(this.logs[0].get('message')).to.eq(
'expected **<div>** to contain text **bar**, but the text was **foo**'
'expected **<div>** to contain text **bar**, but the text was **foo**',
)
}
})
@@ -1594,7 +1594,7 @@ describe('src/cy/commands/assertions', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected undefined to have text \'foo\''
'expected undefined to have text \'foo\'',
)
expect(err.message).to.include('> text')
@@ -1625,23 +1625,23 @@ describe('src/cy/commands/assertions', () => {
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<input>** to have value **foo**'
'expected **<input>** to have value **foo**',
)
expect(l2.get('message')).to.eq(
'expected **<input>** not to have value **bar**'
'expected **<input>** not to have value **bar**',
)
this.clearLogs()
expect(this.$input).to.contain.value('foo')
expect(this.logs[0].get('message')).to.eq(
'expected **<input>** to contain value **foo**'
'expected **<input>** to contain value **foo**',
)
this.clearLogs()
expect(this.$input).not.to.contain.value('bar')
expect(this.logs[0].get('message')).to.eq(
'expected **<input>** not to contain value **bar**'
'expected **<input>** not to contain value **bar**',
)
this.clearLogs()
@@ -1649,7 +1649,7 @@ describe('src/cy/commands/assertions', () => {
expect(this.$input).to.have.value('bar')
} catch (error) {
expect(this.logs[0].get('message')).to.eq(
'expected **<input>** to have value **bar**, but the value was **foo**'
'expected **<input>** to have value **bar**, but the value was **foo**',
)
}
@@ -1658,7 +1658,7 @@ describe('src/cy/commands/assertions', () => {
expect(this.$input).to.contain.value('bar')
} catch (error1) {
expect(this.logs[0].get('message')).to.eq(
'expected **<input>** to contain value **bar**, but the value was **foo**'
'expected **<input>** to contain value **bar**, but the value was **foo**',
)
}
})
@@ -1667,7 +1667,7 @@ describe('src/cy/commands/assertions', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to have value \'foo\''
'expected {} to have value \'foo\'',
)
expect(err.message).to.include('> value')
@@ -1723,11 +1723,11 @@ describe('src/cy/commands/assertions', () => {
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<div>** to have descendants **button**'
'expected **<div>** to have descendants **button**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to have descendants **input**'
'expected **<div>** not to have descendants **input**',
)
})
@@ -1735,7 +1735,7 @@ describe('src/cy/commands/assertions', () => {
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to have descendants \'foo\''
'expected {} to have descendants \'foo\'',
)
expect(err.message).to.include('> descendants')
@@ -1777,11 +1777,11 @@ describe('src/cy/commands/assertions', () => {
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<div>** to be **visible**'
'expected **<div>** to be **visible**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to be **visible**'
'expected **<div>** not to be **visible**',
)
try {
@@ -1795,7 +1795,7 @@ describe('src/cy/commands/assertions', () => {
expected '<div>' to be 'visible'
This element '<div>' is not visible because it has CSS property: 'display: none'\
`
`,
)
}
})
@@ -1804,7 +1804,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to be \'visible\''
'expected {} to be \'visible\'',
)
expect(err.message).to.include('> visible')
@@ -1846,11 +1846,11 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<div>** to be **hidden**'
'expected **<div>** to be **hidden**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to be **hidden**'
'expected **<div>** not to be **hidden**',
)
try {
@@ -1867,7 +1867,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to be \'hidden\''
'expected {} to be \'hidden\'',
)
expect(err.message).to.include('> hidden')
@@ -1903,11 +1903,11 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<option>** to be **selected**'
'expected **<option>** to be **selected**',
)
expect(l2.get('message')).to.eq(
'expected **<option>** not to be **selected**'
'expected **<option>** not to be **selected**',
)
})
@@ -1915,7 +1915,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to be \'selected\''
'expected {} to be \'selected\'',
)
expect(err.message).to.include('> selected')
@@ -1951,11 +1951,11 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<input>** to be **checked**'
'expected **<input>** to be **checked**',
)
expect(l2.get('message')).to.eq(
'expected **<input>** not to be **checked**'
'expected **<input>** not to be **checked**',
)
})
@@ -1963,7 +1963,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to be \'checked\''
'expected {} to be \'checked\'',
)
expect(err.message).to.include('> checked')
@@ -1999,11 +1999,11 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<input>** to be **enabled**'
'expected **<input>** to be **enabled**',
)
expect(l2.get('message')).to.eq(
'expected **<input>** not to be **enabled**'
'expected **<input>** not to be **enabled**',
)
})
@@ -2011,7 +2011,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to be \'enabled\''
'expected {} to be \'enabled\'',
)
expect(err.message).to.include('> enabled')
@@ -2047,11 +2047,11 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l2 = this.logs[1]
expect(l1.get('message')).to.eq(
'expected **<input>** to be **disabled**'
'expected **<input>** to be **disabled**',
)
expect(l2.get('message')).to.eq(
'expected **<input>** not to be **disabled**'
'expected **<input>** not to be **disabled**',
)
})
@@ -2059,7 +2059,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to be \'disabled\''
'expected {} to be \'disabled\'',
)
expect(err.message).to.include('> disabled')
@@ -2085,15 +2085,15 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l3 = this.logs[2]
expect(l1.get('message')).to.eq(
'expected **[]** to exist'
'expected **[]** to exist',
)
expect(l2.get('message')).to.eq(
'expected **{}** to exist'
'expected **{}** to exist',
)
expect(l3.get('message')).to.eq(
'expected **foo** to exist'
'expected **foo** to exist',
)
})
})
@@ -2123,15 +2123,15 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l3 = this.logs[2]
expect(l1.get('message')).to.eq(
'expected **[]** to be empty'
'expected **[]** to be empty',
)
expect(l2.get('message')).to.eq(
'expected **{}** to be empty'
'expected **{}** to be empty',
)
expect(l3.get('message')).to.eq(
'expected **\'\'** to be empty'
'expected **\'\'** to be empty',
)
})
@@ -2150,19 +2150,19 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l4 = this.logs[3]
expect(l1.get('message')).to.eq(
'expected **<div>** to be **empty**'
'expected **<div>** to be **empty**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to be **empty**'
'expected **<div>** not to be **empty**',
)
expect(l3.get('message')).to.eq(
'expected **<div>** to be **empty**'
'expected **<div>** to be **empty**',
)
expect(l4.get('message')).to.eq(
'expected **<div>** not to be **empty**'
'expected **<div>** not to be **empty**',
)
})
})
@@ -2206,19 +2206,19 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l4 = this.logs[3]
expect(l1.get('message')).to.eq(
'expected **<div#div>** not to be **focused**'
'expected **<div#div>** not to be **focused**',
)
expect(l2.get('message')).to.eq(
'expected **<div#div>** not to be **focused**'
'expected **<div#div>** not to be **focused**',
)
expect(l3.get('message')).to.eq(
'expected **<div#div>** to be **focused**'
'expected **<div#div>** to be **focused**',
)
expect(l4.get('message')).to.eq(
'expected **<div#div>** to be **focused**'
'expected **<div#div>** to be **focused**',
)
})
@@ -2245,7 +2245,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.contain(
'expected {} to be \'focused\''
'expected {} to be \'focused\'',
)
expect(err.message).to.include('> focus')
@@ -2286,7 +2286,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l1 = this.logs[0]
expect(l1.get('message')).to.eq(
'expected **foo** to match /f/'
'expected **foo** to match /f/',
)
})
@@ -2305,19 +2305,19 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l4 = this.logs[3]
expect(l1.get('message')).to.eq(
'expected **<div>** to match **div**'
'expected **<div>** to match **div**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** not to match **button**'
'expected **<div>** not to match **button**',
)
expect(l3.get('message')).to.eq(
'expected **<div>** to match **div**'
'expected **<div>** to match **div**',
)
expect(l4.get('message')).to.eq(
'expected **<div>** not to match **button**'
'expected **<div>** not to match **button**',
)
})
})
@@ -2336,19 +2336,19 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l4 = this.logs[3]
expect(l1.get('message')).to.eq(
'expected **[ foo ]** to include **foo**'
'expected **[ foo ]** to include **foo**',
)
expect(l2.get('message')).to.eq(
'expected **{ foo: bar, baz: quux }** to have property **foo**'
'expected **{ foo: bar, baz: quux }** to have property **foo**',
)
expect(l3.get('message')).to.eq(
'expected **{ foo: bar, baz: quux }** to have property **foo** of **bar**'
'expected **{ foo: bar, baz: quux }** to have property **foo** of **bar**',
)
expect(l4.get('message')).to.eq(
'expected **foo** to include **fo**'
'expected **foo** to include **fo**',
)
})
})
@@ -2396,43 +2396,43 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l10 = this.logs[9]
expect(l1.get('message')).to.eq(
'expected **<div>** to have attribute **foo**'
'expected **<div>** to have attribute **foo**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** to have attribute **foo** with the value **bar**'
'expected **<div>** to have attribute **foo** with the value **bar**',
)
expect(l3.get('message')).to.eq(
'expected **<div>** not to have attribute **bar**'
'expected **<div>** not to have attribute **bar**',
)
expect(l4.get('message')).to.eq(
'expected **<div>** not to have attribute **bar**'
'expected **<div>** not to have attribute **bar**',
)
expect(l5.get('message')).to.eq(
'expected **<div>** not to have attribute **foo** with the value **baz**'
'expected **<div>** not to have attribute **foo** with the value **baz**',
)
expect(l6.get('message')).to.eq(
'expected **<a>** to have attribute **href**'
'expected **<a>** to have attribute **href**',
)
expect(l7.get('message')).to.eq(
'expected **https://google.com** to match /google/'
'expected **https://google.com** to match /google/',
)
expect(l8.get('message')).to.eq(
'expected **<a>** to have attribute **href** with the value **https://google.com**'
'expected **<a>** to have attribute **href** with the value **https://google.com**',
)
expect(l9.get('message')).to.eq(
'expected **<a>** to have text **google**'
'expected **<a>** to have text **google**',
)
expect(l10.get('message')).to.eq(
'expected **<a>** not to have attribute **href** with the value **https://google.com**, but the value was **https://google.com**'
'expected **<a>** not to have attribute **href** with the value **https://google.com**, but the value was **https://google.com**',
)
})
@@ -2440,7 +2440,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to have attribute \'foo\''
'expected {} to have attribute \'foo\'',
)
expect(err.message).to.include('> attr')
@@ -2499,43 +2499,43 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l10 = this.logs[9]
expect(l1.get('message')).to.eq(
'expected **<input>** to have property **checked**'
'expected **<input>** to have property **checked**',
)
expect(l2.get('message')).to.eq(
'expected **<input>** to have property **checked** with the value **true**'
'expected **<input>** to have property **checked** with the value **true**',
)
expect(l3.get('message')).to.eq(
'expected **<input>** not to have property **bar**'
'expected **<input>** not to have property **bar**',
)
expect(l4.get('message')).to.eq(
'expected **<input>** not to have property **bar**'
'expected **<input>** not to have property **bar**',
)
expect(l5.get('message')).to.eq(
'expected **<input>** not to have property **checked** with the value **baz**'
'expected **<input>** not to have property **checked** with the value **baz**',
)
expect(l6.get('message')).to.eq(
'expected **<a>** to have property **href**'
'expected **<a>** to have property **href**',
)
expect(l7.get('message')).to.eq(
`expected **${href}** to match /foo/`
`expected **${href}** to match /foo/`,
)
expect(l8.get('message')).to.eq(
`expected **<a>** to have property **href** with the value **${href}**`
`expected **<a>** to have property **href** with the value **${href}**`,
)
expect(l9.get('message')).to.eq(
'expected **<a>** to have text **google**'
'expected **<a>** to have text **google**',
)
expect(l10.get('message')).to.eq(
`expected **<a>** not to have property **href** with the value **${href}**, but the value was **${href}**`
`expected **<a>** not to have property **href** with the value **${href}**, but the value was **${href}**`,
)
})
@@ -2543,7 +2543,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to have property \'foo\''
'expected {} to have property \'foo\'',
)
expect(err.message).to.include('> prop')
@@ -2585,27 +2585,27 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
const l6 = this.logs[5]
expect(l1.get('message')).to.eq(
'expected **<div>** to have CSS property **display**'
'expected **<div>** to have CSS property **display**',
)
expect(l2.get('message')).to.eq(
'expected **<div>** to have CSS property **display** with the value **none**'
'expected **<div>** to have CSS property **display** with the value **none**',
)
expect(l3.get('message')).to.eq(
'expected **<div>** not to have CSS property **bar**'
'expected **<div>** not to have CSS property **bar**',
)
expect(l4.get('message')).to.eq(
'expected **<div>** not to have CSS property **bar**'
'expected **<div>** not to have CSS property **bar**',
)
expect(l5.get('message')).to.eq(
'expected **<div>** not to have CSS property **display** with the value **inline**'
'expected **<div>** not to have CSS property **display** with the value **inline**',
)
expect(l6.get('message')).to.eq(
'expected **<div>** not to have CSS property **display** with the value **none**, but the value was **none**'
'expected **<div>** not to have CSS property **display** with the value **none**, but the value was **none**',
)
})
@@ -2613,7 +2613,7 @@ This element '<div>' is not visible because it has CSS property: 'display: none'
cy.on('fail', (err) => {
expect(this.logs.length).to.eq(1)
expect(this.logs[0].get('error').message).to.eq(
'expected {} to have CSS property \'foo\''
'expected {} to have CSS property \'foo\'',
)
expect(err.message).to.include('> css')

View File

@@ -82,7 +82,7 @@ const getAllFn = (...aliases) => {
return Cypress.Promise.all(
aliases[0].split(' ').map((alias) => {
return cy.now('get', alias)
})
}),
)
}

View File

@@ -77,8 +77,8 @@ const build = gulp.series(
manifest,
background,
html,
css
)
css,
),
)
const watchBuild = () => {

View File

@@ -22,7 +22,7 @@ describe('Proxy', () => {
proxy.start(3333)
.then((proxy1) => {
this.proxy = proxy1
})
}),
)
})
@@ -30,7 +30,7 @@ describe('Proxy', () => {
return Promise.join(
httpServer.stop(),
httpsServer.stop(),
proxy.stop()
proxy.stop(),
)
})

View File

@@ -44,7 +44,7 @@ describe('lib/ca', () => {
it('creates certs + keys dir', function () {
return Promise.join(
fs.statAsync(path.join(this.dir, 'certs')),
fs.statAsync(path.join(this.dir, 'keys'))
fs.statAsync(path.join(this.dir, 'keys')),
)
})

View File

@@ -111,7 +111,7 @@ export const browsers: Browser[] = [
export function launch (
browser: FoundBrowser,
url: string,
args: string[] = []
args: string[] = [],
) {
log('launching browser %o to open %s', browser, url)

View File

@@ -30,7 +30,7 @@ export const setMajorVersion = <T extends HasVersion>(browser: T): T => {
'browser %s version %s major version %s',
browser.name,
browser.version,
browser.majorVersion
browser.majorVersion,
)
if (browser.majorVersion) {
@@ -62,7 +62,7 @@ function getHelper (platform?: NodeJS.Platform): PlatformHelper {
function lookup (
platform: NodeJS.Platform,
browser: Browser
browser: Browser,
): Promise<DetectedBrowser> {
log('looking up %s on %s platform', browser.name, platform)
const helper = getHelper(platform)
@@ -153,7 +153,7 @@ export const detect = (goalBrowsers?: Browser[]): Bluebird<FoundBrowser[]> => {
export const detectByPath = (
path: string,
goalBrowsers?: Browser[]
goalBrowsers?: Browser[],
): Promise<FoundBrowser> => {
if (!goalBrowsers) {
goalBrowsers = browsers

View File

@@ -2,7 +2,7 @@ import { NotInstalledError, NotDetectedAtPathError } from './types'
export const notInstalledErr = (name: string, message?: string) => {
const err = new Error(
message || `Browser not installed: ${name}`
message || `Browser not installed: ${name}`,
) as NotInstalledError
err.notInstalled = true

View File

@@ -7,7 +7,7 @@ import execa from 'execa'
function getLinuxBrowser (
name: string,
binary: string,
versionRegex: RegExp
versionRegex: RegExp,
): Promise<FoundBrowser> {
const getVersion = (stdout: string) => {
const m = versionRegex.exec(stdout)
@@ -19,7 +19,7 @@ function getLinuxBrowser (
log(
'Could not extract version from %s using regex %s',
stdout,
versionRegex
versionRegex,
)
throw notInstalledErr(binary)
@@ -29,7 +29,7 @@ function getLinuxBrowser (
log(
'Received error detecting browser binary: "%s" with error:',
binary,
err.message
err.message,
)
throw notInstalledErr(binary)
@@ -60,6 +60,6 @@ export function detect (browser: Browser) {
return getLinuxBrowser(
browser.name,
browser.binary as string,
browser.versionRegex
browser.versionRegex,
)
}

View File

@@ -29,7 +29,7 @@ function formChromeCanaryAppPath () {
'Google',
'Chrome SxS',
'Application',
'chrome.exe'
'chrome.exe',
)
return [normalize(exe)]
@@ -53,7 +53,7 @@ function formEdgeCanaryAppPath () {
'Microsoft',
'Edge SxS',
'Application',
'msedge.exe'
'msedge.exe',
)
return [normalize(exe)]

View File

@@ -82,7 +82,7 @@ describe('browser detection', () => {
version: '9001.1.2.3',
majorVersion: 9001,
path: '/foo/bar/browser',
})
}),
)
})
})
@@ -123,7 +123,7 @@ describe('browser detection', () => {
version: '100.1.2.3',
majorVersion: 100,
path: '/Applications/My Shiny New Browser.app',
})
}),
)
})
})

View File

@@ -105,7 +105,7 @@ export const regenerateRequestHead = (req: http.ClientRequest) => {
const getFirstWorkingFamily = (
{ port, host }: http.RequestOptions,
familyCache: FamilyCache,
cb: Function
cb: Function,
) => {
// this is a workaround for localhost (and potentially others) having invalid
// A records but valid AAAA records. here, we just cache the family of the first

View File

@@ -71,7 +71,7 @@ function createSocket (opts: RetryingOptions, onConnect): net.Socket {
export function createRetryingSocket (
opts: RetryingOptions,
cb: (err?: Error, sock?: net.Socket, retry?: (err?: Error) => void) => void
cb: (err?: Error, sock?: net.Socket, retry?: (err?: Error) => void) => void,
) {
if (typeof opts.getDelayMsForRetry === 'undefined') {
opts.getDelayMsForRetry = getDelayForRetry

View File

@@ -50,14 +50,14 @@ export class Servers {
)
.spread((app: Express.Application, [cert, key]: string[]) => {
this.httpServer = Promise.promisifyAll(
allowDestroy(http.createServer(app))
allowDestroy(http.createServer(app)),
) as http.Server & AsyncServer
this.wsServer = Io.server(this.httpServer)
this.https = { cert, key }
this.httpsServer = Promise.promisifyAll(
allowDestroy(https.createServer(this.https, <http.RequestListener>app))
allowDestroy(https.createServer(this.https, <http.RequestListener>app)),
) as https.Server & AsyncServer
this.wssServer = Io.server(this.httpsServer)
@@ -69,7 +69,7 @@ export class Servers {
// @ts-skip
return Promise.join(
this.httpServer.listenAsync(httpPort),
this.httpsServer.listenAsync(httpsPort)
this.httpsServer.listenAsync(httpsPort),
)
.return()
})
@@ -78,7 +78,7 @@ export class Servers {
stop () {
return Promise.join(
this.httpServer.destroyAsync(),
this.httpsServer.destroyAsync()
this.httpsServer.destroyAsync(),
)
}
}

View File

@@ -297,8 +297,8 @@ describe('lib/agent', function () {
allowDestroy(
net.createServer((socket) => {
socket.end()
})
)
}),
),
) as net.Server & AsyncServer
const proxyPort = PROXY_PORT + 2

View File

@@ -70,7 +70,7 @@ function resContentTypeIs (res: IncomingMessage, contentType: string) {
function resContentTypeIsJavaScript (res: IncomingMessage) {
return _.some(
['application/javascript', 'application/x-javascript', 'text/javascript']
.map(_.partial(resContentTypeIs, res))
.map(_.partial(resContentTypeIs, res)),
)
}

View File

@@ -30,7 +30,7 @@ export function stripStream () {
'self$2',
'$1self$3$4',
'$1 || $2.parent.__Cypress__$3',
]
)
],
),
)
}

View File

@@ -253,7 +253,7 @@ function(n){for(;!function(l){return l===l.parent || l.parent.__Cypress__}(l)&&f
if (lib === 'hugeApp') {
stripped = stripped.replace(
'window.self !== window.self',
'window.self !== window.top'
'window.self !== window.top',
)
}

View File

@@ -31,7 +31,7 @@
"css-element-queries": "1.2.3",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.2",
"eslint": "6.1.0",
"eslint": "6.8.0",
"jsdom": "14.1.0",
"lodash": "4.17.15",
"markdown-it": "6.1.1",

View File

@@ -201,7 +201,7 @@ describe('<Command />', () => {
appState={appState}
runnablesStore={runnablesStore}
aliasesWithDuplicates={null}
/>
/>,
)
component.find('FlashOnClick').simulate('click')

View File

@@ -151,7 +151,7 @@ class Command extends Component<Props> {
'command-has-duplicates': model.hasDuplicates,
'command-is-duplicate': model.isDuplicate,
'command-is-open': this.isOpen,
}
},
)}
onMouseOver={() => this._snapshot(true)}
onMouseOut={() => this._snapshot(false)}

View File

@@ -8,7 +8,7 @@ const renderComponent = ({ onClick = (() => {}) }): ShallowWrapper<any, {}, Flas
return shallow(
<FlashOnClick message='Some message' onClick={onClick}>
<div className='content' />
</FlashOnClick>
</FlashOnClick>,
)
}

View File

@@ -72,7 +72,7 @@ class RunnablesStore {
_createRunnableChildren (runnableProps: RootRunnable, level: number) {
return this._createRunnables<TestProps>('test', runnableProps.tests || [], level).concat(
this._createRunnables<SuiteProps>('suite', runnableProps.suites || [], level)
this._createRunnables<SuiteProps>('suite', runnableProps.suites || [], level),
)
}

View File

@@ -43,7 +43,7 @@ describe('<Runnables />', () => {
runnablesStore={runnablesStoreStub({ runnables: [{ id: 1 }] as TestModel[] })}
scroller={scrollerStub()}
specPath=''
/>
/>,
)
expect(component.find(RunnablesList)).to.exist
@@ -55,7 +55,7 @@ describe('<Runnables />', () => {
runnablesStore={runnablesStoreStub()}
scroller={scrollerStub()}
specPath='/path/to/foo_spec.js'
/>
/>,
)
expect(component.find(AnError)).to.exist
@@ -73,7 +73,7 @@ describe('<Runnables />', () => {
runnablesStore={runnablesStoreStub({ isReady: false })}
scroller={scrollerStub()}
specPath=''
/>
/>,
)
expect(component.find('.wrap')).to.be.empty
@@ -86,7 +86,7 @@ describe('<Runnables />', () => {
runnablesStore={runnablesStoreStub()}
scroller={scroller}
specPath=''
/>
/>,
)
expect(scroller.setContainer).to.have.been.calledWith(component.ref('container'))
@@ -102,7 +102,7 @@ describe('<Runnables />', () => {
runnablesStore={runnablesStoreStub()}
scroller={scroller}
specPath=''
/>
/>,
)
scroller.setContainer.callArg(1)
@@ -119,7 +119,7 @@ describe('<Runnables />', () => {
runnablesStore={runnablesStoreStub()}
scroller={scroller}
specPath=''
/>
/>,
)
scroller.setContainer.callArg(1)

View File

@@ -144,7 +144,7 @@ describe('<Test />', () => {
appState={appStateStub()}
model={model()}
scroller={scroller}
/>
/>,
)
expect(scroller.scrollIntoView).to.have.been.calledWith(component.ref('container'))
@@ -156,7 +156,7 @@ describe('<Test />', () => {
appState={appStateStub({ autoScrollingEnabled: false })}
model={model()}
scroller={scroller}
/>
/>,
)
expect(scroller.scrollIntoView).not.to.have.been.called
@@ -168,7 +168,7 @@ describe('<Test />', () => {
appState={appStateStub({ isRunning: false })}
model={model()}
scroller={scroller}
/>
/>,
)
expect(scroller.scrollIntoView).not.to.have.been.called
@@ -180,7 +180,7 @@ describe('<Test />', () => {
appState={appStateStub()}
model={model({ shouldRender: false })}
scroller={scroller}
/>
/>,
)
expect(scroller.scrollIntoView).not.to.have.been.called
@@ -192,7 +192,7 @@ describe('<Test />', () => {
appState={appStateStub()}
model={model({ isActive: null })}
scroller={scroller}
/>
/>,
)
expect(scroller.scrollIntoView).not.to.have.been.called

View File

@@ -122,7 +122,7 @@ describe('<App />', () => {
const component = shallowRender(
<App {...createProps()}>
<div className='some-child' />
</App>
</App>,
)
expect(component.find('.some-child')).to.exist

View File

@@ -89,7 +89,7 @@ export default {
_.sortBy(consoleProps.table, (val, key) => key),
(table) => {
return this._logTable({ table })
}
},
)
return

View File

@@ -288,7 +288,7 @@ const _navigateUsingCRI = async function (client, url) {
const _setAutomation = (client, automation) => {
return automation.use(
CdpAutomation(client.send)
CdpAutomation(client.send),
)
}
@@ -420,7 +420,7 @@ export = {
const [extDest] = await Bluebird.all([
this._writeExtension(
browser,
options
options,
),
_removeRootExtension(),
_disableRestorePagesPrompt(userDir),

View File

@@ -22,7 +22,7 @@ const getBrowserPath = (browser) => {
// TODO need to check if browser.name is an unempty string
return path.join(
PATH_TO_BROWSERS,
`${browser.name}-${browser.channel}`
`${browser.name}-${browser.channel}`,
)
}
@@ -57,21 +57,21 @@ const getPartition = function (isTextTerminal) {
const getProfileDir = (browser, isTextTerminal) => {
return path.join(
getBrowserPath(browser),
getPartition(isTextTerminal)
getPartition(isTextTerminal),
)
}
const getExtensionDir = (browser, isTextTerminal) => {
return path.join(
getProfileDir(browser, isTextTerminal),
'CypressExtension'
'CypressExtension',
)
}
const ensureCleanCache = async function (browser, isTextTerminal) {
const p = path.join(
getProfileDir(browser, isTextTerminal),
'CypressCache'
'CypressCache',
)
await fs.removeAsync(p)
@@ -123,7 +123,7 @@ function extendLaunchOptionsFromPlugins (launchOptions, pluginConfigResult, opti
// TODO: remove this logic in >= v5.0.0
if (pluginConfigResult[0]) {
options.onWarning(errors.get(
'DEPRECATED_BEFORE_BROWSER_LAUNCH_ARGS'
'DEPRECATED_BEFORE_BROWSER_LAUNCH_ARGS',
))
_.extend(pluginConfigResult, {

View File

@@ -202,7 +202,7 @@ module.exports = {
},
},
],
}
},
)
}

View File

@@ -24,7 +24,7 @@ const onBeforeRetry = (details) => {
delay: humanTime.long(details.delay, false),
tries: details.total - details.retryIndex,
response: details.err,
}
},
)
}
@@ -86,7 +86,7 @@ const throwIfIndeterminateCiBuildId = (ciBuildId, parallel, group) => {
group,
parallel,
},
ciProvider.detectableCiBuildIdProviders()
ciProvider.detectableCiBuildIdProviders(),
)
}
}
@@ -151,7 +151,7 @@ const uploadArtifacts = (options = {}) => {
return uploads.push(
upload.send(pathToFile, url)
.then(success)
.catch(fail)
.catch(fail),
)
}

View File

@@ -403,7 +403,7 @@ const iterateThroughSpecs = function (options = {}) {
spec,
claimedInstances - 1,
totalInstances,
estimated
estimated,
)
.tap((results) => {
runs.push(results)
@@ -633,7 +633,7 @@ const trashAssets = Promise.method((config = {}) => {
return Promise.join(
trash.folder(config.videosFolder),
trash.folder(config.screenshotsFolder)
trash.folder(config.screenshotsFolder),
)
.catch((err) => {
// dont make trashing assets fail the build
@@ -1022,7 +1022,7 @@ module.exports = {
this.launchBrowser(options)
.tap(() => {
debug('browser launched')
})
}),
)
.timeout(timeout || 60000)
.catch(Promise.TimeoutError, (err) => {
@@ -1147,7 +1147,7 @@ module.exports = {
videoName,
compressedVideoName,
videoCompression,
suv
suv,
).then(finish)
// TODO: add a catch here
}
@@ -1321,7 +1321,7 @@ module.exports = {
'found \'%d\' specs using spec pattern \'%s\': %o',
names.length,
specPattern,
names
names,
)
}
})

View File

@@ -122,7 +122,7 @@ const moduleFactory = () => {
debug(
'launching browser: %o, spec: %s',
browser,
spec.relative
spec.relative,
)
return browsers.open(browser, options, automation)

View File

@@ -115,7 +115,7 @@ const execute = (ipc, event, ids, args = []) => {
sendWarning(ipc,
errors.get(
'DEPRECATED_BEFORE_BROWSER_LAUNCH_ARGS'
'DEPRECATED_BEFORE_BROWSER_LAUNCH_ARGS',
))
// eslint-disable-next-line prefer-rest-params

View File

@@ -138,12 +138,12 @@ class Project extends EE {
return Promise.join(
this.watchSettingsAndStartWebsockets(options, cfg),
this.scaffold(cfg)
this.scaffold(cfg),
)
.then(() => {
return Promise.join(
this.checkSupportFile(cfg),
this.watchPluginsFile(cfg, options)
this.watchPluginsFile(cfg, options),
)
})
})
@@ -211,7 +211,7 @@ class Project extends EE {
return Promise.join(
this.server ? this.server.close() : undefined,
this.watchers ? this.watchers.close() : undefined,
preprocessor.close()
preprocessor.close(),
)
.then(() => {
return process.chdir(localCwd)
@@ -512,7 +512,7 @@ class Project extends EE {
// becomes /integration/foo.coffee
return `/${path.join(type, path.relative(
integrationFolder,
path.resolve(projectRoot, pathToSpec)
path.resolve(projectRoot, pathToSpec),
))}`
}

View File

@@ -56,7 +56,7 @@ const filesSizesAreSame = (files, index) => {
Promise.all(_.map(files, getFileSize)),
Promise.all(_.map(files, (file) => {
return getFileSize(getIndexedExample(file, index))
}))
})),
)
.spread((fileSizes, originalFileSizes) => {
return _.every(fileSizes, (size, i) => {
@@ -166,7 +166,7 @@ module.exports = {
return Promise.join(
this._copy('support/commands.js', folder, config),
this._copy('support/index.js', folder, config)
this._copy('support/index.js', folder, config),
)
})
},

View File

@@ -389,7 +389,7 @@ class Socket {
return task.run(config.pluginsFile, args[0])
default:
throw new Error(
`You requested a backend event we cannot handle: ${eventName}`
`You requested a backend event we cannot handle: ${eventName}`,
)
}
}

View File

@@ -37,7 +37,7 @@ module.exports = {
.then(() => {
return Promise.join(
fs.ensureDirAsync(this.path()),
!isProduction() ? this.symlink() : undefined
!isProduction() ? this.symlink() : undefined,
)
})
}
@@ -88,7 +88,7 @@ module.exports = {
remove () {
return Promise.join(
fs.removeAsync(this.path()),
this.removeSymlink()
this.removeSymlink(),
)
},

View File

@@ -66,7 +66,7 @@ function getRunner ({ enumerateValues }) {
return value
})
})
})
}),
)
}

View File

@@ -17,7 +17,7 @@ const isCypressProcess = (process) => {
const getPidFromFolder = (folder, pidPrefix) => {
return _.toNumber(
path.basename(folder).replace(pidPrefix, '')
path.basename(folder).replace(pidPrefix, ''),
)
}

View File

@@ -27,7 +27,7 @@ const find = function findSpecs (config, specPattern) {
debug(
'looking for test specs in the folder:',
integrationFolderPath
integrationFolderPath,
)
if (specPattern) {
@@ -45,7 +45,7 @@ const find = function findSpecs (config, specPattern) {
fixturesFolderPath = path.join(
config.fixturesFolder,
'**',
'*'
'*',
)
}

View File

@@ -18,7 +18,7 @@ const str = JSON.stringify
*/
const errMsg = (key, value, type) => {
return `Expected \`${key}\` to be ${type}. Instead the value was: \`${str(
value
value,
)}\``
}
@@ -153,7 +153,7 @@ module.exports = {
return errMsg(
key,
value,
'a fully qualified URL (starting with `http://` or `https://`)'
'a fully qualified URL (starting with `http://` or `https://`)',
)
},

View File

@@ -559,7 +559,7 @@ describe('lib/cypress', () => {
return Promise.join(
fs.statAsync(path.join(cfg.integrationFolder, 'examples', 'actions.spec.js')),
fs.statAsync(path.join(cfg.integrationFolder, 'examples', 'files.spec.js')),
fs.statAsync(path.join(cfg.integrationFolder, 'examples', 'viewport.spec.js'))
fs.statAsync(path.join(cfg.integrationFolder, 'examples', 'viewport.spec.js')),
)
})
})
@@ -792,7 +792,7 @@ describe('lib/cypress', () => {
const found1 = _.find(argsSet, (args) => {
return _.find(args, (arg) => {
return arg.message && arg.message.includes(
'Browser: \'foo\' was not found on your system.'
'Browser: \'foo\' was not found on your system.',
)
})
})
@@ -802,7 +802,7 @@ describe('lib/cypress', () => {
const found2 = _.find(argsSet, (args) => {
return _.find(args, (arg) => {
return arg.message && arg.message.includes(
'Available browsers found are: chrome, chromium, chrome:canary, electron'
'Available browsers found are: chrome, chromium, chrome:canary, electron',
)
})
})

View File

@@ -350,7 +350,7 @@ describe('Proxy Performance', function () {
cyServer = Server()
return cyServer.open(config)
})
}),
)
})
})

View File

@@ -25,7 +25,7 @@ const removeChunkPrefixes = () => {
return Promise.join(
renameFiles('test/e2e/**/*'),
renameFiles('__snapshots__/**/*')
renameFiles('__snapshots__/**/*'),
)
}
@@ -37,12 +37,12 @@ const renameSnapshotsToMatchSpecs = () => {
const specName = path.basename(spec)
const pathToSnapshot = path.resolve(
__dirname, '..', '..', '__snapshots__', specName.slice(2)
__dirname, '..', '..', '__snapshots__', specName.slice(2),
)
const pathToRenamedSnapshot = path.join(
path.dirname(pathToSnapshot),
specName
specName,
)
return fs.renameAsync(pathToSnapshot, pathToRenamedSnapshot)

View File

@@ -64,7 +64,7 @@ if (isWindows()) {
if (options['inspect-brk']) {
commandAndArguments.args.push(
'--inspect',
`--inspect-brk${options['inspect-brk'] === true ? '' : `=${options['inspect-brk']}`}`
`--inspect-brk${options['inspect-brk'] === true ? '' : `=${options['inspect-brk']}`}`,
)
}
@@ -72,21 +72,21 @@ if (isGteNode12()) {
// max HTTP header size 8kb -> 1mb
// https://github.com/cypress-io/cypress/issues/76
commandAndArguments.args.push(
`--max-http-header-size=${1024 * 1024}`
`--max-http-header-size=${1024 * 1024}`,
)
}
if (!isWindows()) {
commandAndArguments.args.push(
'node_modules/.bin/_mocha',
run
run,
)
}
if (options.fgrep) {
commandAndArguments.args.push(
'--fgrep',
options.fgrep
options.fgrep,
)
}
@@ -98,7 +98,7 @@ commandAndArguments.args.push(
'--reporter',
'mocha-multi-reporters',
'--reporter-options',
'configFile=../../mocha-reporter-config.json'
'configFile=../../mocha-reporter-config.json',
)
const env = _.clone(process.env)

View File

@@ -36,7 +36,7 @@ module.exports = (on, config) => {
expect(defaultPrefs.foo).to.eq('bar')
expect(defaultSecure.bar).to.eq('baz')
expect(localState.baz).to.eq('quux')
}
},
)
.thenReturn(null)
},

View File

@@ -36,7 +36,7 @@ module.exports = (on, config) => {
// this is needed to ensure correct error screenshot / video recording
// resolution of exactly 1280x720 (height must account for firefox url bar)
options.args = options.args.concat(
['-width', '1280', '-height', '794']
['-width', '1280', '-height', '794'],
)
}

View File

@@ -225,12 +225,12 @@ const copy = function () {
return Promise.join(
screenshots.copy(
screenshotsFolder,
path.join(ca, path.basename(screenshotsFolder))
path.join(ca, path.basename(screenshotsFolder)),
),
videoCapture.copy(
videosFolder,
path.join(ca, path.basename(videosFolder))
)
path.join(ca, path.basename(videosFolder)),
),
)
}
}
@@ -393,7 +393,7 @@ const e2e = {
if (_.isArray(npmI)) {
const copyToE2ENodeModules = (module) => {
return fs.copyAsync(
path.resolve('node_modules', module), Fixtures.path(`projects/e2e/node_modules/${module}`)
path.resolve('node_modules', module), Fixtures.path(`projects/e2e/node_modules/${module}`),
)
}

View File

@@ -764,7 +764,7 @@ describe('lib/modes/run', () => {
},
{
show: true,
}
},
)
})
})

View File

@@ -122,14 +122,14 @@ describe('lib/scaffold', () => {
it('creates both integrationFolder and example specs when integrationFolder does not exist', function () {
return Promise.join(
cypressEx.getPathToExamples(),
scaffold.integration(this.integrationFolder, this.cfg)
scaffold.integration(this.integrationFolder, this.cfg),
)
.spread((exampleSpecs) => {
return Promise.join(
fs.statAsync(`${this.integrationFolder}/examples/actions.spec.js`).get('size'),
fs.statAsync(exampleSpecs[0]).get('size'),
fs.statAsync(`${this.integrationFolder}/examples/location.spec.js`).get('size'),
fs.statAsync(exampleSpecs[8]).get('size')
fs.statAsync(exampleSpecs[8]).get('size'),
).spread((size1, size2, size3, size4) => {
expect(size1).to.eq(size2)
@@ -244,7 +244,7 @@ describe('lib/scaffold', () => {
.then(() => {
return Promise.join(
fs.readFileAsync(`${this.supportFolder}/commands.js`, 'utf8'),
fs.readFileAsync(`${this.supportFolder}/index.js`, 'utf8')
fs.readFileAsync(`${this.supportFolder}/index.js`, 'utf8'),
).spread((commandsContents, indexContents) => {
snapshot(commandsContents)

View File

@@ -495,11 +495,11 @@ describe('lib/screenshots', () => {
return screenshots.save(
{ name: 'foo bar\\baz/my-screenshot', specName: 'foo.spec.js', testFailure: false },
details,
this.config.screenshotsFolder
this.config.screenshotsFolder,
)
.then((result) => {
const expectedPath = path.join(
this.config.screenshotsFolder, 'foo.spec.js', 'foo bar', 'baz', 'my-screenshot.png'
this.config.screenshotsFolder, 'foo.spec.js', 'foo bar', 'baz', 'my-screenshot.png',
)
const actualPath = path.normalize(result.path)
@@ -536,11 +536,11 @@ describe('lib/screenshots', () => {
return screenshots.save(
{ name: 'with-buffer', specName: 'foo.spec.js', testFailure: false },
details,
this.config.screenshotsFolder
this.config.screenshotsFolder,
)
.then((result) => {
const expectedPath = path.join(
this.config.screenshotsFolder, 'foo.spec.js', 'with-buffer.png'
this.config.screenshotsFolder, 'foo.spec.js', 'with-buffer.png',
)
const actualPath = path.normalize(result.path)
@@ -585,7 +585,7 @@ describe('lib/screenshots', () => {
}, 'png', 'path/to/screenshots')
.then((p) => {
expect(p).to.eq(
'path/to/screenshots/examples/user/list.js/quux/lorem.png'
'path/to/screenshots/examples/user/list.js/quux/lorem.png',
)
})
})
@@ -599,7 +599,7 @@ describe('lib/screenshots', () => {
}, 'png', 'path/to/screenshots')
.then((p) => {
expect(p).to.eq(
'path/to/screenshots/examples/user/list.js/bar -- baz (failed).png'
'path/to/screenshots/examples/user/list.js/bar -- baz (failed).png',
)
})
})
@@ -613,7 +613,7 @@ describe('lib/screenshots', () => {
}, 'png', 'path/to/screenshots')
.then((p) => {
expect(p).to.eq(
'path/to/screenshots/examples$/user/list.js/bar -- baz -- 語言 (failed).png'
'path/to/screenshots/examples$/user/list.js/bar -- baz -- 語言 (failed).png',
)
})
})

View File

@@ -14,7 +14,7 @@ globAsync('packages/server/__snapshots__/*')
return str
.replace(
contentBetweenBackticksRe,
'`\n$1\n`'
'`\n$1\n`',
)
.split('`\n\n\n').join('`\n\n')
.split('\n\n\n\n`').join('\n\n\n`')

View File

@@ -13,7 +13,7 @@ function hasCloudflareEnvironmentVars () {
export function purgeCloudflareCache (url) {
la(
hasCloudflareEnvironmentVars(),
'Cannot purge Cloudflare cache without credentials. Ensure that the CF_TOKEN and CF_ZONEID environment variables are set.'
'Cannot purge Cloudflare cache without credentials. Ensure that the CF_TOKEN and CF_ZONEID environment variables are set.',
)
la(check.webUrl(url), 'Missing url to purge from Cloudflare.')

View File

@@ -39,7 +39,7 @@ if (isWindows() && process.env.APPVEYOR) {
assert.equal(
os.arch(),
'ia32',
getErrMsg('ia32')
getErrMsg('ia32'),
)
break
@@ -47,7 +47,7 @@ if (isWindows() && process.env.APPVEYOR) {
assert.equal(
os.arch(),
'x64',
getErrMsg('x64')
getErrMsg('x64'),
)
break
@@ -61,7 +61,7 @@ const join = require('path').join
const nodeVersionNeededString = read(
join(__dirname, '..', '.node-version'),
'utf8'
'utf8',
)
const nodeVersionNeeded = nodeVersionNeededString.split('.')

View File

@@ -17,7 +17,7 @@ module.exports = (fileInfo, api) => {
const ifStatement = j.ifStatement(
node.test.left,
node.consequent,
node.alternate
node.alternate,
)
return [

View File

@@ -72,7 +72,7 @@ function generateIfStatement (j, cases) {
ifStatement = j.ifStatement(
c.test,
content,
ifStatement
ifStatement,
)
})

View File

@@ -145,6 +145,6 @@ bump
getStatusAndMessage,
cliOptions.provider,
shortNpmVersion,
platform
platform,
)
.catch(onError)

View File

@@ -24,7 +24,7 @@ describe('bump', () => {
la(
R.equals(filtered, projects),
'should have kept all projects',
filtered
filtered,
)
})
@@ -34,7 +34,7 @@ describe('bump', () => {
la(
projects.length,
'there should be at least a few projects in the list of projects',
projects
projects,
)
const filter = bump.getFilterByProvider('circle', 'darwin')

View File

@@ -140,7 +140,7 @@ describe('move-binaries', () => {
.withArgs(
`${latestMacBuild}cypress.zip`,
'desktop/3.3.0/darwin-x64/cypress.zip',
aws.bucket
aws.bucket,
)
.resolves()

View File

@@ -47,7 +47,7 @@ describe('upload', () => {
la(
folder === 'desktop/3.3.0/darwin-x64/',
'wrong upload desktop folder',
folder
folder,
)
})
})

View File

@@ -67,7 +67,7 @@ describe('packages', () => {
}),
},
},
}
},
)
const res = await packages.getPackagesWithScript('build')

View File

@@ -23,7 +23,7 @@ describe('konfig check', () => {
!cwd.includes(join('packages', 'server')),
'process CWD is set to',
cwd,
'for some reason'
'for some reason',
)
// if the above assertion breaks, it means some script in binary scripts
// loads "lib/konfig" directly, which unexpectedly changes the CWD.
@@ -38,7 +38,7 @@ describe('konfig check', () => {
'previous cwd',
cwd,
'differs after loading konfig',
cwdAfter
cwdAfter,
)
la(is.fn(konfig), 'expected konfig to be a function', konfig)

View File

@@ -54,7 +54,7 @@ la(is.unemptyString(version), 'missing NEXT_DEV_VERSION')
console.log('building version', version)
shell.exec(
`node scripts/binary.js upload-npm-package --file cli/build/${filename} --version ${version}`
`node scripts/binary.js upload-npm-package --file cli/build/${filename} --version ${version}`,
)
const arch = os.arch()
@@ -77,7 +77,7 @@ const result = shell.exec('yarn list --dev --depth 0 || true', {
if (result.stdout.includes('nodemon')) {
console.error('Hmm, server package includes dev dependency "coveralls"')
console.error(
'which means somehow we are including dev dependencies in the output bundle'
'which means somehow we are including dev dependencies in the output bundle',
)
console.error('see https://github.com/cypress-io/cypress/issues/2896')
@@ -115,15 +115,15 @@ if (isPullRequest()) {
shell.exec('yarn binary-zip')
shell.ls('-l', '*.zip')
shell.exec(
`node scripts/binary.js upload-unique-binary --file cypress.zip --version ${version}`
`node scripts/binary.js upload-unique-binary --file cypress.zip --version ${version}`,
)
shell.cat('binary-url.json')
shell.exec(
'node scripts/add-install-comment.js --npm npm-package-url.json --binary binary-url.json'
'node scripts/add-install-comment.js --npm npm-package-url.json --binary binary-url.json',
)
shell.exec(
'node scripts/test-other-projects.js --npm npm-package-url.json --binary binary-url.json --provider appVeyor'
'node scripts/test-other-projects.js --npm npm-package-url.json --binary binary-url.json --provider appVeyor',
)
}

105
yarn.lock
View File

@@ -5129,7 +5129,7 @@ ansi-cyan@^0.1.1:
dependencies:
ansi-wrap "0.1.0"
ansi-escapes@4.3.0:
ansi-escapes@4.3.0, ansi-escapes@^4.2.1:
version "4.3.0"
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.0.tgz#a4ce2b33d6b214b7950d8595c212f12ac9cc569d"
integrity sha512-EiYhwo0v255HUL6eDyuLrXEkTi7WwVCLAw+SeOQ7M7qdun1z1pum4DEm/nuqIVbPvi9RPPc9k9LbyBv6H0DwVg==
@@ -8407,6 +8407,13 @@ cli-cursor@^2.0.0, cli-cursor@^2.1.0:
dependencies:
restore-cursor "^2.0.0"
cli-cursor@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307"
integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==
dependencies:
restore-cursor "^3.1.0"
cli-table3@0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.5.1.tgz#0252372d94dfc40dbd8df06005f48f31f656f202"
@@ -11199,7 +11206,7 @@ eslint-scope@^5.0.0:
esrecurse "^4.1.0"
estraverse "^4.1.1"
eslint-utils@^1.3.1, eslint-utils@^1.4.3:
eslint-utils@^1.4.3:
version "1.4.3"
resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f"
integrity sha512-fbBN5W2xdY45KulGXmLHZ3c3FHfVYmKg0IrAKGOkT/464PQsx2UeIzfz1RmEci+KLm1bBaAzZAh8+/E+XAeZ8Q==
@@ -11211,10 +11218,10 @@ eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0:
resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2"
integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A==
eslint@6.1.0:
version "6.1.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.1.0.tgz#06438a4a278b1d84fb107d24eaaa35471986e646"
integrity sha512-QhrbdRD7ofuV09IuE2ySWBz0FyXCq0rriLTZXZqaWSI79CVtHVRdkFuFTViiqzZhkCgfOh9USpriuGN2gIpZDQ==
eslint@6.8.0:
version "6.8.0"
resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.8.0.tgz#62262d6729739f9275723824302fb227c8c93ffb"
integrity sha512-K+Iayyo2LtyYhDSYwz5D5QdWw0hCacNzyq1Y821Xna2xSJj7cijoLLYmLxTQgcgZ9mC61nryMy9S7GRbYpI5Ig==
dependencies:
"@babel/code-frame" "^7.0.0"
ajv "^6.10.0"
@@ -11223,19 +11230,19 @@ eslint@6.1.0:
debug "^4.0.1"
doctrine "^3.0.0"
eslint-scope "^5.0.0"
eslint-utils "^1.3.1"
eslint-visitor-keys "^1.0.0"
espree "^6.0.0"
eslint-utils "^1.4.3"
eslint-visitor-keys "^1.1.0"
espree "^6.1.2"
esquery "^1.0.1"
esutils "^2.0.2"
file-entry-cache "^5.0.1"
functional-red-black-tree "^1.0.1"
glob-parent "^5.0.0"
globals "^11.7.0"
globals "^12.1.0"
ignore "^4.0.6"
import-fresh "^3.0.0"
imurmurhash "^0.1.4"
inquirer "^6.4.1"
inquirer "^7.0.0"
is-glob "^4.0.0"
js-yaml "^3.13.1"
json-stable-stringify-without-jsonify "^1.0.1"
@@ -11244,7 +11251,7 @@ eslint@6.1.0:
minimatch "^3.0.4"
mkdirp "^0.5.1"
natural-compare "^1.4.0"
optionator "^0.8.2"
optionator "^0.8.3"
progress "^2.0.0"
regexpp "^2.0.1"
semver "^6.1.2"
@@ -11254,7 +11261,7 @@ eslint@6.1.0:
text-table "^0.2.0"
v8-compile-cache "^2.0.3"
espree@^6.0.0:
espree@^6.1.2:
version "6.1.2"
resolved "https://registry.yarnpkg.com/espree/-/espree-6.1.2.tgz#6c272650932b4f91c3714e5e7b5f5e2ecf47262d"
integrity sha512-2iUPuuPP+yW1PZaMSDM9eyVf8D5P0Hi8h83YtZ5bPc/zHYjII5khoixIUTMO794NOY8F/ThF1Bo8ncZILarUTA==
@@ -11429,18 +11436,16 @@ execa@1.0.0, execa@^1.0.0:
signal-exit "^3.0.0"
strip-eof "^1.0.0"
execa@3.3.0:
version "3.3.0"
resolved "https://registry.yarnpkg.com/execa/-/execa-3.3.0.tgz#7e348eef129a1937f21ecbbd53390942653522c1"
integrity sha512-j5Vit5WZR/cbHlqU97+qcnw9WHRCIL4V1SVe75VcHcD1JRBdt8fv0zw89b7CQHQdUHTt2VjuhcF5ibAgVOxqpg==
execa@2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/execa/-/execa-2.0.0.tgz#5524c9739710e603e97c6dfc3f6ff6bff2819885"
integrity sha512-+ym7S09yUVPHEhYBsdLm53ZjCmCSeAQVtM/iN9dDj9tbvcBnCeBXTXHPWR9HXzht+vslGROteM8bSUdr4YszUg==
dependencies:
cross-spawn "^7.0.0"
cross-spawn "^6.0.5"
get-stream "^5.0.0"
human-signals "^1.1.1"
is-stream "^2.0.0"
merge-stream "^2.0.0"
npm-run-path "^4.0.0"
onetime "^5.1.0"
npm-run-path "^3.0.0"
p-finally "^2.0.0"
signal-exit "^3.0.2"
strip-final-newline "^2.0.0"
@@ -11966,6 +11971,13 @@ figures@^2.0.0:
dependencies:
escape-string-regexp "^1.0.5"
figures@^3.0.0:
version "3.2.0"
resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af"
integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==
dependencies:
escape-string-regexp "^1.0.5"
file-entry-cache@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c"
@@ -13135,11 +13147,18 @@ global@~4.3.0:
min-document "^2.19.0"
process "~0.5.1"
globals@^11.1.0, globals@^11.12.0, globals@^11.7.0:
globals@^11.1.0, globals@^11.12.0:
version "11.12.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
globals@^12.1.0:
version "12.3.0"
resolved "https://registry.yarnpkg.com/globals/-/globals-12.3.0.tgz#1e564ee5c4dded2ab098b0f88f24702a3c56be13"
integrity sha512-wAfjdLgFsPZsklLJvOBUBmzYE8/CwhEqSBEMRXA3qxIiNtyqvjYurAtIfDh6chlEPUfmTY3MnZh5Hfh4q0UlIw==
dependencies:
type-fest "^0.8.1"
globals@^6.4.0:
version "6.4.1"
resolved "https://registry.yarnpkg.com/globals/-/globals-6.4.1.tgz#8498032b3b6d1cc81eebc5f79690d8fe29fabf4f"
@@ -14345,7 +14364,7 @@ inquirer@6.3.1:
strip-ansi "^5.1.0"
through "^2.3.6"
inquirer@^6.2.0, inquirer@^6.4.1:
inquirer@^6.2.0:
version "6.5.2"
resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.2.tgz#ad50942375d036d327ff528c08bd5fab089928ca"
integrity sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==
@@ -14364,6 +14383,25 @@ inquirer@^6.2.0, inquirer@^6.4.1:
strip-ansi "^5.1.0"
through "^2.3.6"
inquirer@^7.0.0:
version "7.0.4"
resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.4.tgz#99af5bde47153abca23f5c7fc30db247f39da703"
integrity sha512-Bu5Td5+j11sCkqfqmUTiwv+tWisMtP0L7Q8WrqA2C/BbBhy1YTdFrvjjlrKq8oagA/tLQBski2Gcx/Sqyi2qSQ==
dependencies:
ansi-escapes "^4.2.1"
chalk "^2.4.2"
cli-cursor "^3.1.0"
cli-width "^2.0.0"
external-editor "^3.0.3"
figures "^3.0.0"
lodash "^4.17.15"
mute-stream "0.0.8"
run-async "^2.2.0"
rxjs "^6.5.3"
string-width "^4.1.0"
strip-ansi "^5.1.0"
through "^2.3.6"
insert-module-globals@^7.0.0:
version "7.2.0"
resolved "https://registry.yarnpkg.com/insert-module-globals/-/insert-module-globals-7.2.0.tgz#ec87e5b42728479e327bd5c5c71611ddfb4752ba"
@@ -17818,7 +17856,7 @@ mute-stream@0.0.7:
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=
mute-stream@~0.0.4:
mute-stream@0.0.8, mute-stream@~0.0.4:
version "0.0.8"
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
@@ -18958,7 +18996,7 @@ optimist@^0.6.1:
minimist "~0.0.1"
wordwrap "~0.0.2"
optionator@^0.8.1, optionator@^0.8.2:
optionator@^0.8.1, optionator@^0.8.3:
version "0.8.3"
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==
@@ -21698,6 +21736,14 @@ restore-cursor@^2.0.0:
onetime "^2.0.0"
signal-exit "^3.0.2"
restore-cursor@^3.1.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e"
integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==
dependencies:
onetime "^5.1.0"
signal-exit "^3.0.2"
ret@~0.1.10:
version "0.1.15"
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
@@ -21872,6 +21918,13 @@ rxjs@^6.3.3, rxjs@^6.4.0:
dependencies:
tslib "^1.9.0"
rxjs@^6.5.3:
version "6.5.4"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.4.tgz#e0777fe0d184cec7872df147f303572d414e211c"
integrity sha512-naMQXcgEo3csAEGvw/NydRA0fuS2nDZJiw1YUWFKU7aPPAPGZEsD4Iimit96qwCieH6y614MCLYwdkrWx7z/7Q==
dependencies:
tslib "^1.9.0"
safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1:
version "5.1.2"
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"
@@ -23257,7 +23310,7 @@ string-width@^3.0.0, string-width@^3.1.0:
is-fullwidth-code-point "^2.0.0"
strip-ansi "^5.1.0"
string-width@^4.0.0, string-width@^4.2.0:
string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.0.tgz#952182c46cc7b2c313d1596e623992bd163b72b5"
integrity sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==