Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug] Jest detects open handle

Aperta
#189 5 commenti 4 reazioni 1 assegnatario Vedi su GitHub

@mjameswh ci sta già lavorando.

Dal 21/11/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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)
Lingua principale
TypeScript
Stelle
469
Fork
150
Merge medio
2g 16h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di temporalio/samples-typescript

Tutte le issue di temporalio/samples-typescript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.