oracle-gaps: a Vitest that won't resolve for the generated wrapper is blamed on the user's config

Đang mở
#65 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
testing-qa

Hướng nghiên cứu

The wrong blame comes from check.mjs around lines 557-562, where the user's Vitest config name is printed in place of the generated wrapper path (<pkg>/.oracle-gaps-<pid>/vitest-N.config.mts). Start by reading that refusal and the wrapper's vitest/config import, then reproduce by running the gap check with --package where vitest does not resolve. Done means the refusal names the wrapper and says vitest >= 4.1 must resolve from --package, with a constructed history case added to the gap report oracle's tests.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Reported from an adopter's first session, at c58b0c2. Not yet reproduced here.

Problem. The generated wrapper (<pkg>/.oracle-gaps-<pid>/vitest-N.config.mts) imports mergeConfig from vitest/config. When vitest doesn't resolve from --package, the refusal blames the user's config: "the package's Vitest config (tests/realtime-oracles/vitest.config.ts) failed to load: Cannot find package 'vitest'". Its fix line says "Make load under Vitest", but the user's config was fine. The cause is check.mjs:557-562, which puts the user's config name in place of the wrapper's path.

Proposal. When the missing package is vitest or vite, the refusal should name the wrapper and say "vitest >= 4.1 must resolve from --package". Add a constructed history for this refusal to the gap report oracle.

This issue was written by Isaac.

Ngôn ngữ chính
JavaScript
Star
5
Fork
1
Merge trung bình
8 giờ 31 phút
Pull request đã merge (30 ngày)
60

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của TanStack/oracles

Tất cả issue của TanStack/oracles

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.