Skip to content

Commit

Permalink
Removed jest
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 9, 2025
1 parent 789ed64 commit 08b94d8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 318 deletions.
8 changes: 0 additions & 8 deletions packages/frontend/__tests__/setupTests.ts

This file was deleted.

226 changes: 0 additions & 226 deletions packages/frontend/__tests__/testData.ts

This file was deleted.

40 changes: 0 additions & 40 deletions packages/frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import commentsConfig from "@eslint-community/eslint-plugin-eslint-comments/conf
import js from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import compat from "eslint-plugin-compat";
import jest from "eslint-plugin-jest";
import perfectionist from "eslint-plugin-perfectionist";
import preferArrowFunctions from "eslint-plugin-prefer-arrow-functions";
import prettierRecommended from "eslint-plugin-prettier/recommended";
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 @@ -257,44 +255,6 @@ export default tseslint.config(
"vitest/valid-expect-in-promise": "error",
},
},
{
...jest.configs["flat/recommended"],
...jest.configs["flat/style"],
files: ["__tests__/**/*.test.ts", "__test__/**/*.test.tsx"],
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",
},
},
{
files: ["*.config.js", "*.config.ts"],
languageOptions: {
Expand Down
24 changes: 0 additions & 24 deletions packages/frontend/jest.config.js

This file was deleted.

8 changes: 0 additions & 8 deletions packages/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08b94d8

Please sign in to comment.