File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export { default as onStartup } from './onStartup'
22export { default as onTutorialConfig } from './onTutorialConfig'
33export { default as onTutorialContinueConfig } from './onTutorialContinueConfig'
44export { default as onValidateSetup } from './onValidateSetup'
5- export { default as onRunReset } from './onRunReset '
5+ export { default as onRunLatestReset } from './onRunLatestReset '
66export { default as onErrorPage } from './onErrorPage'
77export { onRunTest , onTestPass } from './onTest'
88export { onSetupActions , onSolutionActions } from './onActions'
Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ import { exec } from '../services/node'
55import reset from '../services/reset'
66import getLastCommitHash from '../services/reset/lastHash'
77
8- const onRunReset = async ( context : Context ) => {
8+ // reset to the start of the last test
9+ const onRunLatestReset = async ( context : Context ) => {
910 // reset to timeline
1011 const tutorial : TT . Tutorial | null = context . tutorial . get ( )
1112 const position : T . Position = context . position . get ( )
@@ -29,4 +30,4 @@ const onRunReset = async (context: Context) => {
2930 }
3031}
3132
32- export default onRunReset
33+ export default onRunLatestReset
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class Channel implements Channel {
8080 actions . onRunTest ( action )
8181 return
8282 case 'EDITOR_RUN_RESET' :
83- actions . onRunReset ( this . context )
83+ actions . onRunLatestReset ( this . context )
8484 return
8585 default :
8686 logger ( `No match for action type: ${ actionType } ` )
You can’t perform that action at this time.
0 commit comments