Skip to content

Commit 34d43a6

Browse files
authored
test: use .test suffix for test files (#261)
* test: use `.test` suffix for test files * update `includes` pattern * quote mocha test glob
1 parent 7b30f18 commit 34d43a6

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
@@ -70,7 +70,7 @@
7070
"lint": "eslint",
7171
"fmt": "prettier --write .",
7272
"fmt:check": "prettier --check .",
73-
"test": "mocha tests/**/*.js",
73+
"test": "mocha \"tests/**/*.test.js\"",
7474
"test:coverage": "c8 npm test",
7575
"test:jsr": "npx jsr@latest publish --dry-run",
7676
"test:types": "npm run build && 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
@@ -7,5 +7,5 @@
77
"exactOptionalPropertyTypes": true
88
},
99
"files": [],
10-
"include": [".", "../../dist"]
10+
"include": ["**/*.test.{ts,cts}", "../../dist"]
1111
}

0 commit comments

Comments
 (0)