AOSSIE-Org / AOSSIE-Org/PictoPy

DOC: Jest warning shown after successful frontend tests (“Jest did not exit one second after the test run”)

Đang mở
#1,137 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
283
Fork
679
Merge trung bình
7 ngày 2 giờ
Pull request đã merge (30 ngày)
3

Mô tả

### What's wrong with the existing documentation

Description:
When running PictoPy frontend tests, all tests pass successfully, but Jest still prints a warning about open async handles. This can confuse contributors into thinking something is wrong even when tests are green.

Environment:

OS: Windows 11

Frontend: React + Vite

Test runner: Jest

Steps to reproduce:

Go to frontend directory

Run:

npm test

Observed output:

Test Suites: 1 passed
Tests: 6 passed
Jest did not exit one second after the test run has completed.

Observed behavior:

All frontend tests pass

Application works correctly

Warning is printed after test completion

Expected behavior:

Either:

Jest exits cleanly, or

Documentation explains that this warning is harmless when tests pass

Why this matters:

New contributors may think frontend setup is broken

Creates unnecessary confusion during onboarding

Suggestion:

Document this warning in frontend testing docs

Or investigate async handles not being closed in tests

### Add ScreenShots

_No response_

### Record

- [x] I agree to follow this project's Code of Conduct
- [x] I want to work on this issue

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.