Skip to content

Commit

Permalink
use nupm install --no-confirm in tests install-package (#108)
Browse files Browse the repository at this point in the history
related to
- nushell/nupm#42

## description
this PR addesses a FIXME by using this new feature of `nupm install`:
the `--no-confirm` switch
  • Loading branch information
amtoine authored Nov 23, 2023
1 parent a3ca2a1 commit 803915f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,7 @@ export def install-package [] {
use ~/.local/share/nupm/modules/nupm

with-env {NUPM_HOME: (get-random-test-dir)} {
# FIXME: use --no-confirm option
# related to https://github.com/nushell/nupm/pull/42
mkdir $env.NUPM_HOME;
nupm install --path .
nupm install --no-confirm --path .

assert length (ls ($env.NUPM_HOME | path join "scripts")) 0
assert equal (ls ($env.NUPM_HOME | path join "modules") --short-names | get name) [nu-git-manager, nu-git-manager-sugar]
Expand Down

0 comments on commit 803915f

Please sign in to comment.