Files
designcraft/apps/designcraft-cli/tests/it
Hamza 2b0d8a4c10 test(cli): don't assert the operating system's wording for a missing file
Review caught a test that cannot pass on Windows: it asserted the error for
`validate-pdf --nope` contains "No such file", which is the unix phrasing.
Windows says "The system cannot find the file specified", so the assertion
failed there even when the command refused the path correctly -- the same
mistake as the `\\?\C:\` one on #1909, and in a test whose point is to run
everywhere.

It asserts the error names the path; `failed()` already checks the exit code
and the stream. The companion check that a `<sub> --help` run did not open a
file now looks for either operating system's wording, so it catches that on
Windows too rather than only on unix.
2026-10-29 13:53:11 +05:00
..