Skip to content

Commit 6f6197f

Browse files
authored
test: use .test suffix for test files (#146)
* test: use .test suffix for test files * quote mocha test glob
1 parent 602622b commit 6f6197f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"lint": "eslint",
7070
"fmt": "prettier --write .",
7171
"fmt:check": "prettier --check .",
72-
"test": "mocha tests/**/*.js",
72+
"test": "mocha \"tests/**/*.test.js\"",
7373
"test:coverage": "c8 npm test",
7474
"test:jsr": "npx jsr@latest publish --dry-run",
7575
"test:types": "tsc -p tests/types/tsconfig.json"
File renamed without changes.

tests/types/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
"erasableSyntaxOnly": true
1010
},
1111
"files": [],
12-
"include": [".", "../../dist"]
12+
"include": ["**/*.test.{ts,cts}", "../../dist"]
1313
}

0 commit comments

Comments
 (0)