Skip to content

Commit

Permalink
test: remove jest-extended usage (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey authored Dec 13, 2021
1 parent 3ab987d commit 5bf6436
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"eslint": "^7.31.0",
"eslint-remote-tester": "^2.0.1",
"eslint-remote-tester-repositories": "^0.0.3",
"jest-extended": "^0.11.5",
"kcd-scripts": "^11.2.2",
"typescript": "^4.5.3"
},
Expand Down
7 changes: 3 additions & 4 deletions src/__tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { rules, generateRecommendedConfig } from "../index";
import "jest-extended";
import { generateRecommendedConfig, rules } from "../";

it("should have all the rules", () => {
expect(Object.keys(rules).length).toBeGreaterThan(0);
Expand All @@ -8,9 +7,9 @@ it("should have all the rules", () => {
it.each(Object.keys(rules))("%s should export required fields", (ruleName) => {
const rule = rules[ruleName];
expect(rule).toHaveProperty("create", expect.any(Function));
expect(rule.meta.docs.url).not.toBeEmpty();
expect(rule.meta.docs.url).not.toBe("");
expect(rule.meta.docs.category).toBe("Best Practices");
expect(rule.meta.docs.description).not.toBeEmpty();
expect(rule.meta.docs.description).not.toBe("");
});

it("should have a recommended config with recommended rules", () => {
Expand Down

0 comments on commit 5bf6436

Please sign in to comment.