Skip to content

bench test asserts a moc error message that newer moc no longer emits #656

Description

@Kamirus

cli/tests/bench.test.ts:23 ("rejects moc args with embedded spaces") asserts stderr matches /invalid warning code/. With a newer moc the run still fails as intended, but moc prints its --help output instead of that message, so the assertion fails.

CI pins moc 0.14.13 and passes, so this only shows up locally — it is the one failing test on main on a dev machine, which makes it easy to mistake for damage from whatever you are working on.

Either assert the exit code and a version-agnostic fragment, or pin the moc version for that test case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcli

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions