From a6eb827563664b33f2d129ff2ef0571a0302e1cd Mon Sep 17 00:00:00 2001 From: Guilherme-NL Date: Wed, 11 Oct 2023 15:14:11 -0300 Subject: [PATCH] test: mock subscribeToProjectChanges --- spec/javascripts/components/projects/project_board_spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/javascripts/components/projects/project_board_spec.js b/spec/javascripts/components/projects/project_board_spec.js index a846fedce..2d01b89b8 100644 --- a/spec/javascripts/components/projects/project_board_spec.js +++ b/spec/javascripts/components/projects/project_board_spec.js @@ -3,6 +3,10 @@ import { shallow } from 'enzyme'; import { ProjectBoard } from 'components/projects/ProjectBoard'; import storyFactory from '../../support/factories/storyFactory'; +jest.mock('../../../../app/assets/javascripts/pusherSockets', () => ({ + subscribeToProjectChanges: jest.fn(), +})); + describe('', () => { const render = props => { const defaultProps = {