parse-community / parse-community/parse-server-example
Failing tests on node 18.x
Đang mở
Chưa có ai nhận issue này.
type:bug
- Ngôn ngữ chính
- JavaScript
- Star
- 1.9k
- Fork
- 5.3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
The provided tests in the example repo are failing on Node 18, due to a jasmine timeout error.
Steps to reproduce:
- Checkout the repository
- Setup node 18.x
- Run tests ->
npm run test
➜ parse-server-example git:(master) ✗ git --no-pager log --oneline -n 1 && node -v && npm -v && npm run test
2d072a6 (HEAD -> master, origin/master, origin/HEAD) docs: update README (#419)
v18.12.1
8.19.2
> parse-server-example@1.4.0 test
> mongodb-runner start && jasmine
◝ Starting a MongoDB deployment to test against...DATABASE_URI not specified, falling back to localhost.
Started
warn: DeprecationWarning: The Parse Server option 'directAccess' default will change to 'true' in a future version. Additionally, the environment variable 'PARSE_SERVER_ENABLE_EXPERIMENTAL_DIRECT_ACCESS' will be deprecated and renamed to 'PARSE_SERVER_DIRECT_ACCESS' in a future version; it is currently possible to use either one.
warn: DeprecationWarning: The Parse Server option 'enforcePrivateUsers' default will change to 'true' in a future version.
..F..
Failures:
1) Parse Server example failing test
Message:
Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
Stack:
at <Jasmine>
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7)
Suite error: top suite
Message:
Error: Timeout - Async function did not complete within 5000ms (set by jasmine.DEFAULT_TIMEOUT_INTERVAL)
Stack:
at <Jasmine>
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7)
5 specs, 2 failures
Finished in 11.087 seconds
➜ parse-server-example git:(master) ✗
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách checkout repository, sử dụng Node 18.x và chạy npm run test để tái hiện timeout của Jasmine. Kiểm tra test example-repo đang bị lỗi và phần thiết lập test của nó, sau đó xác nhận rằng cả 5 spec đều pass trong khoảng timeout đã cấu hình trên Node 18.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, node.js
- Lĩnh vực
- testing-qa
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100