You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe('Smelly Test Smell Detection Suite',()=>{
5
5
describe.each([[{
@@ -358,9 +358,21 @@ jest.mock("../");`,
358
358
total: 1,
359
359
description: `Smelly: Avoid mocking too many dependencies in the test file. Split the test cases to distribute the mocking load.`,
360
360
diagnostic: `Smelly: Avoid mocking too many dependencies in the test file. Split the test cases to distribute the mocking load.`,
361
+
}],
362
+
[{
363
+
code: `describe('test', () => {})`,
364
+
fileName: JAVASCRIPT_FILE,
365
+
index: 0,
366
+
type: EMPTY_DESCRIBE,
367
+
lineStart: 1,
368
+
lineEnd: 1,
369
+
startAt: 0,
370
+
endsAt: 26,
371
+
total: 1,
372
+
description: `Smelly: avoid empty test cases.`,
373
+
diagnostic: `Smelly: avoid empty test cases.`,
361
374
}]
362
375
])(`detect test smell for %s %s: type %s %s at index %s`,({ code, fileName, index, type, lineStart, lineEnd, startAt, endsAt, total, description, diagnostic })=>{
0 commit comments