File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ const main = async () => {
58
58
*/
59
59
let assertions ;
60
60
try {
61
- assertions = ( await import ( `./assertions/${ camelCase ( ruleName ) } ` ) ) . default ;
61
+ assertions = ( await import ( `./assertions/${ camelCase ( ruleName ) } .js ` ) ) . default ;
62
62
} catch ( error ) {
63
63
// eslint-disable-next-line no-console -- Reporting back to tester
64
64
console . error ( error ) ;
@@ -84,7 +84,7 @@ const main = async () => {
84
84
Reflect . deleteProperty ( assertion , 'ignoreReadme' ) ;
85
85
assertion . parserOptions = defaultsDeep ( assertion . parserOptions , parserOptions ) ;
86
86
for ( const error of /** @type {import('eslint').RuleTester.TestCaseError[] } */ (
87
- assertion . errors
87
+ assertion . errors || [ ]
88
88
) ) {
89
89
if ( ! ( 'line' in error ) ) {
90
90
count ++ ;
You can’t perform that action at this time.
0 commit comments