Skip to content

Commit

Permalink
Merge pull request #304 from SchoodEIP/revert-301-revert-300-last_dem…
Browse files Browse the repository at this point in the history
…o_fixes

Revert "Revert "Last demo fixes""
  • Loading branch information
Exiels authored Dec 6, 2024
2 parents f5dc91b + 0e08971 commit 8e99680
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/Components/Graph/teacherGraphSpace.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function TeacherGraphSpace () {
const selectedDate = useState(new Date().toISOString().split('T')[0])
const activeFilter = useState('Semaine')
const selectedClass = useState(null)

const role = sessionStorage.getItem('role')
const moodChartRef = useRef(null)

useEffect(() => {
Expand Down Expand Up @@ -263,7 +263,7 @@ export function TeacherGraphSpace () {
return (
<div className='graph-box'>
<div className='graph-header'>
<span className='title'>Evolution de l'humeur de mes classes</span>
<span className='title'>Evolution de l'humeur de {role === 'administration' ? 'mon établissement' : 'mes classes'}</span>
<Link to='/statistiques' className='see-more'>
Voir plus
<img className='img' src={rightArrow} alt='Right arrow' />
Expand Down
2 changes: 2 additions & 0 deletions src/Components/Sidebar/sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export default function Sidebar () {
pages.splice(4, 0, reportObj)
const feelingsModerationObj = { id: 'ressentis', path: '/feelings', icon: <img className='icons' src={feelingIcon} />, iconSelected: <img className='icons' src={feelingIconSelected} />, label: 'Mes ressentis', title: 'Mes ressentis', selected: IsCurrentPage('/feelings', false) }
pages.splice(4, 0, feelingsModerationObj)
const statObj = { id: 'statistiques', path: '/statistiques', icon: <img className='icons' src={statsIcon} />, iconSelected: <img className='icons' src={statsIconSelected} />, label: 'Mes statistiques', title: 'Mes statistiques', selected: IsCurrentPage('/statistiques', false) }
pages.splice(4, 0, statObj)
}
} else {
pages = [
Expand Down
20 changes: 12 additions & 8 deletions src/Users/Admin/feelingsAdminPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { toast } from 'react-toastify'
const FeelingsAdminPage = () => {
const [isShown, setIsShown] = useState(false)
const [shownFeeling, setShownFeeling] = useState([])
const [shownUser, setShownUser] = useState({ firstname: '', lastname: '' })
const [demand, setDemand] = useState({
user: '',
mood: '',
Expand Down Expand Up @@ -48,10 +49,10 @@ const FeelingsAdminPage = () => {
}
}, [])

const handleDemandPopup = (userId, feelingId, feelingMood) => {
const handleDemandPopup = (userId, feelingId) => {
demand.user = userId
demand.reason = feelingId
demand.mood = feelings.find(item => item.mood === feelingMood)._id
demand.mood = feelingId
setDemand(demand)
const toFind = demands.find(item => item.reason === feelingId)
if (toFind) { toast.warn('Vous avez déjà effectué une demande de désanonymisation pour ce ressenti.') } else { handleAskDesanonym() }
Expand Down Expand Up @@ -95,7 +96,8 @@ const FeelingsAdminPage = () => {
})
.then(data => {
if (Array.isArray(data)) {
setFeelings(prevFeelings => [...prevFeelings, ...data])
setFeelings(data)
console.log(data)
} else {
toast.error('Les données reçues ne sont pas valides.')
}
Expand Down Expand Up @@ -159,12 +161,14 @@ const FeelingsAdminPage = () => {
}

const handleCloseFeelingPopup = () => {
console.log(shownFeeling)
setIsShown(!isShown)
}

const handleShowFeeling = (feelingId) => {
const feeling = feelings.find(item => item._id === feelingId)
setShownFeeling(feeling)
setShownUser(feeling.user)
handleCloseFeelingPopup()
}

Expand All @@ -183,7 +187,7 @@ const FeelingsAdminPage = () => {
{(close) => (
<div className='popup-modal-container' style={{ alignItems: 'inherit' }}>
<button className='close-btn' onClick={close}><img src={cross} alt='Close' /></button>
<div key={shownFeeling._id} style={{ marginBottom: '0', width: '95%' }} className='individual-feelings-container'>
<div key={`${shownFeeling._id}-shown`} style={{ marginBottom: '0', width: '95%' }} className='individual-feelings-container'>
<div className='publication-date'>{moment(shownFeeling.date).format('DD/MM/YYYY')}</div>
<div className='horizontal-line' />
<div className='feelings-container-content' style={{ width: '100%' }}>
Expand All @@ -196,7 +200,7 @@ const FeelingsAdminPage = () => {
<p style={{ marginBottom: '0' }}>{shownFeeling.date !== '' ? 'Pris en compte le:' : 'En attente de prise en compte'}</p>
<p style={{ marginTop: '0' }}>{shownFeeling.date !== '' ? `${moment(shownFeeling.date).format('DD/MM/YYYY')}` : ''}</p>
</div>
<div className='publication-author' style={{ alignItems: 'center', display: 'flex', gap: '5px' }}>Anonyme</div>
<div className='publication-author' style={{ alignItems: 'center', display: 'flex', gap: '5px' }}>{(shownFeeling.annonymous && shownUser !== null) ? 'Anonyme' : `${shownUser.firstname} ${shownUser.lastname}`}</div>
</div>
<div className='feelings-content' style={{ width: '100%' }}>
<p className='paragraph-style'>{shownFeeling.comment}</p>
Expand All @@ -213,7 +217,7 @@ const FeelingsAdminPage = () => {
demands.length !== 0
? (
demands.map((dem) => (
<div title={dem.status === 'refused' ? 'Refus de la demande' : dem.status === 'accepted' ? 'Ressenti désanonymisé' : 'En attente d\'un retour'} onClick={() => handleShowFeeling(dem.reason)} className={`demand-container ${dem.status === 'refused' ? 'red-filler' : dem.status === 'accepted' ? 'green-filler' : 'orange-filler'}`} key={dem._id}>
<div title={dem.status === 'refused' ? 'Refus de la demande' : dem.status === 'accepted' ? 'Ressenti désanonymisé' : 'En attente d\'un retour'} onClick={() => handleShowFeeling(dem.reason)} className={`demand-container ${dem.status === 'refused' ? 'red-filler' : dem.status === 'accepted' ? 'green-filler' : 'orange-filler'}`} key={`demand-${dem._id}`}>
<div className='demand-content'>
<img className='emoticone-image' style={{ height: '25px' }} src={imagePaths[dem.mood.mood]} alt={moods[dem.mood.mood]} />
<p>{dem.mood.comment}</p>
Expand All @@ -230,7 +234,7 @@ const FeelingsAdminPage = () => {
</div>
<div id='feelings-container'>
{feelings.length !== 0 && feelings.map((feeling) => (
<div key={feeling._id} className='individual-feelings-container'>
<div key={`${feeling._id}-feeling`} className='individual-feelings-container'>
<div className='publication-date'>{moment(feeling.date).format('DD/MM/YYYY')}</div>
<div className='horizontal-line' />
<div className='feelings-container-content'>
Expand All @@ -243,7 +247,7 @@ const FeelingsAdminPage = () => {
<p style={{ marginBottom: '0' }}>{feeling.date !== '' ? 'Pris en compte le:' : 'En attente de prise en compte'}</p>
<p style={{ marginTop: '0' }}>{feeling.date !== '' ? `${moment(feeling.date).format('DD/MM/YYYY')}` : ''}</p>
</div>
<div className='publication-author' style={{ alignItems: 'center', display: 'flex', gap: '5px' }}>{feeling.annonymous ? (<>Anonyme <img style={{ height: '15px', cursor: 'pointer' }} onClick={() => handleDemandPopup(feeling.user._id, feeling._id, feeling.mood)} src={questionIcon} alt='Demander à désanonymiser' title='Faire une demande de désanonymisation' /> </>) : `${feeling.user.firstname} ${feeling.user.lastname}`}</div>
<div className='publication-author' style={{ alignItems: 'center', display: 'flex', gap: '5px' }}>{feeling.annonymous ? (<>Anonyme <img style={{ height: '15px', cursor: 'pointer' }} onClick={() => handleDemandPopup(feeling.user._id, feeling._id)} src={questionIcon} alt='Demander à désanonymiser' title='Faire une demande de désanonymisation' /> </>) : `${feeling.user.firstname} ${feeling.user.lastname}`}</div>
</div>
<div className='feelings-content'>
<p className='paragraph-style'>{feeling.comment}</p>
Expand Down
22 changes: 10 additions & 12 deletions src/Users/Student/feelingsStudentPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import emoji4Selected from '../../assets/emojis/4s.png'
import emoji5Selected from '../../assets/emojis/5s.png'

const FeelingsStudentPage = () => {
const [userProfile, setUserProfile] = useState([])
const [isCreateOpen, setIsCreateOpen] = useState(false)
const [isPassed, setIsPassed] = useState(false)
const [isModified, setIsModified] = useState(false)
Expand Down Expand Up @@ -258,7 +257,6 @@ const FeelingsStudentPage = () => {

const handleShowFeeling = (feelingId, user) => {
const feeling = feelings.find(item => item._id === feelingId)
setUserProfile(user)
setShownFeeling(feeling)
handleCloseFeelingPopup()
}
Expand Down Expand Up @@ -356,7 +354,7 @@ const FeelingsStudentPage = () => {
<p style={{ marginBottom: '0' }}>{shownFeeling.date !== '' ? 'Pris en compte le:' : 'En attente de prise en compte'}</p>
<p style={{ marginTop: '0' }}>{shownFeeling.date !== '' ? `${moment(shownFeeling.date).format('DD/MM/YYYY')}` : ''}</p>
</div>
<div className='publication-author' style={{ alignItems: 'center', display: 'flex', gap: '5px' }}>{shownFeeling.annonymous ? 'Anonyme' : userProfile.firstname + ' ' + userProfile.lastname}</div>
<div className='publication-author' style={{ alignItems: 'center', display: 'flex', gap: '5px' }}>{shownFeeling.annonymous ? 'Anonyme' : ' '}</div>
</div>
<div className='feelings-content' style={{ width: '100%' }}>
<p className='paragraph-style'>{shownFeeling.comment}</p>
Expand All @@ -373,19 +371,19 @@ const FeelingsStudentPage = () => {
demands.length !== 0
? (
demands.map((dem) => (
<div title={dem.status === 'refused' ? 'Refus de la demande' : dem.status === 'accepted' ? 'Ressenti désanonymisé' : 'En attente d\'un retour'} onClick={() => handleShowFeeling(dem.reason)} className={`demand-container ${dem.status === 'refused' ? 'red-filler' : dem.status === 'accepted' ? 'green-filler' : 'orange-filler'}`} key={dem._id}>
<div title={dem.status === 'refused' ? 'Refus de la demande' : dem.status === 'accepted' ? 'Ressenti désanonymisé' : 'En attente d\'un retour'} onClick={() => handleShowFeeling(dem.reason)} className={`demand-container ${dem.status === 'refused' ? 'red-filler' : dem.status === 'accepted' ? 'green-filler' : 'orange-filler'}`} key={`demand-${dem._id}`}>
<div className='demand-content'>
<img className='emoticone-image' style={{ height: '25px' }} src={imagePaths[dem.mood.mood]} alt={moods[dem.mood.mood]} />
<p style={{ flexWrap: 'wrap' }}>{dem.mood.comment}</p>
</div>
<div className='demand-button-container'>
{
dem.status !== 'accepted' && <button title='Accepter' className='demand-close-btn' onClick={(e) => { e.stopPropagation(); handleDemand(dem._id, 'accepted') }}><img className='open-img' src={acceptIcon} alt='AcceptDemand' /></button>
}
{
dem.status !== 'refused' && <button title='Refuser' className='demand-close-btn' onClick={(e) => { e.stopPropagation(); handleDemand(dem._id, 'refused') }}><img className='close-img' src={refuseIcon} alt='RefuseDemand' /></button>
}
</div>
{
(!dem.status || dem.status === 'waiting') && (
<div className='demand-button-container'>
<button title='Accepter' className='demand-close-btn' onClick={(e) => { e.stopPropagation(); handleDemand(dem._id, 'accepted') }}><img className='open-img' src={acceptIcon} alt='AcceptDemand' /></button>
<button title='Refuser' className='demand-close-btn' onClick={(e) => { e.stopPropagation(); handleDemand(dem._id, 'refused') }}><img className='close-img' src={refuseIcon} alt='RefuseDemand' /></button>
</div>
)
}
</div>
))
)
Expand Down
6 changes: 3 additions & 3 deletions src/Users/Student/statisticsStudent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ const StudentStatPage = () => {
return (
<div className='dashboard'>
<HeaderComp title='Mes statistiques' />
<div className='page-content'>
<div>
<div className='page-content' style={{ height: 'calc(100% - 130px)' }}>
<div className='stat-page-content'>
<label htmlFor='dateFilter'>Sélectionner une date:</label>
<input type='date' id='dateFilter' value={selectedDate} onChange={handleDateChange} />
<div className='button-container'>
Expand Down Expand Up @@ -297,7 +297,7 @@ const StudentStatPage = () => {
</div>
</div>
<h1>Evolution de mon humeur</h1>
<div style={{ display: 'flex', flexDirection: 'row' }}>
<div style={{ display: 'flex', flexDirection: 'row', width: '500px' }}>
<canvas id='moodChart' width='400' height='400' />
{isNaN(averagePercentage)
? (
Expand Down
4 changes: 2 additions & 2 deletions src/Users/Teacher/dashboardTeacher.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ const TeacherHomePage = () => {
/>
<div className='page-content'>
<div className='left-half'>
<div className='graph-space' style={{ height: '70%' }}>
<div className='graph-space'>
<GraphSpace />
</div>
<div className='quest-space' style={{ height: '35%' }}>
<div className='quest-space'>
<QuestSpace />
</div>
</div>
Expand Down
26 changes: 20 additions & 6 deletions src/Users/Teacher/statisticsTeacher.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -345,17 +345,31 @@ const TeacherStatPage = () => {
datasets: [{
label: 'Réponses',
data: answerData.map((answer) => answer.data),
backgroundColor: 'rgba(255, 255, 255, 0.8)',
borderColor: 'rgba(255, 255, 255, 1)',
backgroundColor: 'white',
borderColor: 'white',
borderWidth: 1
}]
},
options: {
scales: {
x: {
ticks: {
color: 'white',
font: {
family: 'Inter'
}
},
grid: {
color: 'rgba(255, 255, 255, 0.1)'
}
},
y: {
beginAtZero: true,
font: {
family: 'Inter'
ticks: {
color: 'white',
font: {
family: 'Inter'
}
}
}
},
Expand Down Expand Up @@ -398,7 +412,7 @@ const TeacherStatPage = () => {
return (
<div className='dashboard'>
<HeaderComp title='Mes statistiques' />
<div className='page-content'>
<div className='page-content' style={{ height: 'calc(100% - 130px)' }}>
<div>
<div>
<label htmlFor='dateFilter'>Sélectionner une date:</label>
Expand Down Expand Up @@ -431,7 +445,7 @@ const TeacherStatPage = () => {
<div>
<h1>Evolution de l'humeur</h1>
<canvas id='moodChart' width='400' height='400' />
<div style={{ width: '200px', margin: 'auto', marginTop: '20px' }}>
<div style={{ width: '200px', margin: 'auto', marginTop: '20px', display: 'flex', flexDirection: 'row', alignItems: 'center' }}>
<img src={emoji4} size='2x' style={{ marginRight: '10px', marginBottom: '10px' }} />
<progress className='progress' value={averageMood} max='100' />
</div>
Expand Down
6 changes: 6 additions & 0 deletions src/css/Components/Alerts/lastAlerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
font-family: Inter;
}

@media (max-height: 600px) {
.title {
font-size: 25px;
}
}

.see-more {
margin-top: 5px;
display: flex;
Expand Down
37 changes: 28 additions & 9 deletions src/css/Components/Graph/graphSpace.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
flex-direction: column;
justify-content: start;
align-items: start;

.graph-header {
width: calc(100% - 28px);
margin-top: 24px;
Expand All @@ -18,14 +18,20 @@
margin-left: 18px;
margin-right: 18px;
align-items: center;

.title {
color: #4F23E2;
font-size: 30px;
font-weight: 600;
font-family: Inter;
}


@media (max-height: 600px) {
.title {
font-size: 25px;
}
}

.see-more {
margin-top: 5px;
display: flex;
Expand All @@ -42,37 +48,50 @@
}
}
}


@media (max-height: 600px) {
.graph-header {
margin-top: 10px;
}
}

.graph-body {
width: 100%;
flex: 1; /* Utilisation de flex pour permettre à graph-content de prendre l'espace restant */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

.graph-content {
color: #4F23E2;
font-size: 18px;
font-weight: 600;
font-family: Inter;
width: 100%; /* Le graph-content prend toute la largeur disponible */

.chart-container {
width: 100%;
max-height: calc(100% - 80px); /* Hauteur maximale pour le graphique (100% - taille du graph-header) */
max-height: calc(100% - 60px); /* Hauteur maximale pour le graphique (100% - taille du graph-header) */
display: flex;
justify-content: center;
align-items: center;
position: relative;

padding-left: 10px;

canvas {
max-width: 100%;
max-height: 100%;
}

}

@media (max-height: 600px) {
.chart-container {
width: 100%;
max-height: calc(100% - 160px); /* Hauteur maximale pour le graphique (100% - taille du graph-header) */
}
}
}
}
}

Loading

34 comments on commit 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/__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/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__/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/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__/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/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/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/__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/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/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/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/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/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/__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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/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__/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/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__/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/__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/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/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__/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__/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/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/__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/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/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/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/__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/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/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/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/__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/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/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/__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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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/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/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__/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/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__/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/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/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__/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__/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/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/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/__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/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/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/__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/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/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/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/__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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/__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/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/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__/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/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__/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/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/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/__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/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__/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/__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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/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/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/__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/__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/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/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/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/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/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/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__/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/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__/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__/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__/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/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__/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/__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/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/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/__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/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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/__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/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__/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/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__/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/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/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/__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__/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__/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/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/__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/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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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__/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/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__/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/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/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/__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__/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__/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/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/__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/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/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/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/__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/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/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/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/__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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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/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__/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/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/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__/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/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/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/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__/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__/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/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/__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/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/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/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/__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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/__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/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/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/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/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/__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/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/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__/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__/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/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/__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/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/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/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/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/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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/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/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/__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/__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/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/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/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/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/__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__/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__/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/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/__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/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/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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/__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/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__/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/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__/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/__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/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/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__/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__/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/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/__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/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/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/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/__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/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/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/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/__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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/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/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__/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/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__/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__/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__/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/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/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/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/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/__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/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/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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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/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/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/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__/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__/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/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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/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__/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/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/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/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/__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/__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/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/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/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/__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/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/__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/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/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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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__/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/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__/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/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/__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/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/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/__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/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/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/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/__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/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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/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__/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/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__/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/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/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/__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/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/__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/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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/__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/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/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/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/__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/__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/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__/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/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__/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__/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__/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/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/__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/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/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/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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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/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/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__/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/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__/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/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__/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__/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/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/__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/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/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/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/__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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/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/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__/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/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__/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/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/__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/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/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__/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__/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/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/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/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/__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/__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/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/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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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/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/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__/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/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__/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/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/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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/__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/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__/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/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__/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/__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/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/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__/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__/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/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/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/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/__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/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/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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/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/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/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/__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/__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/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/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/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/__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/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/__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/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/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/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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/__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/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/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/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__/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/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__/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/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/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/__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__/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__/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/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__/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/__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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/__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/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/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/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/__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__/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/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__/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/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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/__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/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/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__/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/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__/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__/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__/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/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/__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/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/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/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/__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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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__/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/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__/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/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/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/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/__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__/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__/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/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/__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/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/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/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/__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/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/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/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/__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/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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/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/__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/__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/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/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/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/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/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/__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/__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/__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/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/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/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__/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/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__/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/__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/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/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__/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__/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/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/__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/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/__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/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/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/__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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/__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/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__/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/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__/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/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/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/__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/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/__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/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/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/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/__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/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/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/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/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/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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/__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/__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/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/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/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/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/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/__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/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/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/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/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/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/__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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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/__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/__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/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__/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/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__/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__/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__/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/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/__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/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/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/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/__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/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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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__/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/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__/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/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/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/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/__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/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/__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/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/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/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/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/__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/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/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/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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/__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/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/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/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__/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/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__/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__/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__/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/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/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/__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/__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/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/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/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/__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/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/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/__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/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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/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/__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/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/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__/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/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__/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/__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/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/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/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/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/__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/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/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/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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

Caution

Coverage does not meet threshold
Statements coverage not met for global: expected >=80%, but got 0.4716981132075472%

St.
Category Percentage Covered / Total
🔴 Statements 0.47% 15/3180
🔴 Branches 0.95% 14/1480
🔴 Functions 0.11% 1/913
🔴 Lines 0.03% 1/3054

Test suite run failed

Failed tests: 0/8. Failed suites: 48/49.
  ● 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/__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/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/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/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/__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/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/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/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__/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/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__/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/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/__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/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/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/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/__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/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/__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/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/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/__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/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)


  ● 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)

Report generated by 🧪jest coverage report action from 8e99680

Please sign in to comment.