chore: add a deflake utility (#11111)

This commit is contained in:
Nikolay Vitkov
2023-10-11 19:21:50 +02:00
committed by GitHub
parent e34716ab0e
commit 4a2a37b825
10 changed files with 167 additions and 64 deletions

View File

@@ -26,6 +26,11 @@ module.exports = {
selector:
'MemberExpression[object.name="puppeteer"][property.name="launch"]',
},
{
message: 'Unexpected debugging mocha test.',
selector:
'CallExpression[callee.object.name="it"] > MemberExpression > Identifier[name="deflake"], CallExpression[callee.object.name="it"] > MemberExpression > Identifier[name="deflakeOnly"]',
},
],
},
},