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

Generated Fastify ESM/TS app has broken `npm test` command (FASTIFY_AUTOLOAD_TYPESCRIPT)

Aperta
#835 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@GhaythBenAbid ci sta già lavorando.

Dal 16/9/2026.

  • #919 di @GhaythBenAbid — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
node.js, typescript

Direzione di ricerca

Riproduci l’app fastify-test generata su Windows eseguendo i comandi di configurazione e npm test. Ispeziona il comando npm test generato, test/tsconfig.json e test/**/*.ts; il lavoro è completato quando l’app ESM/TypeScript generata esegue npm test correttamente senza l’errore del comando FASTIFY_AUTOLOAD_TYPESCRIPT.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Prerequisites
  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported
Fastify version

7.4.0

Plugin version

No response

Node.js version

24.4.0

Operating system

Windows

Operating system version (i.e. 20.04, 11.3, 10)

11

Description

Setup

fastify generate fastify-test --lang=ts --esm
cd fastify-test
npm install

Attempt

npm test

Outcome

> [email protected] test
> npm run build:ts && tsc -p test/tsconfig.json && FASTIFY_AUTOLOAD_TYPESCRIPT=1 node --test --experimental-test-coverage --loader ts-node/esm test/**/*.ts


> [email protected] build:ts
> tsc

'FASTIFY_AUTOLOAD_TYPESCRIPT' is not recognized as an internal or external command, 
operable program or batch file.
Link to code that reproduces the bug

see above

Expected Behavior

npm test should successfully run as generated.

Lingua principale
JavaScript
Stelle
733
Fork
179
Merge medio
8g 12h
PR unite (30g)
2

Preparare l'ambiente

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 fastify/fastify-cli

Tutte le issue di fastify/fastify-cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.