Upgrading
There are some significant breaking changes between V4 and V5, so Betterer has a new upgrade
command to help! This will be useful in the future if there are more breaking changes.
It can't upgrade everything for you, but for not it will attempt to upgrade your test definition file to the new syntax so your tests can run in parallel.
Upgrade
By default the upgrade
command will not actually change anything. You can run it to check what would change, and then actually do the upgrade by passing the --save
option
- Yarn
- npm
Run yarn betterer upgrade
to upgrade your Betterer configuration.
Run npm run betterer upgrade
to upgrade your Betterer configuration.
Upgrade options
You can pass the following options to upgrade
:
Option | Description | Default |
---|---|---|
-c , --config [value] | Path to test definition file relative to CWD. Takes multiple values | ./.betterer.ts |
--save | 'When present, Betterer will save the result of an upgrade to disk. | false |