Skip to content

Hook unit tests

Hook unit tests #1705

Triggered via pull request January 31, 2024 21:47
Status Failure
Total duration 51s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 9 warnings
test: src/hooks/actions/useLoadNextAction.js#L21
'||' should be placed at the beginning of the line
test: src/hooks/actions/useLoadNextAction.js#L28
Expected no linebreak before this expression
test
Process completed with exit code 1.
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test: src/components/Prompt/index.jsx#L46
Dangerous property 'dangerouslySetInnerHTML' found
test: src/components/TextResponse/index.jsx#L23
Dangerous property 'dangerouslySetInnerHTML' found
test: src/components/TextResponse/index.jsx#L25
Dangerous property 'dangerouslySetInnerHTML' found
test: src/data/services/lms/hooks/utils.js#L12
Unexpected console statement
test: src/hooks/testHooks.js#L72
Unexpected console statement
test: src/hooks/testHooks.js#L74
Unexpected console statement
test: src/utils/debug.js#L3
Unexpected console statement
test: src/views/SubmissionView/TextResponseEditor/LaTexPreview.jsx#L13
Dangerous property 'dangerouslySetInnerHTML' found