Skip to content

Commit f356dda

Browse files
Fix and test format (#21)
1 parent 008665a commit f356dda

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
- uses: actions/setup-node@v3
1616
with: { node-version: '18' }
1717
- run: npm ci
18+
- run: npm run test:format
1819
- run: npm run build
1920
- run: npm run test:unit
2021
test_e2e:

examples/index.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@
1919
<body>
2020
<h1>StackBlitz SDK Examples</h1>
2121
<ul>
22-
<li><a href="/examples/open-embed-project-id/">Open and embed a StackBlitz EngineBlock project</a></li>
23-
<li><a href="/examples/open-embed-webcontainer/">Open and embed a StackBlitz WebContainer project</a></li>
22+
<li>
23+
<a href="/examples/open-embed-project-id/"
24+
>Open and embed a StackBlitz EngineBlock project</a
25+
>
26+
</li>
27+
<li>
28+
<a href="/examples/open-embed-webcontainer/"
29+
>Open and embed a StackBlitz WebContainer project</a
30+
>
31+
</li>
2432
<li><a href="/examples/open-embed-github-project/">Open and embed a GitHub repo</a></li>
2533
<li><a href="/examples/embed-project-vm/">Control an embedded project with the SDK</a></li>
2634
</ul>

examples/open-embed-webcontainer/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
<header>
1111
<h1>Open and embed a StackBlitz WebContainer project</h1>
1212
<div>
13-
<label>
14-
<input type="checkbox" name="corp" /> Cross-Origin Isolation
15-
</label>
13+
<label> <input type="checkbox" name="corp" /> Cross-Origin Isolation </label>
1614
</div>
1715
<nav>
1816
<button type="button" name="embed-project">Embed project</button>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"start:e2e": "vite dev --mode e2e",
3333
"test": "vitest run --mode test --coverage",
3434
"test:unit": "vitest run --mode test",
35-
"test:e2e": "npx playwright test"
35+
"test:e2e": "npx playwright test",
36+
"test:format": "npx prettier --check ."
3637
},
3738
"devDependencies": {
3839
"@playwright/test": "^1.32.2",

0 commit comments

Comments
 (0)