Skip to content

Commit

Permalink
Merge pull request #2397 from glific/bug/node
Browse files Browse the repository at this point in the history
Fixed test case and node issue for deployment
  • Loading branch information
mdshamoon authored May 23, 2023
2 parents ab4c4c7 + 375a568 commit 60282d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
"test:no-watch": "vitest run",
"test:coverage": "vitest run --coverage"
},
"engines": {
"node": ">=16.15.0 <=16.17.0"
},
"eslintConfig": {
"extends": "react-app"
},
Expand Down
1 change: 1 addition & 0 deletions src/components/floweditor/FlowEditor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ window.showFlowEditor = (node: any, config: any) => vi.fn();
const defaultWrapper = wrapperFunction(activeFlowMocks);

test('it should display the flowEditor', async () => {
mockedAxios.post.mockImplementation(() => Promise.resolve({ data: {} }));
const { container } = render(defaultWrapper);
await waitFor(() => {
expect(container.querySelector('#flow')).toBeInTheDocument();
Expand Down

0 comments on commit 60282d1

Please sign in to comment.