Skip to content

Commit

Permalink
Merge pull request #243 from SchoodEIP/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Exiels authored May 30, 2024
2 parents 56a2793 + 06bf24a commit 9028d40
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Components/Questionnaire/teacherFormContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TeacherFormContent = (props) => {
<li className='answer' style={question.active ? { display: 'flex', gap: '25px' } : { display: 'none' }} key={i}>
<span style={{ listStyle: 'none' }}>{answer.title}</span>
<div className='percentage-container'>
<span data-testid={`multiple-answer-${i}`}>{answer.count}</span>
<span data-testid={`multiple-answer-${i}`}>{answer?.count ? answer?.count : 0}</span>
</div>
</li>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Student/statisticsStudent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const StudentStatPage = () => {
} else {
createChart()
}
}, [moodData])
}, [moodData, chart])

const calculateStartDate = (date, filter) => {
const selectedDate = new Date(date)
Expand Down
2 changes: 1 addition & 1 deletion src/Users/Teacher/statisticsTeacher.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react'
import HeaderComp from '../../Components/Header/headerComp'
import { Chart } from 'chart.js/auto'
import Chart from 'chart.js/auto'
import '../../css/pages/homePage.scss'
import '../../css/pages/statistiques.scss'
import { library } from '@fortawesome/fontawesome-svg-core'
Expand Down

113 comments on commit 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 08/05/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="07/29/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 08/05/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="07/29/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 08/12/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/05/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 08/12/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/05/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 08/19/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/12/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 08/19/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/12/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 08/26/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/19/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 08/26/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/19/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 09/02/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/26/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 09/02/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="08/26/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 09/09/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="09/02/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 09/09/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="09/02/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 09/16/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="09/09/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 09/16/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="09/09/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.71% 732/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 6/224. Failed suites: 2/45.
  ● NewFormPage › renders the page

    TestingLibraryElementError: Unable to find an element with the display value: 09/23/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="09/16/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      164 |     expect(screen.getByText('Date de parution')).toBeInTheDocument()
      165 |     expect(screen.getByText('Valider le Questionnaire')).toBeInTheDocument()
    > 166 |     expect(screen.getByDisplayValue(`${thisWeekMonday}`)).toBeInTheDocument()
          |                   ^
      167 |   })
      168 |
      169 |   test('add and remove a question', async () => {

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:166:19)

  ● NewFormPage › pick a date

    TestingLibraryElementError: Unable to find an element with the display value: 09/23/2024.

    Ignored nodes: comments, script, style
    <body>
      <div
        id="popup-root"
      />
      <div />
      <div>
        <div
          class="form-page"
        >
          <div>
            <div
              id="header"
            >
              <div
                id="left"
              >
                <div
                  id="title"
                >
                  Création d'un Nouveau Questionnaire
                </div>
                <div
                  id="withReturnBtn"
                >
                  <img
                    alt="Return"
                    id="return-btn"
                    src="backButton.png"
                  />
                  <div
                    id="back-text"
                  >
                    Retour
                  </div>
                </div>
              </div>
              <div
                style="display: flex; flex-direction: row; align-items: center; gap: 25px;"
              >
                <div
                  style="display: flex; flex-direction: row; gap: 15px;"
                >
                  <button
                    class="header-btn"
                  >
                    Valider le Questionnaire
                  </button>
                </div>
                <a
                  href="/"
                >
                  <img
                    alt="Schood"
                    id="logo"
                    src="logo_schood.png"
                  />
                </a>
              </div>
            </div>
          </div>
          <div
            class="form-container"
          >
            <div
              class="form"
            >
              <div
                class="head-form"
              >
                <div
                  class="input-container"
                >
                  <input
                    class="form-input default-input"
                    id="form-title"
                    name="form-title"
                    placeholder="Titre du questionnaire"
                  />
                </div>
                <div
                  class="label-container"
                >
                  <label
                    class="input-label"
                    id="parution-date-container"
                  >
                    <span
                      class="label-content"
                    >
                      Date de parution
                    </span>
                    <div
                      class="react-datepicker-wrapper"
                    >
                      <div
                        class="react-datepicker__input-container"
                      >
                        <input
                          class="default-input"
                          id="parution-date"
                          name="parution-date"
                          type="text"
                          value="09/16/2024"
                        />
                      </div>
                    </div>
                  </label>
                </div>
              </div>
              <div
                class="error-message-container"
              >
                <p
                  class="error-message"
                  data-testid="error-message"
                />
              </div>
            </div>
            <div
              class="form-content-container"
            >
              <div
                class="question"
              >
                <div
                  class="body"
                >
                  <div
                    class="header"
                  >
                    <label
                      class="input-label"
                    >
                      <span
                        class="label-content"
                      >
                        1
                        . 
                      </span>
                      <input
                        class="default-input"
                        placeholder="Quelle est votre question ?"
                        style="width: 700px;"
                        type="text"
                        value=""
                      />
                    </label>
                    <label
                      class="input-label"
                      style="flex-direction: column;"
                    >
                      <span
                        class="label-content"
                      >
                        Type de question
                      </span>
                      <select
                        class="default-input"
                        data-testid="select-0"
                        style="width: 200px;"
                      >
                        <option
                          selected=""
                          value="text"
                        >
                          Texte
                        </option>
                        <option
                          value="emoji"
                        >
                          Émoticône
                        </option>
                        <option
                          value="multiple"
                        >
                          Multiple
                        </option>
                      </select>
                    </label>
                  </div>
                </div>
              </div>
              <div
                class="confirmation-form-container"
              >
                <button
                  class="form-btn"
                  id="add-question-btn"
                >
                  Ajouter une Question
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </body>

      443 |     nextMonday.setDate(today.getDate() + ((1 + 7 - todayDayOfWeek) % 7))
      444 |
    > 445 |     const datePickerInput = screen.getByDisplayValue(`${thisWeekMonday}`)
          |                                    ^
      446 |     // Convert next Monday to ISO string (YYYY-MM-DD)
      447 |     const nextMondayFormatted = formatDate(nextMonday)
      448 |

      at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
      at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
      at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
      at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
      at Object.getByDisplayValue (src/__tests__/Users/Teacher/newFormPage.test.jsx:445:36)


  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

@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

St.
Category Percentage Covered / Total
🟢 Statements 86.7% 1636/1887
🟢 Branches 80.6% 731/907
🟢 Functions 82.73% 479/579
🟢 Lines 86.7% 1577/1819

Test suite run failed

Failed tests: 4/224. Failed suites: 1/45.
  ● TeacherStatPage › renders correctly

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles date change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › handles filter change

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

  ● TeacherStatPage › disconnects on 401 error mood url

    TypeError: _auto.default is not a constructor

      194 |       }
      195 |
    > 196 |       newChart = new Chart(ctx, {
          |                  ^
      197 |         type: 'line',
      198 |         data: {
      199 |           labels: Object.keys(moodData).filter(key => key !== 'averagePercentage'),

      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:196:18)
      at createOrUpdateChart (src/Users/Teacher/statisticsTeacher.jsx:287:5)
      at commitHookEffectListMount (node_modules/react-dom/cjs/react-dom.development.js:23189:26)
      at commitPassiveMountOnFiber (node_modules/react-dom/cjs/react-dom.development.js:24970:11)
      at commitPassiveMountEffects_complete (node_modules/react-dom/cjs/react-dom.development.js:24930:9)
      at commitPassiveMountEffects_begin (node_modules/react-dom/cjs/react-dom.development.js:24917:7)
      at commitPassiveMountEffects (node_modules/react-dom/cjs/react-dom.development.js:24905:3)
      at flushPassiveEffectsImpl (node_modules/react-dom/cjs/react-dom.development.js:27078:3)
      at flushPassiveEffects (node_modules/react-dom/cjs/react-dom.development.js:27023:14)
      at node_modules/react-dom/cjs/react-dom.development.js:26808:9
      at flushActQueue (node_modules/react/cjs/react.development.js:2667:24)
      at recursivelyFlushAsyncActWork (node_modules/react/cjs/react.development.js:2633:9)
      at node_modules/react/cjs/react.development.js:2545:15

Report generated by 🧪jest coverage report action from 9028d40

Please sign in to comment.