Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
npx --no-install lint-staged
pnpm run ts:check
pnpm run test --coverage --verbose=false
pnpm run test:coverage
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ pnpm test
Run all the tests and generate a test coverage report with:

```bash
pnpm test:cov
pnpm test:coverage
```

> **Note:** you can pass any jest argument at the end of both commands, this can be useful to specific run tests based
Expand Down Expand Up @@ -276,7 +276,7 @@ Before submitting a PR (pull request), verify that all checks pass:
```
4. **Unit Tests**
```bash
pnpm test:cov
pnpm test:coverage
```
5. **Production Build Check**
```bash
Expand Down Expand Up @@ -360,7 +360,7 @@ commands**:
- **Unit Tests**: runs all tests and checks if test coverage meets the required threshold.

```bash
pnpm test:cov
pnpm test:coverage
```

- **Build Check (Production)**: confirms that the client can successfully build for production.
Expand Down
19 changes: 0 additions & 19 deletions jest.config.js

This file was deleted.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"prepare": "husky",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"test": "jest --verbose",
"test:cov": "jest --verbose --coverage",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"ts:check": "tsc -p tsconfig.build.json --noEmit",
"watch": "pnpm run build --watch",
"prepack": "pnpm exec ./scripts/pre-pack.sh"
Expand All @@ -75,20 +75,19 @@
"@strapi/eslint-config": "0.2.1",
"@types/node": "^20",
"@types/debug": "4.1.12",
"@types/jest": "29.5.14",
"@types/qs": "6.9.18",
"@vitest/coverage-v8": "latest",
"@typescript-eslint/eslint-plugin": "8.21.0",
"@typescript-eslint/parser": "8.21.0",
"eslint": "8.57.1",
"eslint-plugin-import": "2.31.0",
"husky": "9.1.7",
"jest": "29.7.0",
"lint-staged": "15.4.1",
"prettier": "3.4.2",
"rimraf": "6.0.1",
"rollup": "4.31.0",
"ts-jest": "29.2.5",
"typescript": "5.7.3"
"typescript": "5.7.3",
"vitest": "^4.0.3"
},
"packageManager": "pnpm@9.1.0",
"engines": {
Expand Down
Loading