Skip to content

Commit f2e3785

Browse files
disable eject
1 parent 5db360a commit f2e3785

File tree

1 file changed

+45
-42
lines changed

1 file changed

+45
-42
lines changed

packages/create-llama/e2e/typescript/eject.spec.ts

Lines changed: 45 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -16,52 +16,55 @@ const llamaCloudIndexName = "e2e-test";
1616

1717
const ejectDir = "next";
1818

19-
test.describe(`Test eject command for ${useCase} ${templateFramework} ${vectorDb}`, async () => {
20-
let port: number;
21-
let cwd: string;
22-
let name: string;
23-
let appProcess: ChildProcess;
19+
test.describe.skip(
20+
`Test eject command for ${useCase} ${templateFramework} ${vectorDb}`,
21+
async () => {
22+
let port: number;
23+
let cwd: string;
24+
let name: string;
25+
let appProcess: ChildProcess;
2426

25-
test.beforeAll(async () => {
26-
port = Math.floor(Math.random() * 10000) + 10000;
27-
cwd = await createTestDir();
28-
const result = await runCreateLlama({
29-
cwd,
30-
templateFramework,
31-
vectorDb,
32-
port,
33-
postInstallAction: "dependencies",
34-
useCase,
35-
llamaCloudProjectName,
36-
llamaCloudIndexName,
27+
test.beforeAll(async () => {
28+
port = Math.floor(Math.random() * 10000) + 10000;
29+
cwd = await createTestDir();
30+
const result = await runCreateLlama({
31+
cwd,
32+
templateFramework,
33+
vectorDb,
34+
port,
35+
postInstallAction: "dependencies",
36+
useCase,
37+
llamaCloudProjectName,
38+
llamaCloudIndexName,
39+
});
40+
name = result.projectName;
41+
appProcess = result.appProcess;
3742
});
38-
name = result.projectName;
39-
appProcess = result.appProcess;
40-
});
4143

42-
test("Should successfully eject, install dependencies and build without errors", async ({
43-
page,
44-
}) => {
45-
test.skip(
46-
vectorDb === "llamacloud",
47-
"Eject test only works with non-llamacloud",
48-
);
49-
// Run eject command
50-
execSync("npm run eject", { cwd: path.join(cwd, name) });
44+
test("Should successfully eject, install dependencies and build without errors", async ({
45+
page,
46+
}) => {
47+
test.skip(
48+
vectorDb === "llamacloud",
49+
"Eject test only works with non-llamacloud",
50+
);
51+
// Run eject command
52+
execSync("npm run eject", { cwd: path.join(cwd, name) });
5153

52-
// Verify next directory exists
53-
const nextDirExists = fs.existsSync(path.join(cwd, name, ejectDir));
54-
expect(nextDirExists).toBeTruthy();
54+
// Verify next directory exists
55+
const nextDirExists = fs.existsSync(path.join(cwd, name, ejectDir));
56+
expect(nextDirExists).toBeTruthy();
5557

56-
// Install dependencies in next directory
57-
execSync("npm install", { cwd: path.join(cwd, name, ejectDir) });
58+
// Install dependencies in next directory
59+
execSync("npm install", { cwd: path.join(cwd, name, ejectDir) });
5860

59-
// Run build
60-
execSync("npm run build", { cwd: path.join(cwd, name, ejectDir) });
61-
});
61+
// Run build
62+
execSync("npm run build", { cwd: path.join(cwd, name, ejectDir) });
63+
});
6264

63-
// clean processes
64-
test.afterAll(async () => {
65-
appProcess?.kill();
66-
});
67-
});
65+
// clean processes
66+
test.afterAll(async () => {
67+
appProcess?.kill();
68+
});
69+
},
70+
);

0 commit comments

Comments
 (0)