Skip to content

Commit

Permalink
test(require-hook): Add more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Feb 27, 2024
1 parent c79f177 commit 7258d98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/rules/prefer-web-first-assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Rule } from 'eslint';
import ESTree from 'estree';
import {
findParent,
getParent,
getRawValue,
getStringValue,
isBooleanLiteral,
Expand Down
4 changes: 4 additions & 0 deletions src/rules/require-hook.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ runRuleTester('require-hook', rule, {
],
valid: [
'test.use({ locale: "en-US" })',
'test("some test", async ({ page }) => { })',
'test.only("some test", async ({ page }) => { })',
'test.skip("some test", async ({ page }) => { })',
'test.fixme("some test", async ({ page }) => { })',
{ code: 'test.describe()' },
{ code: 'test.describe("just a title")' },
{ code: 'test.describe.configure({ mode: "parallel" })' },
Expand Down

0 comments on commit 7258d98

Please sign in to comment.