YAML values like '1.0' (unquoted) parse as double, not String.
Changed parseStringList to use string interpolation ('$e') instead
of 'e as String', so numeric YAML scalars in labels/milestones
don't crash ticket parsing.
Also quote all '1.0' label values in existing ticket files so they
are unambiguously strings in YAML.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
757 B
757 B
| id | title | type | created | milestones | labels | |||
|---|---|---|---|---|---|---|---|---|
| DEW-0024 | Add CLI package smoke tests | task | 2026-04-25T19:53:00.484523Z |
|
|
packages/cli has no tests at all. Add packages/cli/test/cli_test.dart with:
- Smoke test: CommandRunner instantiates without throwing
- Help output: running with
--helpexits 0 and output contains 'kanban', 'init', 'mcp' - Version: running with
--versionexits 0 and output matches version in pubspec.yaml - Unknown command: running with an unknown subcommand exits non-zero
Use dart:io Process.run to invoke dart run packages/cli/bin/dew.dart with appropriate args, or instantiate the runner directly if that's cleaner.
Also add a test script to packages/cli/pubspec.yaml if not present.