Skip to content

Add bun test

Add bun test #100

Triggered via pull request July 30, 2024 11:34
Status Failure
Total duration 56s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 4 warnings
TypeError: test.concurrent is not a function. (In 'test.concurrent("generate works": src/test/tests.test.ts#L11
prompt: "Please explain to me how LLMs work", temperature: 0 }); })', 'test.concurrent' is undefined) at /home/runner/work/cohere-typescript/cohere-typescript/src/test/tests.test.ts:11:10 at /home/runner/work/cohere-typescript/cohere-typescript/src/test/tests.test.ts:10:1
ReferenceError: Can't find variable: describe: tests/unit/zurg/utils/itSchema.ts#L28
at itSchema (/home/runner/work/cohere-typescript/cohere-typescript/tests/unit/zurg/utils/itSchema.ts:28:29) at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/zurg/schema.test.ts:16:5 at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/zurg/schema.test.ts:15:1
TypeError: jest.mock is not a function. (In 'jest.mock("../../../src/core/fetcher/Fetcher": tests/unit/fetcher/Fetcher.test.ts#L17
getBody: mockGetBody, getFetchFn: mockGetFetchFn, requestWithRetries: mockRequestWithRetries, getResponseBody: mockGetResponseBody }))', 'jest.mock' is undefined) at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/fetcher/Fetcher.test.ts:17:14
error: 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/wor: node:worker_threads#L189
error: Invalid flag "r" in regular expression at blob:f97b3a81-1ca5-4601-b9e1-010d512c5d8d:1:8 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/worke ^ error: Invalid flag "n" in regular expression at blob:f97b3a81-1ca5-4601-b9e1-010d512c5d8d:1:10 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/worker ^ error: Invalid flag "n" in regular expression at blob:f97b3a81-1ca5-4601-b9e1-010d512c5d8d:1:11 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/workers ^ error: Invalid flag "e" in regular expression at blob:f97b3a81-1ca5-4601-b9e1-010d512c5d8d:1:12 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/workers/ ^ error: Invalid flag "r" in regular expression at blob:f97b3a81-1ca5-4601-b9e1-010d512c5d8d:1:13 at #onError (node:worker_threads:189:11)
error: 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/wor: node:worker_threads#L189
error: Invalid flag "r" in regular expression at blob:2db590a2-6a56-4605-9043-63d981510885:1:8 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/worke ^ error: Invalid flag "n" in regular expression at blob:2db590a2-6a56-4605-9043-63d981510885:1:10 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/worker ^ error: Invalid flag "n" in regular expression at blob:2db590a2-6a56-4605-9043-63d981510885:1:11 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/workers ^ error: Invalid flag "e" in regular expression at blob:2db590a2-6a56-4605-9043-63d981510885:1:12 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/workers/ ^ error: Invalid flag "r" in regular expression at blob:2db590a2-6a56-4605-9043-63d981510885:1:13 at #onError (node:worker_threads:189:11)
error: 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/wor: node:worker_threads#L189
error: Invalid flag "r" in regular expression at blob:0d7a3553-9b1b-467f-bee6-6eab44060498:1:8 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/worke ^ error: Invalid flag "n" in regular expression at blob:0d7a3553-9b1b-467f-bee6-6eab44060498:1:10 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/worker ^ error: Invalid flag "n" in regular expression at blob:0d7a3553-9b1b-467f-bee6-6eab44060498:1:11 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/workers ^ error: Invalid flag "e" in regular expression at blob:0d7a3553-9b1b-467f-bee6-6eab44060498:1:12 1 | /home/runner/work/cohere-typescript/cohere-typescript/node_modules/jest-worker/build/workers/ ^ error: Invalid flag "r" in regular expression at blob:0d7a3553-9b1b-467f-bee6-6eab44060498:1:13 at #onError (node:worker_threads:189:11)
TypeError: jest.advanceTimersByTime is not a function. (In 'jest.advanceTimersByTime(4999)': tests/unit/fetcher/signals.test.ts#L27
at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/fetcher/signals.test.ts:27:14
TypeError: jest.advanceTimersByTimeAsync is not a function. (In 'jest.advanceTimersByTimeAsync(1e4)': tests/unit/fetcher/requestWithRetries.test.ts#L35
at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/fetcher/requestWithRetries.test.ts:35:20 at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/fetcher/requestWithRetries.test.ts:23:47
TypeError: jest.advanceTimersByTimeAsync is not a function. (In 'jest.advanceTimersByTimeAsync(1e4)': tests/unit/fetcher/requestWithRetries.test.ts#L51
at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/fetcher/requestWithRetries.test.ts:51:20 at /home/runner/work/cohere-typescript/cohere-typescript/tests/unit/fetcher/requestWithRetries.test.ts:42:36
bun-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
bun-test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
node-test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
node-test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/