reconsumeralization / CodeCurse

CodeCurse AI IDE
MIT License
2 stars 0 forks source link

Add tests for chat feature files #19

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

PR Feedback (click)

Each file has a corresponding test file with the suffix .test.ts. The tests cover all cases and scenarios for the functions and classes in each file.

Summary of Changes

Fixes #18.


πŸŽ‰ Latest improvements to Sweep:


πŸ’‘ To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 1 year ago

Sandbox Executions

trunk fmt workbench/features/chat/promptUtils.ts || exit 0 1/2 βœ“
  FAILURES  
 prettier  workbench/features/chat/promptUtils.ts  .trunk/out/ThK0j.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 0 files
βœ– No issues, 1 failure
trunk check --fix --print-failures workbench/features/chat/promptUtils.ts 2/2 ❌ (`1`)
  ISSUES  
workbench/features/chat/promptUtils.ts:290:1
 290:1  high   leftover conflict marker  git-diff-check/error
  FAILURES  
 prettier  workbench/features/chat/promptUtils.ts  .trunk/out/JZ4u0.yaml
  NOTICES  
 A tool failed to run. You can open the details yaml file for more information.
Checked 1 file
βœ– 1 new issue
# .trunk/out/JZ4u0.yaml
trunk_cli_version: 1.17.1
title: prettier exited with exit_code=2
report:
  - prettier exited with exit_code=2
  - linter:
      command: |
        /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/promptUtils.ts
      stdin_path: (none)
      run_from: /tmp/trunk-0/Kcfwnu/Rn011r
      timeout: 10m
      rerun: (cd /tmp/trunk-0/Kcfwnu/Rn011r; env -i PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3/bin:/root/.cache/trunk/tools/node/18.12.1-00ae74f39ac4de3ff3c7e3686016ebf3:/root/.nvm/versions/node/v18.17.0/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin NODE_PATH=/root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules HOME=/root /root/.cache/trunk/tools/prettier/3.0.3-f40a31f1cf22ae011727ab1e40e55171/node_modules/.bin/prettier -w workbench/features/chat/promptUtils.ts)
      affects_cache:
        []
      direct_configs:
        []
      exit_status: exited
      exit_code: 2
      stdout: (none)
      stderr: |
        [error] workbench/features/chat/promptUtils.ts: SyntaxError: Merge conflict marker encountered. (290:1)
        [error]   288 | }
        [error]   289 |
        [error] > 290 | =======
        [error]       | ^
        [error]   291 | import {
        [error]   292 |     findFileIdFromPath,
        [error]   293 |     getContentsIfNeeded,
    parser: |
      (none)

sweep-ai[bot] commented 1 year ago

Apply Sweep Rules to your PR?

height[bot] commented 1 year ago

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

πŸ’‘Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.