-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: disable Jest addon for source files
Fixes #31
- Loading branch information
André Costa Lima
committed
Mar 14, 2018
1 parent
b60054d
commit 5145754
Showing
13 changed files
with
586 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
// eslint-disable-next-line quote-props | ||
testMatch: [ | ||
'**/test/index.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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"../../../../es6.js", | ||
"../../../../addons/jest.js" | ||
], | ||
"rules": { | ||
"strict": 0 | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// `no-disabled-tests` - Disallow disabled tests | ||
// --------------------------------------------------------------------- | ||
// Bad | ||
it.skip('no-disabled-tests bad', () => {}); | ||
// Good | ||
it('no-disabled-tests good', () => {}); | ||
|
||
// `no-focused-tests` - Disallow focused tests | ||
// --------------------------------------------------------------------- | ||
// Bad | ||
it.only('no-focused-tests bad', () => {}); | ||
// Good | ||
it('no-focused-tests good', () => {}); | ||
|
||
// `no-identical-title` - Disallow identical titles | ||
// --------------------------------------------------------------------- | ||
// Bad | ||
it('no-identical-title bad', () => {}); | ||
it('no-identical-title bad', () => {}); | ||
// Good | ||
it('no-identical-title good', () => {}); | ||
it('no-identical-title good 2', () => {}); | ||
|
||
// `valid-expect` - Enforce valid expect() usage | ||
// --------------------------------------------------------------------- | ||
// Bad | ||
it('valid-expect bad', () => { | ||
expect('something'); | ||
}); | ||
// Good | ||
it('valid-expect good', () => { | ||
expect('something').not.toEqual('else'); | ||
}); |
Oops, something went wrong.