Skip to content

Commit

Permalink
chore: add basic testing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Mar 29, 2024
1 parent eb88df7 commit 8b32cdf
Show file tree
Hide file tree
Showing 9 changed files with 777 additions and 14 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: latest
- run: pnpm i --frozen-lockfile
- run: pnpm run test
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
"package": "svelte-kit sync && svelte-package && publint",
"prepublishOnly": "npm run package",
"preview": "vite preview",
"test": "npm run test:integration && npm run test:unit",
"test": "npm run test:unit",
"test:integration": "playwright test",
"test:unit": "vitest"
"test:unit": "vitest",
"test:unit:ui": "vitest --ui"
},
"dependencies": {
"acorn": "^8.11.3",
Expand All @@ -52,12 +53,16 @@
"@sveltejs/kit": "^2.5.3",
"@sveltejs/package": "^2.3.0",
"@sveltejs/vite-plugin-svelte": "^3.0.2",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/svelte": "^4.1.0",
"@types/eslint": "8.56.6",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@vitest/ui": "^1.4.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"happy-dom": "^14.3.9",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.2",
"publint": "^0.2.7",
Expand Down
Loading

0 comments on commit 8b32cdf

Please sign in to comment.