Skip to content

Commit 9d108a4

Browse files
committed
test: switch to vitest and write tests, some formatting changes
1 parent 1a88b42 commit 9d108a4

File tree

14 files changed

+759
-321
lines changed

14 files changed

+759
-321
lines changed

.env_example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ KINDE_REDIRECT_URL=http://localhost:4173/api/auth/kinde_callback
88
KINDE_SCOPE=profile email offline openid
99
KINDE_USER_EMAIL_TEST= // An user has existed in your organization
1010
KINDE_USER_PASSWORD_TEST=
11-
KINDE_AUTH_WITH_PKCE=
11+
KINDE_AUTH_WITH_PKCE=
12+
KINDE_DEBUG=false

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@
88
"preview": "vite preview",
99
"package": "svelte-kit sync && svelte-package && publint",
1010
"prepublishOnly": "npm run package",
11-
"test": "vite build && npm run test:integration",
1211
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1312
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1413
"lint": "prettier --plugin-search-dir . --check . && eslint .",
1514
"format": "prettier --plugin-search-dir . --write .",
16-
"test:integration": "playwright test",
17-
"test:unit": "vitest"
15+
"test": "vitest"
1816
},
1917
"author": {
2018
"name": "Kinde",
@@ -47,13 +45,12 @@
4745
"@kinde-oss/kinde-typescript-sdk": "^2.7.2"
4846
},
4947
"devDependencies": {
50-
"@playwright/test": "^1.28.1",
5148
"@sveltejs/adapter-auto": "^2.0.0",
5249
"@sveltejs/kit": "^1.20.4",
5350
"@sveltejs/package": "^2.0.0",
5451
"@typescript-eslint/eslint-plugin": "^5.45.0",
5552
"@typescript-eslint/parser": "^5.45.0",
56-
"dotenv": "^16.3.1",
53+
"@vitest/coverage-v8": "^1.3.1",
5754
"eslint": "^8.28.0",
5855
"eslint-config-prettier": "^8.5.0",
5956
"eslint-plugin-svelte": "^2.30.0",
@@ -64,8 +61,8 @@
6461
"svelte-check": "^3.4.3",
6562
"tslib": "^2.4.1",
6663
"typescript": "^5.0.0",
67-
"vite": "^4.4.2",
68-
"vitest": "^0.32.2"
64+
"vite": "^5.1.6",
65+
"vitest": "^1.3.1"
6966
},
7067
"svelte": "./dist/index.js",
7168
"types": "./dist/index.d.ts",

playwright.config.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)