Skip to content

Commit

Permalink
Fix and test format (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren authored Jul 2, 2024
1 parent 008665a commit f356dda
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: actions/setup-node@v3
with: { node-version: '18' }
- run: npm ci
- run: npm run test:format
- run: npm run build
- run: npm run test:unit
test_e2e:
Expand Down
12 changes: 10 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@
<body>
<h1>StackBlitz SDK Examples</h1>
<ul>
<li><a href="/examples/open-embed-project-id/">Open and embed a StackBlitz EngineBlock project</a></li>
<li><a href="/examples/open-embed-webcontainer/">Open and embed a StackBlitz WebContainer project</a></li>
<li>
<a href="/examples/open-embed-project-id/"
>Open and embed a StackBlitz EngineBlock project</a
>
</li>
<li>
<a href="/examples/open-embed-webcontainer/"
>Open and embed a StackBlitz WebContainer project</a
>
</li>
<li><a href="/examples/open-embed-github-project/">Open and embed a GitHub repo</a></li>
<li><a href="/examples/embed-project-vm/">Control an embedded project with the SDK</a></li>
</ul>
Expand Down
4 changes: 1 addition & 3 deletions examples/open-embed-webcontainer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
<header>
<h1>Open and embed a StackBlitz WebContainer project</h1>
<div>
<label>
<input type="checkbox" name="corp" /> Cross-Origin Isolation
</label>
<label> <input type="checkbox" name="corp" /> Cross-Origin Isolation </label>
</div>
<nav>
<button type="button" name="embed-project">Embed project</button>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"start:e2e": "vite dev --mode e2e",
"test": "vitest run --mode test --coverage",
"test:unit": "vitest run --mode test",
"test:e2e": "npx playwright test"
"test:e2e": "npx playwright test",
"test:format": "npx prettier --check ."
},
"devDependencies": {
"@playwright/test": "^1.32.2",
Expand Down

0 comments on commit f356dda

Please sign in to comment.