Skip to content

Commit

Permalink
test: switch to vitest and write tests, some formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRivers committed Mar 13, 2024
1 parent 1a88b42 commit 9d108a4
Show file tree
Hide file tree
Showing 14 changed files with 759 additions and 321 deletions.
3 changes: 2 additions & 1 deletion .env_example
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ KINDE_REDIRECT_URL=http://localhost:4173/api/auth/kinde_callback
KINDE_SCOPE=profile email offline openid
KINDE_USER_EMAIL_TEST= // An user has existed in your organization
KINDE_USER_PASSWORD_TEST=
KINDE_AUTH_WITH_PKCE=
KINDE_AUTH_WITH_PKCE=
KINDE_DEBUG=false
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
"prepublishOnly": "npm run package",
"test": "vite build && npm run test:integration",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write .",
"test:integration": "playwright test",
"test:unit": "vitest"
"test": "vitest"
},
"author": {
"name": "Kinde",
Expand Down Expand Up @@ -47,13 +45,12 @@
"@kinde-oss/kinde-typescript-sdk": "^2.7.2"
},
"devDependencies": {
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.20.4",
"@sveltejs/package": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"dotenv": "^16.3.1",
"@vitest/coverage-v8": "^1.3.1",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-svelte": "^2.30.0",
Expand All @@ -64,8 +61,8 @@
"svelte-check": "^3.4.3",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.32.2"
"vite": "^5.1.6",
"vitest": "^1.3.1"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
12 changes: 0 additions & 12 deletions playwright.config.ts

This file was deleted.

Loading

0 comments on commit 9d108a4

Please sign in to comment.