Skip to content

Integration test with mock LLM #16

Integration test with mock LLM

Integration test with mock LLM #16

Triggered via pull request June 10, 2024 05:56
Status Failure
Total duration 45s
Artifacts

buildOnPR.yml

on: pull_request
Run Build
38s
Run Build
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
src/tests/integration/cli.test.ts > cli > should run with mock LLM: src/tests/integration/cli.test.ts#L40
AssertionError: expected '\u001b[90m┌\u001b[39m 🦾 Micro Agent…' to contain 'src/tests/integration/add.test.ts (6…' - Expected + Received - src/tests/integration/add.test.ts (6 tests) + ┌ 🦾 Micro Agent + │ + ◇ Running tests... + + │ > @builder.io/[email protected] test:all + │ > vitest run add + │ + │ + │ RUN v1.6.0 /home/runner/work/micro-agent/micro-agent + │ + │ ❯ src/tests/integration/add.test.ts (6 tests | 6 failed) 7ms + │ ❯ src/tests/integration/add.test.ts > should add two positive numbers + │ → add is not a function + │ ❯ src/tests/integration/add.test.ts > should add two negative numbers + │ → add is not a function + │ ❯ src/tests/integration/add.test.ts > should add a positive and a negative number + │ → add is not a function + │ ❯ src/tests/integration/add.test.ts > should add zero to a number + │ → add is not a function + │ ❯ src/tests/integration/add.test.ts > should add decimal numbers + │ → add is not a function + │ ❯ src/tests/integration/add.test.ts > should handle large numbers + │ → add is not a function + │ + │ + │ ::error file=/home/runner/work/micro-agent/micro-agent/src/tests/integration/add.test.ts,title=src/tests/integration/add.test.ts > should add two positive numbers,line=5,column=10::TypeError: add is not a function%0A ❯ src/tests/integration/add.test.ts:5:10%0A%0A + │ + │ ::error file=/home/runner/work/micro-agent/micro-agent/src/tests/integration/add.test.ts,title=src/tests/integration/add.test.ts > should add two negative numbers,line=9,column=10::TypeError: add is not a function%0A ❯ src/tests/integration/add.test.ts:9:10%0A%0A + │ + │ ::error file=/home/runner/work/micro-agent/micro-agent/src/tests/integration/add.test.ts,title=src/tests/integration/add.test.ts > should add a positive and a negative number,line=13,column=10::TypeError: add is not a function%0A ❯ src/tests/integration/add.test.ts:13:10%0A%0A + │ + │ ::error file=/home/runner/work/micro-agent/micro-agent/src/tests/integration/add.test.ts,title=src/tests/integration/add.test.ts > should add zero to a number,line=17,column=10::TypeError: add is not a function%0A ❯ src/tests/integration/add.test.ts:17:10%0A%0A + │ + │ ::error file=/home/runner/work/micro-agent/micro-agent/src/tests/integration/add.test.ts,title=src/tests/integration/add.test.ts > should add decimal numbers,line=22,column=10::TypeError: add is not a function%0A ❯ src/tests/integration/add.test.ts:22:10%0A%0A + │ + │ ::error file=/home/runner/work/micro-agent/micro-agent/src/tests/integration/add.test.ts,title=src/tests/integration/add.test.ts > should handle large numbers,line=27,column=10::TypeError: add is not a function%0A ❯ src/tests/integration/add.test.ts:27:10%0A%0A + │ Test Files 1 failed (1) + │ Tests 6 failed (6) + │ Start at 05:57:29 + │ Duration 284ms (transform 37ms, setup 0ms, collect 28ms, tests 7ms, environment 0ms, prepare 68ms) + │ + │ + │ + ◇ Generating code... + + │ │ + ◇ Updated code + │ + ◇ Running tests... + + │ > @builder.io/[email protected] test:all + │ > vitest run add + │ + │ + │ RUN v1.6.0 /home/runner/work/micro-agent/micro-agent + │ + │ ✓ src/tests/integration/add.test.ts (6 tests) 3ms + │ + │ Test Files 1 passed (1) + │ Tests 6 passed (6) + │ Start at 05:57:30 + │ Duration 281ms (transform 43ms, setup 0ms, collect 28ms, tests 3ms, environment 0ms, prepare 71ms) + │ + │ + │ + └ All tests passed! + ❯ src/tests/integration/cli.test.ts:40:20
Run Build
Process completed with exit code 1.
Run Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Build
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/