Skip to content

Commit

Permalink
feat: move to vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
thilllon committed Sep 17, 2024
1 parent cf9104e commit e00851f
Show file tree
Hide file tree
Showing 17 changed files with 721 additions and 166 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"**/node_modules": true,
"**/*.code-search": true
},
"vitest.commandLine": "npx vitest",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ pnpm dev
pnpm build
```

### Testing

We use [Jest](https://github.com/facebook/jest) to write tests. Run our test suite with this command:

```sh
pnpm test
```

### Code Style

We use [Prettier](https://prettier.io/) and tslint to maintain code style and best practices.
Expand Down
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ['@commitlint/config-conventional'] };
12 changes: 0 additions & 12 deletions jest.config.ts

This file was deleted.

26 changes: 10 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,39 +29,36 @@
"url": "https://ko-fi.com/thilllon"
}
],
"type": "commonjs",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
"default": "./dist/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
"default": "./dist/index.js"
}
}
},
"bin": {
"gitarist": "./dist/cli.mjs"
"gitarist": "./dist/cli.js"
},
"files": [
"dist"
],
"scripts": {
"prepare": "husky install && chmod +x .husky/*",
"typecheck": "tsc --noEmit",
"build:tsc": "tsc",
"build": "tsup",
"test": "vitest",
"format": "prettier --write --list-different .",
"prerelease": "pnpm format && pnpm lint && pnpm build",
"release": "release-it",
"lint": "eslint --fix .",
"test": "jest",
"test:esm": "cross-env NODE_OPTIONS=--experimental-vm-modules npx jest",
"test:cov": "jest --coverage",
"prepare": "husky install && chmod +x .husky/*"
"prerelease": "pnpm format && pnpm lint && pnpm build",
"release": "release-it"
},
"dependencies": {
"@faker-js/faker": "^8.4.1",
Expand All @@ -83,8 +80,6 @@
"@commitlint/config-conventional": "^19.2.2",
"@eslint/js": "^9.3.0",
"@swc/core": "^1.5.7",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/lodash": "^4.17.4",
"@types/node": "^20.12.12",
"@types/parse-git-config": "^3.0.4",
Expand All @@ -94,15 +89,14 @@
"eslint": "^9.3.0",
"git-cz": "^4.9.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"release-it": "^17.3.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsup": "^8.0.2",
"tsx": "^4.10.5",
"typescript": "^5.4.5",
"typescript-eslint": "^7.10.0"
"typescript-eslint": "^7.10.0",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit e00851f

Please sign in to comment.