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 () => {
5858 */
5959 let assertions ;
6060 try {
61- assertions = ( await import ( `./assertions/${ camelCase ( ruleName ) } ` ) ) . default ;
61+ assertions = ( await import ( `./assertions/${ camelCase ( ruleName ) } .js ` ) ) . default ;
6262 } catch ( error ) {
6363 // eslint-disable-next-line no-console -- Reporting back to tester
6464 console . error ( error ) ;
@@ -84,7 +84,7 @@ const main = async () => {
8484 Reflect . deleteProperty ( assertion , 'ignoreReadme' ) ;
8585 assertion . parserOptions = defaultsDeep ( assertion . parserOptions , parserOptions ) ;
8686 for ( const error of /** @type {import('eslint').RuleTester.TestCaseError[] } */ (
87- assertion . errors
87+ assertion . errors || [ ]
8888 ) ) {
8989 if ( ! ( 'line' in error ) ) {
9090 count ++ ;
You can’t perform that action at this time.
0 commit comments