-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix eslint for fixture specs (#5176)
* update eslint to lint files within 'fixtures' in support files - ignore some edge cases like jquery, jsx and obvious js files we wrote with broken code * Fixes from eslint to 'fixtures' files
- Loading branch information
1 parent
7100a41
commit b5b79fc
Showing
21 changed files
with
55 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/server/test/support/fixtures/projects/busted-support-file/cypress/support/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import "./does/not/exist" | ||
import './does/not/exist' |
1 change: 1 addition & 0 deletions
1
.../test/support/fixtures/projects/default-layout/cypress/integration/default_layout_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/* eslint-disable mocha/no-global-tests */ | ||
it('works', () => {}) |
2 changes: 1 addition & 1 deletion
2
...support/fixtures/projects/e2e/cypress/integration/browserify_babel_es2015_failing_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import "../../lib/fail" | ||
import '../../lib/fail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
packages/server/test/support/fixtures/projects/e2e/cypress/support/foo/bar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
console.log("bar") | ||
/* eslint-disable no-console */ | ||
console.log('bar') |
4 changes: 2 additions & 2 deletions
4
packages/server/test/support/fixtures/projects/e2e/lib/bar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import baz from "./baz" | ||
import baz from './baz' | ||
|
||
export default baz | ||
export default baz |
4 changes: 2 additions & 2 deletions
4
packages/server/test/support/fixtures/projects/e2e/lib/baz.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export default () => { | ||
return "baz" | ||
} | ||
return 'baz' | ||
} |
1 change: 1 addition & 0 deletions
1
packages/server/test/support/fixtures/projects/e2e/reporters/custom.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/server/test/support/fixtures/projects/ids/cypress/integration/bar.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
context("some context[i9w]", function(){ | ||
context('some context[i9w]', function () { | ||
it('tests[abc]') | ||
}) | ||
}) |
2 changes: 1 addition & 1 deletion
2
packages/server/test/support/fixtures/projects/ids/cypress/integration/baz.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import "./dom.jsx" | ||
import './dom.jsx' |
16 changes: 12 additions & 4 deletions
16
...erver/test/support/fixtures/projects/multiple-task-registrations/cypress/plugins/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
module.exports = (on) => { | ||
on('task', { | ||
'one' () { return 'one' }, | ||
'two' () { return 'two' }, | ||
'one' () { | ||
return 'one' | ||
}, | ||
'two' () { | ||
return 'two' | ||
}, | ||
}) | ||
|
||
on('task', { | ||
'two' () { return 'two again' }, | ||
'three' () { return 'three' }, | ||
'two' () { | ||
return 'two again' | ||
}, | ||
'three' () { | ||
return 'three' | ||
}, | ||
}) | ||
} |
4 changes: 2 additions & 2 deletions
4
packages/server/test/support/fixtures/projects/no-server/helpers/includes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
beforeEach(function(){ | ||
beforeEach(function () { | ||
|
||
}); | ||
}) |
5 changes: 3 additions & 2 deletions
5
packages/server/test/support/fixtures/projects/no-server/my-tests/test1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
it("tests without a server", function(){ | ||
/* eslint-disable mocha/no-global-tests */ | ||
it('tests without a server', function () { | ||
|
||
}); | ||
}) |
2 changes: 0 additions & 2 deletions
2
packages/server/test/support/fixtures/projects/plugin-extension/ext/background.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* global document */ | ||
|
||
const el = document.getElementById('extension') | ||
|
||
if (el) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/server/test/support/fixtures/projects/plugins-async-error/cypress/plugins/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* global Promise */ | ||
|
||
module.exports = (on) => { | ||
on('file:preprocessor', () => { | ||
return new Promise(() => { | ||
|
5 changes: 3 additions & 2 deletions
5
packages/server/test/support/fixtures/projects/todos/tests/test1.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
it("is truthy", function(){ | ||
/* eslint-disable mocha/no-global-tests */ | ||
it('is truthy', function () { | ||
expect(true).to.be.true | ||
}) | ||
}) |
3 changes: 1 addition & 2 deletions
3
...r/test/support/fixtures/projects/working-preprocessor/cypress/integration/another_spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/* global it, expect */ | ||
|
||
/* eslint-disable mocha/no-global-tests */ | ||
it('is another spec', () => { | ||
expect(false).to.be.false | ||
}) |
b5b79fc
There was a problem hiding this comment.
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.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.b5b79fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor has built the
win32 ia32
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.b5b79fc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor has built the
win32 x64
version of the Test Runner.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.b5b79fc
There was a problem hiding this comment.
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.You can install this pre-release platform-specific build using instructions at https://on.cypress.io/installing-cypress#Install-pre-release-version.
You will need to use custom
CYPRESS_INSTALL_BINARY
url and install Cypress using an url instead of the version.