Skip to content

One test occasionally fails #222

@mdjermanovic

Description

@mdjermanovic

This test on CI sometimes fails, sometimes not:

// Just make sure the Rule generator ran. More thorough tests are in the separate Rule test file.
it("creates expected files", async () => {
const expected = [
"docs/rules/no-unused-vars.md",
"lib/rules/no-unused-vars.js",
"tests/lib/rules/no-unused-vars.js"
];
assert.file(expected);
});

Here's an example of test failure:

https://github.com/eslint/generator-eslint/actions/runs/17326146848/job/49190660431

1) ESLint Main Generator
       User answers with Rule
         creates expected files:

      AssertionError [ERR_ASSERTION]: docs/rules/no-unused-vars.md, no such file or directory
      + expected - actual

      -false
      +true
      
      at /home/runner/work/generator-eslint/generator-eslint/node_modules/yeoman-assert/index.js:56:12
      at Array.forEach (<anonymous>)
      at assert.file (node_modules/yeoman-assert/index.js:54:26)
      at Context.<anonymous> (file:///home/runner/work/generator-eslint/generator-eslint/tests/app/index.js:84:20)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Ready to Implement

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions