Skip to content

PR #316

PR #316 #353

GitHub Actions / jest-github-action succeeded Nov 16, 2023 in 0s

Jest tests passed

215 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 (9.649 s)
PASS tests/cards/results.test.ts (9.902 s)
PASS tests/index.test.ts (10.442 s)
● Console

console.info
   FORMULAONE-CARD  1.8.8

  at Object.info (src/index.ts:20:9)

PASS tests/cards/countdown.test.ts
PASS tests/cards/next-race.test.ts
PASS tests/cards/driver-standings.test.ts
PASS tests/utils/renderHeader.test.ts
PASS tests/cards/last-result.test.ts
PASS tests/utils/getCountryFlagUrl.test.ts
PASS tests/utils/renderRaceInfo.test.ts
PASS tests/cards/constructor-standings.test.ts
PASS tests/api/ergast-client.test.ts
PASS tests/api/restcountry-client.test.ts
PASS tests/cards/base-card.test.ts
PASS tests/utils/renderLastYearsResults.test.ts
PASS tests/utils/hasConfigOrEntitiesChanged.test.ts
PASS tests/utils/getTeamImageUrl.test.ts
PASS tests/utils/renderWeatherInfo.test.ts
PASS tests/utils/getDriverName.test.ts
PASS tests/utils/getRefreshTime.test.ts
PASS tests/lib/formate_date_time.test.ts
PASS tests/utils/reduceArray.test.ts
PASS tests/utils/calculateWindDirection.test.ts
PASS tests/utils/getCircuitName.test.ts
PASS tests/api/weather-client.test.ts
PASS tests/api/image-client.test.ts
PASS tests/lib/formate_time.test.ts
PASS tests/lib/formate_date.test.ts
PASS tests/utils/checkConfig.test.ts

Test Suites: 29 passed, 29 total
Tests: 215 passed, 215 total
Snapshots: 0 total
Time: 20.326 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)