Skip to content

fix tests

fix tests #2083

Triggered via push January 9, 2024 08:54
Status Failure
Total duration 1m 48s
Artifacts

nodejs.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 39 warnings
Container component > should render a container with array of objects with string columns: tests/jest/view/container.test.tsx#L266
Error: expect(received).toMatchSnapshot() Snapshot name: `Container component should render a container with array of objects with string columns 1` - Snapshot - 1 + Received + 1 - "<div role="complementary" class="gridjs gridjs-container" style="width: 100%;"><div class="gridjs-wrapper" style="height: auto;"><table role="grid" class="gridjs-table" style="height: auto;"><thead class="gridjs-thead"><tr class="gridjs-tr"><th data-column-id="name" class="gridjs-th"><div class="gridjs-th-content">Name</div></th><th data-column-id="phoneNumber" class="gridjs-th"><div class="gridjs-th-content">Phone Number</div></th></tr></thead><tbody class="gridjs-tbody"><tr class="gridjs-tr"><td data-column-id="name" class="gridjs-td">boo</td><td data-column-id="phoneNumber" class="gridjs-td">123</td></tr><tr class="gridjs-tr"><td data-column-id="name" class="gridjs-td">foo</td><td data-column-id="phoneNumber" class="gridjs-td">456</td></tr><tr class="gridjs-tr"><td data-column-id="name" class="gridjs-td">bar</td><td data-column-id="phoneNumber" class="gridjs-td">789</td></tr></tbody></table></div><div id="gridjs-temp" class="gridjs-temp"></div></div>" + "<div role="complementary" class="gridjs gridjs-container" style="width: 100%;"><div class="gridjs-wrapper" style="height: auto;"><table role="grid" class="gridjs-table" style="height: auto;"><thead class="gridjs-thead"><tr class="gridjs-tr"><th data-column-id="name" class="gridjs-th"><div class="gridjs-th-content">Name</div></th><th data-column-id="phoneNumber" class="gridjs-th"><div class="gridjs-th-content">Phone Number</div></th></tr></thead><tbody class="gridjs-tbody"></tbody></table></div><div id="gridjs-temp" class="gridjs-temp"></div></div>" at /home/runner/work/gridjs/gridjs/tests/jest/view/container.test.tsx:285:30 at step (/home/runner/work/gridjs/gridjs/node_modules/tslib/tslib.js:144:27) at Object.next (/home/runner/work/gridjs/gridjs/node_modules/tslib/tslib.js:125:57) at fulfilled (/home/runner/work/gridjs/gridjs/node_modules/tslib/tslib.js:115:62)
build (14.x)
Process completed with exit code 1.
build (16.x)
Process completed with exit code 1.
🧾 Statement is not covered: src/view/plugin/pagination.tsx#L50
Warning! Not covered statement
🌿 Branch is not covered: src/view/plugin/pagination.tsx#L42
Warning! Not covered branch
🧾 Statement is not covered: src/view/plugin/sort/sort.tsx#L61
Warning! Not covered statement
🌿 Branch is not covered: src/view/plugin/sort/sort.tsx#L48
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/sort.tsx#L60
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/sort.tsx#L62
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/sort.tsx#L62
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/sort.tsx#L68
Warning! Not covered branch
🧾 Statement is not covered: src/view/plugin/sort/actions.ts#L10
Warning! Not covered statement
🧾 Statement is not covered: src/view/plugin/sort/actions.ts#L11
Warning! Not covered statement
🧾 Statement is not covered: src/view/plugin/sort/actions.ts#L88
Warning! Not covered statement
🧾 Statement is not covered: src/view/plugin/sort/actions.ts#L89
Warning! Not covered statement
🌿 Branch is not covered: src/view/plugin/sort/actions.ts#L11
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/actions.ts#L11
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/actions.ts#L89
Warning! Not covered branch
🌿 Branch is not covered: src/view/plugin/sort/actions.ts#L89
Warning! Not covered branch
🌿 Branch is not covered: src/util/throttle.ts#L7
Warning! Not covered branch
build (14.x)
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/
build (14.x): src/config.ts#L38
Unexpected any. Specify a different type
build (14.x): src/config.ts#L58
Unexpected any. Specify a different type
build (14.x): src/header.ts#L255
Unexpected any. Specify a different type
build (14.x): src/pipeline/extractor/storage.ts#L9
Unexpected any. Specify a different type
build (14.x): src/pipeline/extractor/storage.ts#L20
Unexpected any. Specify a different type
build (14.x): src/pipeline/initiator/server.ts#L22
'_' is defined but never used
build (14.x): src/pipeline/transformer/arrayToTabular.ts#L7
Unexpected any. Specify a different type
build (14.x): src/plugin.ts#L19
Unexpected any. Specify a different type
build (14.x): src/plugin.ts#L29
Unexpected any. Specify a different type
build (14.x): src/plugin.ts#L68
Unexpected any. Specify a different type
build (16.x)
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/
build (16.x): src/config.ts#L38
Unexpected any. Specify a different type
build (16.x): src/config.ts#L58
Unexpected any. Specify a different type
build (16.x): src/header.ts#L255
Unexpected any. Specify a different type
build (16.x): src/pipeline/extractor/storage.ts#L9
Unexpected any. Specify a different type
build (16.x): src/pipeline/extractor/storage.ts#L20
Unexpected any. Specify a different type
build (16.x): src/pipeline/initiator/server.ts#L22
'_' is defined but never used
build (16.x): src/pipeline/transformer/arrayToTabular.ts#L7
Unexpected any. Specify a different type
build (16.x): src/plugin.ts#L19
Unexpected any. Specify a different type
build (16.x): src/plugin.ts#L29
Unexpected any. Specify a different type
build (16.x): src/plugin.ts#L68
Unexpected any. Specify a different type