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
602 B
20 lines
602 B
![]()
2 years ago
|
import { script } from "./shellcode/script"
|
||
|
import { Bash, Fish, PowerShell, Zsh } from "./shellcode/shells"
|
||
|
import describe from "./describe"
|
||
|
|
||
|
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)
|
||
|
})
|
||
|
})
|
||
|
}
|