We don’t support this yet, but will soon: Ability to run tests for previous stages - #6 by rohitpaulk.
As a workaround in the meantime, if you’re working on an extension and want to test an earlier stage that isn’t in the extension, you can disable the extension and that’ll let you run tests on the base stages.
codecrafters test --previous
works now!