Skip to content

Commit

Permalink
chore: switch to vitest (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 authored Jun 6, 2024
1 parent ed8c541 commit 0cb6ddb
Show file tree
Hide file tree
Showing 128 changed files with 7,358 additions and 9,014 deletions.
8 changes: 0 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,5 @@
}
]
},
"overrides": [
{
"env": { "jest": true },
"files": ["test/**"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"]
}
],
"ignorePatterns": ["schema.generated.ts"]
}
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Test
on:
push:
branches: [ main, next, prerelease ]
branches: [main, next, prerelease]
pull_request:

jobs:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run Jest
- name: Run Tests
run: npm run test:unit

test-e2e:
Expand All @@ -63,8 +63,8 @@ jobs:

- name: Start Tolgee Container
run: npm run tolgee:start
- name: Run Jest
run: npm run test:e2e-run
- name: Run Tests
run: npm run test:e2e
- name: Stop Tolgee Container
run: npm run tolgee:stop
if: always()
Expand Down
1 change: 0 additions & 1 deletion HACKING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Tests:
- `test`: Run all tests (Unit & E2E). Will start (and stop) the E2E Tolgee test instance
- `test:unit`: Run unit tests only.
- `test:e2e`: Run e2e tests only. Will start (and stop) the E2E Tolgee test instance
- `test:e2e-run`: Run e2e tests only. Will not start/stop the E2E Tolgee test instance

E2E test instance:
- `tolgee:start`: Start the E2E testing instance. Will be available on port 22222.
Expand Down
5 changes: 0 additions & 5 deletions jest.config.ts

This file was deleted.

24 changes: 0 additions & 24 deletions jest.e2e.config.ts

This file was deleted.

19 changes: 0 additions & 19 deletions jest.unit.config.ts

This file was deleted.

Loading

0 comments on commit 0cb6ddb

Please sign in to comment.