Skip to content

Commit 6430bd8

Browse files
committed
mock react-markdown in application detail SyntaxError: Unexpected token 'export'
https://app.circleci.com/pipelines/github/ademidun/atila-client-web-app/1772/workflows/ff5de33e-07e3-416b-af65-d01c488818b2/jobs/3343 see: remarkjs/react-markdown#635 (comment) Details: /home/circleci/repository/node_modules/react-markdown/index.js:6 export {uriTransformer} from './lib/uri-transformer.js' ^^^^^^ SyntaxError: Unexpected token 'export' 1 | import React from 'react' > 2 | import ReactMarkdown from 'react-markdown';
1 parent 1f367fe commit 6430bd8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/scenes/Application/ApplicationDetail.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const mockStore = configureStore();
1717
const guestUserStore = mockStore(initialReduxState);
1818
const loggedInStore = mockStore(initialReduxStateLoggedIn);
1919

20+
jest.mock("react-markdown", () => (props) => {
21+
return <>{props.children}</>
22+
})
2023
let mockApi = new MockAPI();
2124
mockApi.initializeMocks();
2225
describe('<ApplicationDetail />', () => {

0 commit comments

Comments
 (0)