Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and test format #21

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading