Skip to content

Commit

Permalink
Migrate tests to Vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
textbook committed Oct 31, 2024
1 parent 936e5c6 commit 1a15e56
Show file tree
Hide file tree
Showing 7 changed files with 1,678 additions and 3,170 deletions.
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import cyfConfig from "@codeyourfuture/eslint-config-standard";
import vitestEslint from "@vitest/eslint-plugin";
import tsEslint from "typescript-eslint";
import jestEslint from "eslint-plugin-jest";

const jestEslintRecommended = jestEslint.configs["flat/recommended"];
const vitestEslintRecommended = vitestEslint.configs.recommended;

/** @type {import("eslint").Linter.Config} */
export default [
Expand All @@ -14,10 +14,10 @@ export default [
...tsEslint.configs.stylistic,
{
files: ["src/**/*.test.ts"],
...jestEslintRecommended,
...vitestEslintRecommended,
rules: {
"@typescript-eslint/no-non-null-assertion": "off",
...jestEslintRecommended.rules,
...vitestEslintRecommended.rules,
},
},
];
17 changes: 0 additions & 17 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 1a15e56

Please sign in to comment.