Skip to content

Commit ac01323

Browse files
claude: Fix engine extension test by adding build step
Engine extensions now require quarto call build-ts-extension to bundle TypeScript before rendering. Updated test to build before attempting to render the created extension.
1 parent 27d381e commit ac01323

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/smoke/create/create.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,19 @@ for (const type of Object.keys(kCreateTypes)) {
7070
`Artifact ${type} ${template} failed to produce any files to open.`,
7171
);
7272

73+
// Build engine extensions before rendering
74+
if (template === "engine") {
75+
const buildCmd = [quartoDevCmd(), "call", "build-ts-extension"];
76+
const buildProcess = await execProcess({
77+
cmd: buildCmd[0],
78+
args: buildCmd.slice(1),
79+
cwd: path,
80+
stdout: "piped",
81+
stderr: "piped",
82+
});
83+
assert(buildProcess.success, buildProcess.stderr);
84+
}
85+
7386
for (const file of openfiles) {
7487
if (file.endsWith(".qmd")) {
7588
// provide a step name and function

0 commit comments

Comments
 (0)