Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[Bug] Jest detects open handle

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

@mjameswh đang làm issue này rồi.

Từ ngày 21/11/2022.

Đánh giá

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

Mô tả

bug
cd activities-examples
npm run jest -- -t httpWorkflow

results in:

A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --detectOpenHandles to find leaks. Active timers can also cause this, ensure that .unref() was called on them.

npm run jest -- -t httpWorkflow --detectOpenHandles

results in:

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

  ●  neon threadsafe function

    > 1 | import { TestWorkflowEnvironment } from '@temporalio/testing';
        | ^
      2 | import { Worker, Runtime, DefaultLogger, LogEntry } from '@temporalio/worker';
      3 | import { v4 as uuid4 } from 'uuid';
      4 | import { httpWorkflow } from './workflows';

      at Object.<anonymous> (node_modules/@temporalio/worker/src/worker.ts:95:8)
      at Object.<anonymous> (node_modules/@temporalio/worker/src/index.ts:29:1)
      at Object.<anonymous> (node_modules/@temporalio/testing/src/index.ts:20:1)
      at Object.<anonymous> (src/workflows.test.ts:1:1)
Ngôn ngữ chính
TypeScript
Star
469
Fork
150
Merge trung bình
2 ngày 16 giờ
Pull request đã merge (30 ngày)
3

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 temporalio/samples-typescript

Tất cả issue của temporalio/samples-typescript

Issue tương tự

Thêm issue về TypeScript

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.