We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a1b4d commit 8d969d8Copy full SHA for 8d969d8
src/nala/__tests__/nala.test.ts
@@ -1,6 +1,7 @@
1
import { setupNala } from "../nala"
2
import { testBin } from "../../utils/tests/test-helpers"
3
import { isUbuntu } from "../../utils/env/isUbuntu"
4
+import { execRootSync } from "admina"
5
6
jest.setTimeout(300000)
7
describe("setup-nala", () => {
@@ -12,4 +13,10 @@ describe("setup-nala", () => {
12
13
const installInfo = await setupNala("", "", process.arch)
14
await testBin("nala", ["--version"], installInfo?.binDir)
15
})
16
+
17
+ afterAll(() => {
18
+ // remove nala to run the rest of the tests with apt-get
19
+ execRootSync("apt-get", ["remove", "-y", "nala"])
20
+ execRootSync("apt-get", ["remove", "-y", "nala-legacy"])
21
+ })
22
0 commit comments