Skip to content

Fix undefined date error while generating CSV report #43

Fix undefined date error while generating CSV report

Fix undefined date error while generating CSV report #43

Triggered via pull request February 21, 2024 01:53
Status Failure
Total duration 4m 35s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L9
Mocks should not be manually imported from a __mocks__ directory. Instead use `jest.mock` and import from the original module path
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L63
'timeCreated' is assigned a value but never used. Allowed unused vars must match /^_/u
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1214
'hits' is never reassigned. Use 'const' instead
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1358
Replace `"Etc/GMT-2"` with `'Etc/GMT-2'`
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1401
Replace `⏎····hits,⏎····'"category",·"customer_gender"'⏎··` with `hits,·'"category",·"customer_gender"'`
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1415
Replace `⏎····'category,customer_gender\n'·+⏎······'c1,Ma\n'·+⏎······'c2,le'⏎··` with `'category,customer_gender\n'·+·'c1,Ma\n'·+·'c2,le'`
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1548
Illegal usage of `fail`, prefer throwing an error, or the `done.fail` callback
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1626
Parameter name `source_kv` must match one of the following formats: camelCase, PascalCase
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1626
Parameter name `fields_kv` must match one of the following formats: camelCase, PascalCase
Lint
Process completed with exit code 1.
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1, lots0logs/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L61
Unexpected any. Specify a different type
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L104
Unexpected any. Specify a different type
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1508
Unexpected any. Specify a different type
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1508
Unexpected any. Specify a different type
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1515
Unexpected any. Specify a different type
Lint: server/routes/utils/__tests__/savedSearchReportHelper.test.ts#L1626
Unexpected any. Specify a different type