You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
607 B
20 lines
607 B
![]()
9 months ago
|
import { script } from "./shellcode/script.js"
|
||
|
import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells.js"
|
||
|
import describe from "./describe.js"
|
||
|
|
||
|
for (const shell of [Bash, Zsh, Fish, PowerShell]) {
|
||
|
describe(shell, () => {
|
||
|
test(`installs latest`, async () => {
|
||
|
await script(shell)
|
||
|
.then(shell.env({}))
|
||
|
.then(shell.call("fnm", ["install", "--latest"]))
|
||
|
.then(
|
||
|
shell.scriptOutputContains(shell.call("fnm", ["ls"]), "latest")
|
||
|
)
|
||
|
.then(shell.call("fnm", ["use", "'latest'"]))
|
||
|
.takeSnapshot(shell)
|
||
|
.execute(shell)
|
||
|
})
|
||
|
})
|
||
|
}
|