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.
 
 
 
 

19 lines
611 B

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 lts`, async () => {
await script(shell)
.then(shell.env({}))
.then(shell.call("fnm", ["install", "--lts"]))
.then(
shell.scriptOutputContains(shell.call("fnm", ["ls"]), "lts-latest")
)
.then(shell.call("fnm", ["use", "'lts/*'"]))
.takeSnapshot(shell)
.execute(shell)
})
})
}