Skip to content

Commit

Permalink
Upgrade to Svelte 5 (#61)
Browse files Browse the repository at this point in the history
* Upgrade to Svelte 5

* Add retry and trace to playwright tests in CI

This gives more context to failures and gives flaky tests a chance to re-run

* fix typo in a11y test name

* Allow manual launch of playwright tests on GitHub

---------

Co-authored-by: Sara Gowen <[email protected]>
  • Loading branch information
russdaygh and dynamictulip authored Nov 20, 2024
1 parent bc8d0da commit 137fb46
Show file tree
Hide file tree
Showing 16 changed files with 162 additions and 163 deletions.
1 change: 1 addition & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Playwright Tests
on:
pull_request:
branches: [main]
workflow_dispatch:

jobs:
test:
Expand Down
190 changes: 80 additions & 110 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@
"@types/node": "^22.7.5",
"eslint": "^9.12.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.44.1",
"eslint-plugin-svelte": "^2.45.1",
"globals": "^15.11.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.0.3",
"prettier-plugin-svelte": "^3.0.3",
"svelte": "^4.2.19",
"prettier": "^3.1.0",
"prettier-plugin-svelte": "^3.2.6",
"svelte": "^5.0.0",
"svelte-check": "^4.0.5",
"svelte-preprocess": "^6.0.3",
"tslib": "^2.3.1",
"typescript": "^5.2.2",
"typescript": "^5.5.0",
"typescript-eslint": "^8.8.1",
"vite": "^5.4.8"
},
Expand Down
4 changes: 4 additions & 0 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export default defineConfig({
projects: [
{
name: 'ci',
retries: 1,
use: {
trace: 'on-first-retry'
},
testIgnore: 'visual-comparison.spec.ts'
},
{
Expand Down
6 changes: 5 additions & 1 deletion src/lib/CallToActions.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<script lang="ts">
import type { KeyPoint } from '../types/KeyPoint.type';
export let keyPoints: KeyPoint[];
interface Props {
keyPoints: KeyPoint[];
}
let { keyPoints }: Props = $props();
</script>

<div class="key-points-container">
Expand Down
Loading

0 comments on commit 137fb46

Please sign in to comment.