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
Prevent the use of unknown assertion methods and the access to members other than the assertion methods and `.context`, as well as some known misuses of `t`.
14
14
15
-
This rule is partly fixable. It can fix most misspelled assertion method namesand incorrect usages of `.skip`.
15
+
This rule is partly fixable. It can fix most misspelled assertion method names, suggest AVA equivalents for common assertion names from other test frameworks (tape, Jest, node:assert), and fix incorrect usages of `.skip`.
16
16
17
17
## Examples
18
18
@@ -23,6 +23,8 @@ test('main', t => {
23
23
// ❌
24
24
t(value); // `t` is not a function
25
25
t.depEqual(value, [2]); // Misspelled `.deepEqual` as `.depEqual`, fixable
26
+
t.ok(value); // Unknown assertion method `.ok`. Did you mean `.truthy`?, fixable
27
+
t.equal(a, b); // Unknown assertion method `.equal`. Did you mean `.is`?, fixable
26
28
t.contxt.foo=100; // Misspelled `.context` as `.contxt`, fixable
27
29
t.deepEqual.skip.skip(); // Too many chained uses of `.skip`, fixable
28
30
t.skip.deepEqual(1, 1); // `.skip` modifier should be the last in chain, fixable
0 commit comments