File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ function lintManyFilesWithAllRecommendedRules({ numberOfFiles }) {
92
92
describe ( 'runtime' , ( ) => {
93
93
it ( 'should not take longer as the defined budget to lint many files with the recommended config' , ( ) => {
94
94
const nodeVersionMultiplier = getNodeVersionMultiplier ( ) ;
95
- const budget = 3500000 / cpuSpeed * nodeVersionMultiplier ;
95
+ const budget = 3750000 / cpuSpeed * nodeVersionMultiplier ;
96
96
97
97
const { medianDuration } = runBenchmark ( ( ) => {
98
98
lintManyFilesWithAllRecommendedRules ( { numberOfFiles : 350 } ) ;
@@ -102,7 +102,7 @@ describe('runtime', () => {
102
102
} ) ;
103
103
104
104
it ( 'should not consume more memory as the defined budget to lint many files with the recommended config' , ( ) => {
105
- const budget = 2500000 ;
105
+ const budget = 2750000 ;
106
106
107
107
const { medianMemory } = runBenchmark ( ( ) => {
108
108
lintManyFilesWithAllRecommendedRules ( { numberOfFiles : 350 } ) ;
Original file line number Diff line number Diff line change @@ -11,14 +11,18 @@ module.exports = {
11
11
} ,
12
12
create ( context ) {
13
13
const astUtils = createAstUtils ( context . settings ) ;
14
+ const options = { modifiers : [ 'skip' ] , modifiersOnly : true } ;
15
+ const isTestCase = astUtils . buildIsTestCaseAnswerer ( options ) ;
16
+ const isDescribe = astUtils . buildIsDescribeAnswerer ( options ) ;
14
17
15
18
return {
16
19
CallExpression ( node ) {
17
- const options = { modifiers : [ 'skip' ] , modifiersOnly : true } ;
18
-
19
- if ( astUtils . isDescribe ( node , options ) || astUtils . isTestCase ( node , options ) ) {
20
+ if ( isDescribe ( node ) || isTestCase ( node ) ) {
20
21
const callee = node . callee ;
21
- const nodeToReport = callee . type === 'MemberExpression' ? callee . property : callee ;
22
+ const nodeToReport =
23
+ callee . type === 'MemberExpression' ?
24
+ callee . property :
25
+ callee ;
22
26
23
27
context . report ( {
24
28
node : nodeToReport ,
You can’t perform that action at this time.
0 commit comments