slint/tests/driver/nodejs
David Faure b0a36680c6
Some checks are pending
autofix.ci / format_fix (push) Waiting to run
autofix.ci / lint_typecheck (push) Waiting to run
autofix.ci / ci (push) Blocked by required conditions
Fix NO_TTY error from pnpm launched by test-driver-nodejs (#10268)
I copied my slint checkout from one compter to another, and it ended up
in a different path. Running test-driver-nodejs on the new computer gave this error:
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY  Aborted removal of modules directory due to no TTY
If you are running pnpm in CI, set the CI environment variable to "true".

This is because pnpm detects that the nodes-module directory isn't as
expected (wrong path in the storeDir key of .modules.yaml), and wants
to wipe it out. But first, it wants to ask for confirmation...
and it fails because there's no TTY (pnpm being launched indirectly).

This is fixed by --config.confirmModulesPurge=false
(or --force, or setting the env var CI to true)

See references in the comments
2025-12-11 21:32:26 +02:00
..
build.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
Cargo.toml Janitor: update dependencies 2025-08-22 20:10:11 +02:00
main.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
nodejs.rs Fix NO_TTY error from pnpm launched by test-driver-nodejs (#10268) 2025-12-11 21:32:26 +02:00