Skip to content

Commit

Permalink
🧪 some progress with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 17, 2024
1 parent bd1d5e9 commit a97a50f
Show file tree
Hide file tree
Showing 19 changed files with 989 additions and 528 deletions.
1 change: 1 addition & 0 deletions app/types/oauth.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export interface UserInfo {
name: string
avatar: string
email: string
payload?: UserPayload
}

export interface GoogleUserInfo {
Expand Down
3 changes: 2 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default defineNuxtConfig({
'@nuxt/content',
'@nuxt/image',
'nuxt-auth-utils',
"@nuxt/test-utils"
],
eslint: {
config: {
Expand Down Expand Up @@ -62,4 +63,4 @@ export default defineNuxtConfig({
},
},
},
})
})
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"dev-test": "nuxt dev --dotenv .env.test",
"generate": "nuxt generate",
"preview": "nuxt preview",
"test": "vitest run",
"test:reset": "pnpm run test:db-reset; vitest run",
"test:db-reset": "dotenv -e .env.test -- npx prisma migrate reset --force",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:action": "pnpm run lint -f @jamesacarr/github-actions"
Expand All @@ -16,21 +20,24 @@
"date-fns": "^3.6.0"
},
"devDependencies": {
"@antfu/eslint-config": "^2.25.1",
"@antfu/eslint-config": "^2.26.0",
"@iconify-json/logos": "^1.1.44",
"@iconify-json/mdi": "^1.1.68",
"@nuxt/content": "^2.13.2",
"@nuxt/devtools": "^1.3.9",
"@nuxt/eslint": "^0.5.0",
"@nuxt/image": "^1.7.0",
"@nuxt/test-utils": "^3.14.1",
"@prisma/client": "^5.18.0",
"@prisma/nuxt": "^0.0.35",
"@types/ua-parser-js": "^0.7.39",
"dotenv-cli": "^7.4.2",
"happy-dom": "^14.12.3",
"nuxt": "^3.12.4",
"nuxt-auth-utils": "^0.3.4",
"prisma": "^5.18.0",
"ua-parser-js": "^1.0.38",
"vitest": "^2.0.5",
"zod": "^3.23.8"
},
"packageManager": "[email protected]+sha1.4a6f863625170af87d027789f72662e0601ecb57"
}
}
Loading

0 comments on commit a97a50f

Please sign in to comment.