diff --git a/addons/jest/src/hoc/provideJestResult.tsx b/addons/jest/src/hoc/provideJestResult.tsx index bea9583172bf..bc27d76c63e1 100644 --- a/addons/jest/src/hoc/provideJestResult.tsx +++ b/addons/jest/src/hoc/provideJestResult.tsx @@ -64,7 +64,7 @@ const provideTests = (Component: React.ComponentType) => const { api } = this.props; this.stopListeningOnStory(); - api.removeListener(ADD_TESTS, this.onAddTests); + api.off(ADD_TESTS, this.onAddTests); } onAddTests = ({ kind, storyName, tests }: HocState) => {