/
repair.spec.ts
38 lines (30 loc) · 915 Bytes
/
repair.spec.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Fixture, normalizeEnvironment } from "@lerna/e2e-utils";
expect.addSnapshotSerializer({
serialize(str) {
return normalizeEnvironment(str);
},
test(val) {
return val != null && typeof val === "string";
},
});
describe("lerna-repair", () => {
let fixture: Fixture;
beforeAll(async () => {
fixture = await Fixture.create({
e2eRoot: process.env.E2E_ROOT,
name: "lerna-repair",
packageManager: "npm",
initializeGit: true,
lernaInit: { args: [`--packages="packages/*"`] },
installDependencies: true,
});
});
afterAll(() => fixture.destroy());
it("should run any existing migrations", async () => {
const output = await fixture.lerna("repair");
expect(output.combinedOutput).toMatchInlineSnapshot(`
lerna notice cli v999.9.9-e2e.0
Lerna No changes were necessary. This workspace is up to date!
`);
});
});