Skip to content

Commit

Permalink
chore: update testing setup and dependencies (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-got authored Dec 23, 2024
1 parent 6a6d563 commit 72973a6
Show file tree
Hide file tree
Showing 9 changed files with 935 additions and 105 deletions.
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ jobs:
- name: Run svelte-check
run: pnpm check

Test:
runs-on: ubuntu-latest
name: Test
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install

- name: Run tests
run: pnpm test

Lint:
runs-on: ubuntu-latest
name: Lint
Expand All @@ -46,4 +63,5 @@ jobs:
- name: Install dependencies
run: pnpm install

- run: pnpm lint
- name: Run lint
run: pnpm lint
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"test": "npm run test:integration && npm run test:unit",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"generate:registry": "tsx scripts/createComponentRegistryTypes.ts"
"generate:registry": "tsx scripts/createComponentRegistryTypes.ts",
"test": "vitest --run"
},
"dependencies": {
"@fontsource-variable/inter": "^5.1.0",
Expand All @@ -41,6 +41,7 @@
"@sveltejs/enhanced-img": "^0.4.3",
"@sveltejs/kit": "^2.10.1",
"@sveltejs/vite-plugin-svelte": "^4.0.3",
"@testing-library/svelte": "^5.2.6",
"@types/hast": "^3.0.4",
"@types/inputmask": "^5.0.7",
"@types/node": "^22.9.0",
Expand All @@ -50,6 +51,7 @@
"eslint-plugin-perfectionist": "^3.9.1",
"eslint-plugin-svelte": "^2.46.0",
"globals": "^15.11.0",
"jsdom": "^25.0.1",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"prettier-plugin-tailwindcss": "^0.6.8",
Expand All @@ -61,6 +63,7 @@
"typescript": "^5.0.0",
"typescript-eslint": "^8.11.0",
"unplugin-icons": "^0.19.3",
"vite": "^5.4.11"
"vite": "^5.4.11",
"vitest": "^2.0.4"
}
}
Loading

0 comments on commit 72973a6

Please sign in to comment.