This adds fixtures for a number of different predictions scenarios (late night, service delays, etc), and makes it so that the fixture in use can be controlled via command-line flags: recording of new fixtures can be similarly controlled.
Use a particular fixture:
bin/debug --fixture=fixture-dir-name
# or
bin/debug -f=fixture-dir-name
Record a new fixture:
bin/debug --record -f=fixture-dir-name
# or
bin/debug -r -f=fixture-dir-name
bin/debug [options] can always be replaced by npm run with-fixtures -- [options]
This adds fixtures for a number of different predictions scenarios (late night, service delays, etc), and makes it so that the fixture in use can be controlled via command-line flags: recording of new fixtures can be similarly controlled.
Use a particular fixture:
Record a new fixture:
bin/debug [options]
can always be replaced bynpm run with-fixtures -- [options]