Skip to content

Merge pull request #296 from SchoodEIP/develop

Sign in for the full log view
GitHub Actions / Tests annotations (🧪 jest-coverage-report-action) failed Dec 5, 2024 in 0s

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.

Details

Created failed tests' annotations. To disable them, see documentation.

  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Popup/alertCreation.test.jsx'

      2 | import '@testing-library/jest-dom'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import AlertCreationPopupContent from '../../../Components/Popup/alertCreation'
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Popup/alertCreation.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Users/Teacher/modifyFormTeacherPage.jsx'

    Require stack:
      src/Users/Teacher/modifyFormTeacherPage.jsx
      src/__tests__/Users/Teacher/modifyFormTeacherPage.test.jsx

      1 | import React, { useState, useEffect } from 'react'
    > 2 | import { useParams } from 'react-router-dom'
        | ^
      3 | import moment from 'moment'
      4 | import DatePicker from 'react-datepicker'
      5 | import HeaderComp from '../../Components/Header/headerComp'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Users/Teacher/modifyFormTeacherPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Teacher/modifyFormTeacherPage.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Users/Shared/teacherProfilePage.test.jsx'

      3 | import '@testing-library/jest-dom'
      4 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 5 | import { MemoryRouter, Routes, Route } from 'react-router-dom'
        | ^
      6 | import fetchMock from 'fetch-mock'
      7 | import TeacherProfilePage from '../../../Users/Shared/TeacherProfilePage'
      8 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Users/Shared/teacherProfilePage.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Teacher/newFormPage.jsx
      src/__tests__/Users/Teacher/newFormPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Teacher/newFormPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Teacher/newFormPage.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/SchoolAdmin/schoolAdmAccountsPage.js
      src/__tests__/Users/SchoolAdmin/schoolAdmAccountsPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/SchoolAdmin/schoolAdmAccountsPage.js:2:1)
      at Object.require (src/__tests__/Users/SchoolAdmin/schoolAdmAccountsPage.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/ChatRoom/chatRoom.test.jsx'

       5 | import '@testing-library/jest-dom/'
       6 | import { WebsocketProvider } from '../../../contexts/websocket'
    >  7 | import { MemoryRouter } from 'react-router-dom'
         | ^
       8 | import { disconnect } from '../../../functions/disconnect'
       9 |
      10 | jest.mock('../../../functions/disconnect', () => ({

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/ChatRoom/chatRoom.test.jsx:7:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Admin/admAccountsPage.js
      src/__tests__/Users/Admin/admAccountsPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Admin/admAccountsPage.js:2:1)
      at Object.require (src/__tests__/Users/Admin/admAccountsPage.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Accounts/SchoolAdm/schoolAdmAccountsTable.test.jsx'

      3 | import SchoolAccountsTable from '../../../../Components/Accounts/SchoolAdm/schoolAccountsTable'
      4 | import { WebsocketProvider } from '../../../../contexts/websocket'
    > 5 | import { BrowserRouter } from 'react-router-dom'
        | ^
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../../functions/disconnect'
      8 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Accounts/SchoolAdm/schoolAdmAccountsTable.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Users/Shared/alertsPage.jsx'

    Require stack:
      src/Users/Shared/alertsPage.jsx
      src/__tests__/Users/Shared/alertsPage.test.jsx

      1 | import React, { useState, useEffect } from 'react'
    > 2 | import { useParams } from 'react-router-dom'
        | ^
      3 | import ShowAlerts from '../../Components/Alerts/showAlerts'
      4 | import HeaderComp from '../../Components/Header/headerComp'
      5 | import Popup from 'reactjs-popup'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Users/Shared/alertsPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Shared/alertsPage.test.jsx:2:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/SchoolAdmin/reportChecking.jsx
      src/__tests__/Users/SchoolAdmin/reportChecking.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/SchoolAdmin/reportChecking.jsx:4:1)
      at Object.require (src/__tests__/Users/SchoolAdmin/reportChecking.test.jsx:1:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Shared/helpPage.jsx
      src/__tests__/Users/Shared/helpPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Shared/helpPage.jsx:4:1)
      at Object.require (src/__tests__/Users/Shared/helpPage.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Users/Student/formStudentPage.jsx'

    Require stack:
      src/Users/Student/formStudentPage.jsx
      src/__tests__/Users/Student/formStudentPage.test.jsx

      1 | import React, { useEffect, useState } from 'react'
    > 2 | import { useNavigate, useParams } from 'react-router-dom'
        | ^
      3 | import { toast } from 'react-toastify'
      4 | import moment from 'moment'
      5 | import HeaderComp from '../../Components/Header/headerComp'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Users/Student/formStudentPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Student/formStudentPage.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/ChatRoom/createConversationPopup.test.jsx'

       5 | import '@testing-library/jest-dom/'
       6 | import { WebsocketProvider } from '../../../contexts/websocket'
    >  7 | import { BrowserRouter } from 'react-router-dom'
         | ^
       8 |
       9 | describe('createConversationPopup Component', () => {
      10 |   const id = 123

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/ChatRoom/createConversationPopup.test.jsx:7:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Users/Teacher/formTeacherPage.jsx'

    Require stack:
      src/Users/Teacher/formTeacherPage.jsx
      src/__tests__/Users/Teacher/formTeacherPage.test.jsx

      1 | import React, { useState, useEffect } from 'react'
    > 2 | import { useParams } from 'react-router-dom'
        | ^
      3 | import moment from 'moment'
      4 | import HeaderComp from '../../Components/Header/headerComp'
      5 | import TeacherFormContent from '../../Components/Questionnaire/teacherFormContent'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Users/Teacher/formTeacherPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Teacher/formTeacherPage.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Student/feelingsStudentPage.jsx
      src/__tests__/Users/Student/feelingStudentPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Student/feelingsStudentPage.jsx:4:1)
      at Object.require (src/__tests__/Users/Student/feelingStudentPage.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/ChatRoom/reportButton.test.jsx'

      4 | import ReportButton from '../../../Components/ChatRoom/reportButton'
      5 | import fetchMock from 'fetch-mock'
    > 6 | import { BrowserRouter } from 'react-router-dom'
        | ^
      7 | import { WebsocketProvider } from '../../../contexts/websocket'
      8 | import { disconnect } from '../../../functions/disconnect'
      9 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/ChatRoom/reportButton.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Accounts/Adm/admAccountsTable.test.jsx'

      3 | import AdmAccountsTable from '../../../../Components/Accounts/Adm/admAccountsTable'
      4 | import { WebsocketProvider } from '../../../../contexts/websocket'
    > 5 | import { BrowserRouter } from 'react-router-dom'
        | ^
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../../functions/disconnect'
      8 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Accounts/Adm/admAccountsTable.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Questionnaire/questSpace.jsx'

    Require stack:
      src/Components/Questionnaire/questSpace.jsx
      src/__tests__/Components/Questionnaire/questSpace.test.jsx

      1 | import React, { useEffect, useState } from 'react'
      2 | import '../../css/Components/Questionnaire/questSpace.scss'
    > 3 | import { Link, useNavigate } from 'react-router-dom'
        | ^
      4 | import rightArrowInverted from '../../assets/right-arrow-inverted.png'
      5 | import { disconnect } from '../../functions/disconnect'
      6 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Questionnaire/questSpace.jsx:3:1)
      at Object.require (src/__tests__/Components/Questionnaire/questSpace.test.jsx:2:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Sidebar/sidebar.test.jsx'

      1 | import React from 'react'
      2 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 3 | import { BrowserRouter } from 'react-router-dom'
        | ^
      4 | import Sidebar from '../../../Components/Sidebar/sidebar'
      5 | import { render, fireEvent, screen, act, waitFor } from '@testing-library/react'
      6 | import '@testing-library/jest-dom'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Sidebar/sidebar.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Profil/profileComp.test.jsx'

      4 | import fetchMock from 'fetch-mock'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { MemoryRouter } from 'react-router-dom'
        | ^
      7 | import { disconnect } from '../../../functions/disconnect'
      8 | import ProfileComp from '../../../Components/Profil/profileComp'
      9 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Profil/profileComp.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Alerts/lastAlerts.test.jsx'

      3 | import { render, screen, act, waitFor } from '@testing-library/react'
      4 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 5 | import { BrowserRouter } from 'react-router-dom'
        | ^
      6 | import fetchMock from 'fetch-mock'
      7 | import { LastAlerts } from '../../../Components/Alerts/lastAlerts'
      8 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Alerts/lastAlerts.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Popup/reportCreation.test.jsx'

      2 | import '@testing-library/jest-dom'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import ReportCreationPopupContent from '../../../Components/Popup/reportCreation'
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Popup/reportCreation.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Users/Public/loginPage.test.jsx'

      3 | import Login from '../../../Users/Public/loginPage'
      4 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 5 | import { BrowserRouter } from 'react-router-dom'
        | ^
      6 | import fetchMock from 'fetch-mock'
      7 |
      8 | describe('Connexion', () => {

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Users/Public/loginPage.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/ChatRoom/chatRoomSidebar.test.jsx'

      4 | import '@testing-library/jest-dom/'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { BrowserRouter } from 'react-router-dom'
        | ^
      7 |
      8 | describe('ChatRoomSidebar', () => {
      9 |   const conversations = [

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/ChatRoom/chatRoomSidebar.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Profil/profilPage.jsx'

    Require stack:
      src/Components/Profil/profilPage.jsx
      src/Users/Shared/profilPage.jsx
      src/__tests__/Users/Shared/profilPage.test.jsx

      1 | import React, { useEffect, useState } from 'react'
    > 2 | import { useNavigate } from 'react-router-dom'
        | ^
      3 | import '../../css/pages/profilPage.scss'
      4 | import userIcon from '../../assets/userIcon.png'
      5 | import Popup from 'reactjs-popup'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Profil/profilPage.jsx:2:1)
      at Object.require (src/Users/Shared/profilPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Shared/profilPage.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/ChatRoom/message.test.jsx'

      4 | import '@testing-library/jest-dom/'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { BrowserRouter } from 'react-router-dom'
        | ^
      7 | import { disconnect } from '../../../functions/disconnect'
      8 |
      9 | jest.mock('../../../functions/disconnect', () => ({

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/ChatRoom/message.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Teacher/statisticsTeacher.jsx
      src/__tests__/Users/Teacher/statisticsTeacher.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Teacher/statisticsTeacher.jsx:2:1)
      at Object.require (src/__tests__/Users/Teacher/statisticsTeacher.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Popup/helpNumberCreation.test.jsx'

      2 | import '@testing-library/jest-dom'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import HelpNumberCreationPopupContent from '../../../Components/Popup/helpNumberCreation'
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Popup/helpNumberCreation.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Popup/moodFormCreation.test.jsx'

      2 | import '@testing-library/jest-dom'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import MoodFormCreationPopupContent from '../../../Components/Popup/moodFormCreation'
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Popup/moodFormCreation.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Profil/statComp.test.jsx'

      4 | import fetchMock from 'fetch-mock'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { MemoryRouter } from 'react-router-dom'
        | ^
      7 | import { disconnect } from '../../../functions/disconnect'
      8 | import StatComp from '../../../Components/Profil/statComp'
      9 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Profil/statComp.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Users/Public/forgottenPasswordPage.test.jsx'

      4 | import { render, act, fireEvent, waitFor, screen } from '@testing-library/react'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { BrowserRouter } from 'react-router-dom'
        | ^
      7 |
      8 | describe('ForgottenPasswordPage', () => {
      9 |   beforeEach(() => {

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Users/Public/forgottenPasswordPage.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Users/Student/statisticsStudent.test.jsx'

      1 | import React from 'react'
      2 | import { render, screen, fireEvent, act, waitFor } from '@testing-library/react'
    > 3 | import { MemoryRouter } from 'react-router-dom'
        | ^
      4 | import StudentStatPage from '../../../Users/Student/statisticsStudent'
      5 | import fetchMock from 'fetch-mock'
      6 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Users/Student/statisticsStudent.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Teacher/formListTeacherPage.jsx
      src/__tests__/Users/Teacher/formListTeacherPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Teacher/formListTeacherPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Teacher/formListTeacherPage.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Student/formListStudentPage.jsx
      src/__tests__/Users/Student/formListStudentPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Student/formListStudentPage.jsx:2:1)
      at Object.require (src/__tests__/Users/Student/formListStudentPage.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Header/header.test.jsx'

      2 | import '@testing-library/jest-dom'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import HeaderComp from '../../../Components/Header/headerComp'
      6 | // import { disconnect } from '../../../functions/disconnect'
      7 | import fetchMock from 'fetch-mock'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Header/header.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Shared/helpPage.jsx
      src/__tests__/Components/Aides/aides.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Shared/helpPage.jsx:4:1)
      at Object.require (src/__tests__/Components/Aides/aides.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Student/dashboardStudent.jsx
      src/__tests__/Users/Student/dashboardStudent.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Student/dashboardStudent.jsx:2:1)
      at Object.require (src/__tests__/Users/Student/dashboardStudent.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Alerts/showAlert.test.jsx'

      3 | import { render, screen, act, waitFor } from '@testing-library/react'
      4 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 5 | import { BrowserRouter } from 'react-router-dom'
        | ^
      6 | import ShowAlerts from '../../../Components/Alerts/showAlerts'
      7 |
      8 | describe('ShowAlerts component', () => {

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Alerts/showAlert.test.jsx:5:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Profil/feelingsComp.test.jsx'

      4 | import fetchMock from 'fetch-mock'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { MemoryRouter } from 'react-router-dom'
        | ^
      7 | import { disconnect } from '../../../functions/disconnect'
      8 | import FeelingsComp from '../../../Components/Profil/feelingsComp'
      9 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Profil/feelingsComp.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Profil/reportComp.test.jsx'

      4 | import fetchMock from 'fetch-mock'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { MemoryRouter } from 'react-router-dom'
        | ^
      7 | import { disconnect } from '../../../functions/disconnect'
      8 | import ReportComp from '../../../Components/Profil/reportComp'
      9 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Profil/reportComp.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Reports/reportSidebar.test.jsx'

      4 | import ReportSidebar from '../../../Components/reports/reportSidebar'
      5 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 6 | import { BrowserRouter } from 'react-router-dom'
        | ^
      7 | import fetchMock from 'fetch-mock'
      8 |
      9 | describe('Feelings Component', () => {

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Reports/reportSidebar.test.jsx:6:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Popup/categoryCreation.test.jsx'

      2 | import '@testing-library/jest-dom'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import CategoryCreationPopupContent from '../../../Components/Popup/categoryCreation'
      6 | import fetchMock from 'fetch-mock'
      7 | import { disconnect } from '../../../functions/disconnect'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Popup/categoryCreation.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/SchoolAdmin/schoolAdmHomePage.jsx
      src/__tests__/Users/SchoolAdmin/schoolAdmHomePage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/SchoolAdmin/schoolAdmHomePage.jsx:2:1)
      at Object.require (src/__tests__/Users/SchoolAdmin/schoolAdmHomePage.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/__tests__/Components/Buttons/previousPage.test.jsx'

      2 | import { createMemoryHistory } from 'history'
      3 | import { WebsocketProvider } from '../../../contexts/websocket'
    > 4 | import { BrowserRouter } from 'react-router-dom'
        | ^
      5 | import '@testing-library/jest-dom'
      6 | import PreviousPage from '../../../Components/Buttons/previousPage'
      7 |

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/__tests__/Components/Buttons/previousPage.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Buttons/previousPage.jsx'

    Require stack:
      src/Components/Buttons/previousPage.jsx
      src/Users/Public/noPage.jsx
      src/__tests__/Users/Public/noPage.test.js

      1 | import { React } from 'react'
    > 2 | import { useNavigate } from 'react-router-dom'
        | ^
      3 | import '../../css/Components/Buttons/button.css'
      4 |
      5 | export default function PreviousPage () {

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Buttons/previousPage.jsx:2:1)
      at Object.require (src/Users/Public/noPage.jsx:3:1)
      at Object.require (src/__tests__/Users/Public/noPage.test.js:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Teacher/dashboardTeacher.jsx
      src/__tests__/Users/Teacher/dashboardTeacher.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Teacher/dashboardTeacher.jsx:2:1)
      at Object.require (src/__tests__/Users/Teacher/dashboardTeacher.test.jsx:4:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Admin/admHomePage.jsx
      src/__tests__/Users/Admin/admHomePage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Admin/admHomePage.jsx:2:1)
      at Object.require (src/__tests__/Users/Admin/admHomePage.test.jsx:3:1)


  ● Test suite failed to run

    Cannot find module 'react-router-dom' from 'src/Components/Header/headerComp.js'

    Require stack:
      src/Components/Header/headerComp.js
      src/Users/Shared/chatRoomPage.jsx
      src/__tests__/Components/ChatRoom/chatRoomPage.test.jsx

      2 | import backButton from '../../assets/backButton.png'
      3 | import '../../css/Components/Header/headerComp.scss'
    > 4 | import { useNavigate, useLocation, Link } from 'react-router-dom'
        | ^
      5 | import { WebsocketContext } from '../../contexts/websocket'
      6 | import Popup from 'reactjs-popup'
      7 | import moment from 'moment'

      at Resolver.resolveModule (node_modules/react-scripts/node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.require (src/Components/Header/headerComp.js:4:1)
      at Object.require (src/Users/Shared/chatRoomPage.jsx:2:1)
      at Object.require (src/__tests__/Components/ChatRoom/chatRoomPage.test.jsx:4:1)