Bump lit-element from 3.3.3 to 4.1.1 #524
Jest tests passed
220 tests passing in 29 suites.
Details
[email protected] workflow
jest --coverage --json --outputFile=/home/runner/work/formulaone-card/formulaone-card/jest.results.json --testLocationInResults --json --coverage --outputFile=/home/runner/work/formulaone-card/formulaone-card/jest.results.json
PASS tests/cards/schedule.test.ts (10.369 s)
PASS tests/cards/results.test.ts (10.524 s)
PASS tests/index.test.ts (11.213 s)
● Console
console.info
FORMULAONE-CARD 1.9.7
at Object.info (src/index.ts:20:9)
console.log
Refreshing cache...
at FormulaOneCard.log [as refreshCache] (src/index.ts:145:17)
PASS tests/cards/driver-standings.test.ts
PASS tests/cards/countdown.test.ts
PASS tests/utils/renderHeader.test.ts
PASS tests/cards/next-race.test.ts
● Console
console.log
<table> <tbody> <tr> <td colspan="5"><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br></td> </tr> <tr><td>Date</td><td>24-04-22</td><td> </td><td>Practice 1</td><td align="right">vr 13:30</td></tr> <tr><td>Race</td><td>4</td><td> </td><td>Practice 2</td><td align="right">za 12:30</td></tr> <tr><td>Race name</td><td>Emilia Romagna Grand Prix</td><td> </td><td>Practice 3</td><td align="right">-</td></tr> <tr><td>Circuit name</td><td>Autodromo Enzo e Dino Ferrari</td><td> </td><td>Qualifying</td><td align="right">vr 17:00</td></tr> <tr><td>Location</td><td>Italy</td><td> </td><td>Sprint</td><td align="right">za 16:30</td></tr> <tr><td>City</td><td>Imola</td><td> </td><td>Race</td><td align="right">zo 15:00</td></tr> </tbody> </table>
at tests/cards/next-race.test.ts:174:18
console.log
<table> <tbody> <tr> <td colspan="5"><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br></td> </tr> <tr><td>Date</td><td>24-04-22</td><td> </td><td>Practice 1</td><td align="right">vr 13:30</td></tr> <tr><td>Race</td><td>4</td><td> </td><td>Practice 2</td><td align="right">za 12:30</td></tr> <tr><td>Race name</td><td>Emilia Romagna Grand Prix</td><td> </td><td>Practice 3</td><td align="right">-</td></tr> <tr><td>Circuit name</td><td>Autodromo Enzo e Dino Ferrari</td><td> </td><td>Qualifying</td><td align="right">vr 17:00</td></tr> <tr><td>Location</td><td>Italy</td><td> </td><td>Sprint</td><td align="right">za 16:30</td></tr> <tr><td>City</td><td>Imola</td><td> </td><td>Race</td><td align="right">zo 15:00</td></tr> </tbody> </table>
at tests/cards/next-race.test.ts:192:17
console.log
<table> <tbody> <tr> <td colspan="5"><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br></td> </tr> <tr><td>Date</td><td>24-04-22</td><td> </td><td>Practice 1</td><td align="right">vr 13:30</td></tr> <tr><td>Race</td><td>4</td><td> </td><td>Practice 2</td><td align="right">za 12:30</td></tr> <tr><td>Race name</td><td>Emilia Romagna Grand Prix</td><td> </td><td>Practice 3</td><td align="right">-</td></tr> <tr><td>Circuit name</td><td>Autodromo Enzo e Dino Ferrari</td><td> </td><td>Qualifying</td><td align="right">vr 17:00</td></tr> <tr><td>Location</td><td>Italy</td><td> </td><td>Sprint</td><td align="right">za 16:30</td></tr> <tr><td>City</td><td>Imola</td><td> </td><td>Race</td><td align="right">zo 15:00</td></tr> </tbody> </table>
at tests/cards/next-race.test.ts:210:17
console.log
<table> <tbody> <tr> <td colspan="5"><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2><h2 class="formulaone-font"><img height="25" src="https://flagcdn.com/w320/it.png"> 4 : Emilia Romagna Grand Prix</h2> <img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><img width="100%" src="https://www.formula1.com/content/dam/fom-website/2018-redesign-assets/Circuit%20maps%2016x9/Emilia_Romagna_Circuit.png.transform/7col/image.png" @action= .actionHandler= class="" /><br></td> </tr> <tr><td>Date</td><td>24-04-22</td><td> </td><td>Practice 1</td><td align="right">vr 13:30</td></tr> <tr><td>Race</td><td>4</td><td> </td><td>Practice 2</td><td align="right">za 12:30</td></tr> <tr><td>Race name</td><td>Emilia Romagna Grand Prix</td><td> </td><td>Practice 3</td><td align="right">-</td></tr> <tr><td>Circuit name</td><td>Autodromo Enzo e Dino Ferrari</td><td> </td><td>Qualifying</td><td align="right">vr 17:00</td></tr> <tr><td>Location</td><td>Italy</td><td> </td><td>Sprint</td><td align="right">za 16:30</td></tr> <tr><td>City</td><td>Imola</td><td> </td><td>Race</td><td align="right">zo 15:00</td></tr> </tbody> </table>
at tests/cards/next-race.test.ts:228:18
PASS tests/cards/last-result.test.ts
PASS tests/utils/renderRaceInfo.test.ts
PASS tests/api/restcountry-client.test.ts
PASS tests/utils/getCountryFlagUrl.test.ts
PASS tests/api/ergast-client.test.ts
PASS tests/cards/constructor-standings.test.ts
PASS tests/utils/hasConfigOrEntitiesChanged.test.ts
PASS tests/utils/renderLastYearsResults.test.ts
PASS tests/cards/base-card.test.ts
PASS tests/utils/renderWeatherInfo.test.ts
PASS tests/utils/getTeamImageUrl.test.ts
PASS tests/api/image-client.test.ts
PASS tests/lib/formate_date_time.test.ts
PASS tests/utils/reduceArray.test.ts
PASS tests/lib/formate_time.test.ts
PASS tests/lib/formate_date.test.ts
PASS tests/utils/checkConfig.test.ts
PASS tests/utils/getRefreshTime.test.ts
PASS tests/api/weather-client.test.ts
PASS tests/utils/getCircuitName.test.ts
PASS tests/utils/calculateWindDirection.test.ts
PASS tests/utils/getDriverName.test.ts
Test Suites: 29 passed, 29 total
Tests: 220 passed, 220 total
Snapshots: 0 total
Time: 20.076 s
Ran all test suites.
TypeError [ERR_INVALID_ARG_TYPE]: The "paths[1]" argument must be of type string. Received an instance of Array
at new NodeError (node:internal/errors:405:5)
at validateString (node:internal/validators:162:11)
at Object.resolve (node:path:1097:7)
at processResults (/home/runner/work/formulaone-card/formulaone-card/node_modules/@jest/core/build/runJest.js:221:31)
at runJest (/home/runner/work/formulaone-card/formulaone-card/node_modules/@jest/core/build/runJest.js:416:9)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _run10000 (/home/runner/work/formulaone-card/formulaone-card/node_modules/@jest/core/build/cli/index.js:386:7)
at async runCLI (/home/runner/work/formulaone-card/formulaone-card/node_modules/@jest/core/build/cli/index.js:237:3)
at async Object.run (/home/runner/work/formulaone-card/formulaone-card/node_modules/jest-cli/build/cli/index.js:155:37)