We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6946a5 commit 3133c4eCopy full SHA for 3133c4e
test/rules/index.js
@@ -58,7 +58,7 @@ const main = async () => {
58
*/
59
let assertions;
60
try {
61
- assertions = (await import(`./assertions/${camelCase(ruleName)}`)).default;
+ assertions = (await import(`./assertions/${camelCase(ruleName)}.js`)).default;
62
} catch (error) {
63
// eslint-disable-next-line no-console -- Reporting back to tester
64
console.error(error);
@@ -84,7 +84,7 @@ const main = async () => {
84
Reflect.deleteProperty(assertion, 'ignoreReadme');
85
assertion.parserOptions = defaultsDeep(assertion.parserOptions, parserOptions);
86
for (const error of /** @type {import('eslint').RuleTester.TestCaseError[]} */ (
87
- assertion.errors
+ assertion.errors || []
88
)) {
89
if (!('line' in error)) {
90
count++;
0 commit comments