Skip to content

Commit

Permalink
Replace Jest with Vitest, update writeup + CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wllmwu committed Apr 8, 2024
1 parent 78a7b8f commit eb99ed3
Show file tree
Hide file tree
Showing 12 changed files with 2,823 additions and 6,654 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/jest-tests.yaml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/run-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run tests
on:
pull_request:
branches: main
push:
branches: main
jobs:
frontend:
name: Frontend tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: Run tests
working-directory: frontend
run: |
npm ci
npm run test -- run
4 changes: 2 additions & 2 deletions frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
"plugin:import/typescript",
"prettier",
],
ignorePatterns: ["dist", ".eslintrc.cjs", "jest.config.cjs"],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
parserOptions: {
sourceType: "module",
Expand All @@ -24,7 +24,7 @@ module.exports = {
version: "detect",
},
},
plugins: ["react-refresh", "no-relative-import-paths", "jest"],
plugins: ["react-refresh", "no-relative-import-paths"],
rules: {
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],

Expand Down
12 changes: 0 additions & 12 deletions frontend/jest.config.cjs

This file was deleted.

Loading

0 comments on commit eb99ed3

Please sign in to comment.