We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cec76df commit be6b6a1Copy full SHA for be6b6a1
lib/node_modules/@stdlib/_tools/eslint/rules/first-unit-test/lib/main.js
@@ -76,7 +76,11 @@ function main( context ) {
76
hasMainExportTest = false;
77
tOkExists = false;
78
filename = context.getFilename();
79
- if ( contains( filename, 'test.' ) && !contains( filename, 'fixtures' ) ) {
+ if (
80
+ contains( filename, '/test/' ) &&
81
+ contains( filename, 'test.' ) &&
82
+ !contains( filename, 'fixtures' )
83
+ ) {
84
if ( endsWith( filename, 'cli.js' ) ) {
85
forCLI = true;
86
}
0 commit comments