Skip to content

Commit 2c9c68d

Browse files
authored
test: enable "build project" test cases (#140)
1 parent 33a69f9 commit 2c9c68d

File tree

6 files changed

+42
-4
lines changed

6 files changed

+42
-4
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
"1-basics",
3+
"1-basics-1-introduction-1-welcome-files.json",
4+
"1-basics-1-introduction-1-welcome-solution.json",
5+
"1-basics/1-introduction",
6+
"1-basics/1-introduction/1-welcome",
7+
"1-basics/1-introduction/1-welcome/index.html",
8+
"favicon.svg",
9+
"index.html",
10+
"logo-dark.svg",
11+
"logo.svg",
12+
"template-default.json"
13+
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
"1-basics",
3+
"1-basics-1-introduction-1-welcome-files.json",
4+
"1-basics-1-introduction-1-welcome-solution.json",
5+
"1-basics/1-introduction",
6+
"1-basics/1-introduction/1-welcome",
7+
"1-basics/1-introduction/1-welcome/index.html",
8+
"favicon.svg",
9+
"index.html",
10+
"logo-dark.svg",
11+
"logo.svg",
12+
"template-default.json"
13+
]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
"1-basics",
3+
"1-basics-1-introduction-1-welcome-files.json",
4+
"1-basics-1-introduction-1-welcome-solution.json",
5+
"1-basics/1-introduction",
6+
"1-basics/1-introduction/1-welcome",
7+
"1-basics/1-introduction/1-welcome/index.html",
8+
"favicon.svg",
9+
"index.html",
10+
"logo-dark.svg",
11+
"logo.svg",
12+
"template-default.json"
13+
]

integration/cli/create-tutorial.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ describe.each(['npm', 'pnpm', 'yarn'])('%s', (packageManager) => {
3535
expect(filesToJSON(projectFiles)).toMatchFileSnapshot(`${snapshotPrefix}-created.json`);
3636
});
3737

38-
// TODO: Enable once `@tutorialkit/theme` has been published
39-
it.todo<TestContext>('should create and build a project', async ({ projectName, dest }) => {
38+
it<TestContext>('should create and build a project', async ({ projectName, dest }) => {
4039
await createProject(projectName, packageManager, { cwd: tmp, install: true });
4140

4241
await execa(packageManager, ['run', 'build'], {

packages/template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@types/node": "^20.14.6",
2626
"@types/react": "^18.3.3",
2727
"@unocss/reset": "^0.59.4",
28-
"astro": "4.10.3",
28+
"astro": "^4.10.3",
2929
"fast-glob": "^3.3.2",
3030
"prettier-plugin-astro": "^0.14.1",
3131
"typescript": "^5.4.5",

pnpm-lock.yaml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)