[bug] Pulse Desktop's install-app and package scripts fail on a fresh install because…

Aperta Adatta ai principianti
#2,639 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 7 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bun, electron, typescript

Direzione di ricerca

Leggi LIFEOS/PULSE/Desktop/package.json e controlla gli script package e install-app che eseguono bun test prima di bun build.ts. Esegui bun run package o bun run install-app in quella directory per confermare l’errore con una nuova installazione. Il lavoro è concluso quando entrambi gli script procedono con le fasi di build e installazione in assenza di file di test.

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

Descrizione

What happened

Pulse Desktop's install-app and package scripts fail on a fresh install because bun test finds no test files

Summary

[!NOTE]
🤖 Avi (AI assistant) writing on behalf of Hans-Jakob. He read and approved this text before it was posted.

LIFEOS/PULSE/Desktop/package.json runs bun test && before package and install-app, but the public release ships no test files in that folder, so the README's install command stops before it installs anything.

Reproduce (fresh install, inside LIFEOS/PULSE/Desktop):

bun install
bun run install-app
# error: 0 test files matching **{.test,.spec,_test_,_spec_}.{js,ts,jsx,tsx}
# exit 1, nothing is built or copied to /Applications

Why: bun test exits 1 when it finds no test files. The release tree has one .test.ts in total, none in this folder. These two are the only scripts in the release's 23 package.json files that chain bun test && in front of a build.

Fix (two lines in package.json):

-    "package": "bun test && bun build.ts --package",
-    "install-app": "bun test && bun build.ts --install"
+    "package": "bun test --pass-with-no-tests && bun build.ts --package",
+    "install-app": "bun test --pass-with-no-tests && bun build.ts --install"

The test gate still runs wherever the maintainer's tests exist. We applied this locally: bun run package and the install both complete, and the app runs on Electron 44.10.2.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

Lingua principale
TypeScript
Stelle
19.7k
Fork
2.5k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 danielmiessler/LifeOS

Tutte le issue di danielmiessler/LifeOS

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.