Skip to content

Commit

Permalink
chore(examples): Update examples to latest electric (#1318)
Browse files Browse the repository at this point in the history
I've updated most examples (left Ionic one as we might deprecate it, the
checkout as it will also require a deploy, and linearlite cause it has
multiproject, multiuser PRs open that use updated electric)

I've manually tested these against the canary as well but wanted this PR
to be in a mergeable state.
  • Loading branch information
msfstef committed Jun 4, 2024
1 parent 81d91f5 commit 269bb0f
Show file tree
Hide file tree
Showing 40 changed files with 7,022 additions and 7,107 deletions.
5 changes: 5 additions & 0 deletions .changeset/thick-radios-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-electric-app": patch
---

Remove `legacy-peer-deps` npm installation option with new templates
9 changes: 7 additions & 2 deletions .github/workflows/examples_e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
strategy:
fail-fast: false
matrix:
example_dir: ['examples/web-wa-sqlite', 'examples/web-wa-sqlite-vuejs']
example_dir:
[
'examples/web-wa-sqlite',
'examples/web-wa-sqlite-vuejs',
'examples/web-pglite',
]
defaults:
run:
working-directory: ${{ matrix.example_dir }}
Expand All @@ -33,7 +38,7 @@ jobs:
cache: npm
cache-dependency-path: |
${{ matrix.example_dir }}/package-lock.json
examples/_testing/package-lock.json
examples/_testing/package-lock.json
- name: Install dependencies
run: npm ci
- name: Start backend, run migrations, generate client
Expand Down
2 changes: 1 addition & 1 deletion examples/_testing/e2e/web/basic.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test.describe('basic example', () => {

// added items persist reload
await page.reload()
await page.waitForTimeout(300)
await page.waitForTimeout(1000)
await expect(await items.count()).toBe(3)
})

Expand Down
188 changes: 75 additions & 113 deletions examples/_testing/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 269bb0f

Please sign in to comment.