Skip to content

Commit aab278a

Browse files
committed
regression test
1 parent a5b6768 commit aab278a

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"---\n",
8+
"format: html\n",
9+
"---"
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"metadata": {},
15+
"source": [
16+
"print(\"Hello, world\")"
17+
],
18+
"execution_count": null,
19+
"outputs": []
20+
}
21+
],
22+
"metadata": {
23+
"kernelspec": {
24+
"name": "python3",
25+
"language": "python",
26+
"display_name": "Python 3 (ipykernel)",
27+
"path": "/Users/cscheid/virtualenvs/homebrew-python3/share/jupyter/kernels/python3"
28+
}
29+
},
30+
"nbformat": 4,
31+
"nbformat_minor": 4
32+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* issue-10575.test.ts
3+
*
4+
* https://github.com/quarto-dev/quarto-cli/issues/10575
5+
*
6+
* Copyright (C) 2023 Posit Software, PBC
7+
*/
8+
9+
import { existsSync } from "../../../src/deno_ral/fs.ts";
10+
import { quarto } from "../../../src/quarto.ts";
11+
import { testQuartoCmd } from "../../test.ts";
12+
import { printsMessage } from "../../verify.ts";
13+
14+
testQuartoCmd("render",
15+
["docs/jupyter/issue-10575.ipynb"],
16+
[
17+
printsMessage({level: "WARN", regex: /contains unexecuted code cells/}),
18+
],
19+
{
20+
teardown: async () => {
21+
if (existsSync("docs/jupyter/issue-10575_files")) {
22+
await Deno.remove("docs/jupyter/issue-10575_files", { recursive: true });
23+
}
24+
if (existsSync("docs/jupyter/issue-10575.html")) {
25+
await Deno.remove("docs/jupyter/issue-10575.html");
26+
}
27+
},
28+
},
29+
);

0 commit comments

Comments
 (0)