Skip to content

test(nu-test): use parse-valid invalid names in name-validation fixture - #152

Merged
hakula139 merged 1 commit into
mainfrom
fix/nu-test-invalid-name-fixture
Nov 30, 2026
Merged

hakula139 merged 1 commit into
mainfrom
fix/nu-test-invalid-name-fixture

Conversation

@hakula139

Copy link
Copy Markdown
Member

Summary

  • Replace the whitespace-names fixture (test double, test trailing ) with invalid-names (test bad_underscore, test bad/slash) and rename the corresponding test in tests/nu-tooling/nu-test/nu-test.test.nu.
  • Newer Nushell rejects command names containing consecutive or trailing spaces at parse time (nu::parser::variable_not_valid), which prevented the fixture from loading before src/nu-test.nu could run scope commands and exercise its name-validation regex.
  • Keep src/nu-test.nu unchanged.

Verification

  • nix build .#checks.aarch64-darwin.nu-tooling-nu-test --no-link passed.
  • nix develop -c run-hooks passed.

@hakula139 hakula139 added the test Test coverage changes label Nov 30, 2026
@hakula139 hakula139 self-assigned this Nov 30, 2026
@hakula139
hakula139 merged commit da65dc5 into main Nov 30, 2026
3 checks passed
@hakula139
hakula139 deleted the fix/nu-test-invalid-name-fixture branch November 30, 2026 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test Test coverage changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant