eslint-plugin-hex-under 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -86,11 +86,15 @@ export default = [
|
|
|
86
86
|
## Testing & Code Coverage
|
|
87
87
|
|
|
88
88
|
This project uses **Vitest** as its test runner with comprehensive code coverage tracking. All tests are written using Vitest's modern testing framework and ESLint's RuleTester for validating rule behavior.
|
|
89
|
+
Additionally this project uses bats to test the `eslint --fix` command's output.
|
|
89
90
|
|
|
90
91
|
### Running Tests
|
|
91
92
|
|
|
92
93
|
```sh
|
|
93
94
|
# Run all tests once
|
|
95
|
+
npm run test:all
|
|
96
|
+
|
|
97
|
+
# Run vitest tests
|
|
94
98
|
npm run test
|
|
95
99
|
|
|
96
100
|
# Run tests in watch mode (for development)
|
|
@@ -98,4 +102,7 @@ npm run test:watch
|
|
|
98
102
|
|
|
99
103
|
# Run tests with coverage report
|
|
100
104
|
npm run coverage
|
|
105
|
+
|
|
106
|
+
# Run bats tests
|
|
107
|
+
npm run test:bats
|
|
101
108
|
```
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-hex-under",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/eslint-plugin-hex-under.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"lint": "prettier . --check && eslint .",
|
|
8
8
|
"test": "vitest run",
|
|
9
|
-
"test:
|
|
9
|
+
"test:all": "npm run test && npm run test:bats",
|
|
10
|
+
"test:bats": "bats test/*.bats",
|
|
10
11
|
"test:watch": "vitest",
|
|
11
12
|
"coverage": "vitest run --coverage"
|
|
12
13
|
},
|