Skip to content

Commit c82c874

Browse files
committed
add comments
1 parent 8423875 commit c82c874

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ The option can be given multiple times. The option accepts a comma-delimited lis
10611061
10621062
`--extension` now supports multipart extensions (e.g., `spec.js`), leading dots (`.js`) and combinations thereof (`.spec.js`);
10631063

1064-
### `--file <file|directory|glob>`
1064+
### `--file <file>`
10651065

10661066
> _WARNING: `--file` is incompatible with [parallel mode](#parallel-tests)._
10671067

lib/cli/collect-files.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ module.exports = ({
5959
fileArgs.forEach(file => {
6060
const fileAbsolutePath = path.resolve(file);
6161
try {
62+
// Used instead of fs.existsSync to ensure that file-ending less files are still resolved correctly
6263
require.resolve(fileAbsolutePath);
6364
} catch (err) {
6465
if (err.code === 'MODULE_NOT_FOUND') {

0 commit comments

Comments
 (0)