Skip to content

Commit

Permalink
Removed jest
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 15, 2025
1 parent cd8dffe commit 009d0a6
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 2,401 deletions.
40 changes: 0 additions & 40 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import eslintComments from "@eslint-community/eslint-plugin-eslint-comments";
import commentsConfig from "@eslint-community/eslint-plugin-eslint-comments/configs";
import js from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import jest from "eslint-plugin-jest";
import perfectionist from "eslint-plugin-perfectionist";
import playwright from "eslint-plugin-playwright";
import preferArrowFunctions from "eslint-plugin-prefer-arrow-functions";
Expand Down Expand Up @@ -32,7 +31,6 @@ export default tseslint.config(
},
plugins: {
"eslint-comments": eslintComments,
jest,
"prefer-arrow-functions": preferArrowFunctions,
},
rules: {
Expand Down Expand Up @@ -268,44 +266,6 @@ export default tseslint.config(
"vitest/valid-expect-in-promise": "error",
},
},
{
...jest.configs["flat/recommended"],
...jest.configs["flat/style"],
files: ["__tests__/**/*.test.ts", "__tests__/test-utils/gas-stubs.ts"],
rules: {
...jest.configs["flat/recommended"].rules,
...jest.configs["flat/style"].rules,
"jest/consistent-test-it": ["error", { withinDescribe: "test" }],
"jest/no-conditional-in-test": "error",
"jest/no-confusing-set-timeout": "error",
"jest/no-duplicate-hooks": "error",
"jest/no-test-return-statement": "error",
"jest/no-untyped-mock-factory": "error",
"jest/padding-around-all": "error",
"jest/prefer-called-with": "error",
"jest/prefer-comparison-matcher": "error",
"jest/prefer-each": "error",
"jest/prefer-equality-matcher": "error",
"jest/prefer-expect-assertions": [
"error",
{
onlyFunctionsWithAsyncKeyword: true,
onlyFunctionsWithExpectInCallback: true,
onlyFunctionsWithExpectInLoop: true,
},
],
"jest/prefer-expect-resolves": "error",
"jest/prefer-hooks-in-order": "error",
"jest/prefer-hooks-on-top": "error",
"jest/prefer-jest-mocked": "error",
"jest/prefer-mock-promise-shorthand": "error",
"jest/prefer-spy-on": "error",
"jest/prefer-strict-equal": "error",
"jest/require-hook": "error",
"jest/require-to-throw-message": "error",
"jest/unbound-method": "error",
},
},
{
...playwright.configs["flat/recommended"],
files: ["tests/frontend/**/*.ts"],
Expand Down
30 changes: 0 additions & 30 deletions jest.config.js

This file was deleted.

Loading

0 comments on commit 009d0a6

Please sign in to comment.