Skip to content

Commit

Permalink
test: add auth session mode testing
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed May 30, 2024
1 parent 0248f73 commit b997d80
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
"directus:start": "cd directus && directus start",
"dev": "nuxi dev playground",
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
"dev:build:ssr": "nuxi build playground",
"dev:build:spa": "cross-env NUXT_SSR=false nuxi build playground",
"dev:build:ssr": "cross-env NODE_OPTIONS=--no-deprecation nuxi build playground",
"dev:build:spa": "cross-env NUXT_SSR=false NODE_OPTIONS=--no-deprecation nuxi build playground",
"test": "playwright test --ui",
"test:prod:ssr": "cross-env NODE_ENV=production && npm run dev:build:ssr && playwright test",
"test:prod:spa": "cross-env NODE_ENV=production && npm run dev:build:spa && playwright test",
"test:prod:ssr": "cross-env NODE_ENV=production npm run dev:build:ssr && playwright test && cross-env NUXT_PUBLIC_DIRECTUS_AUTH_MODE=cookie playwright test",
"test:prod:spa": "cross-env NODE_ENV=production npm run dev:build:spa && playwright test && cross-env NUXT_PUBLIC_DIRECTUS_AUTH_MODE=cookie playwright test",
"test:prod": "npm run test:prod:ssr && npm run test:prod:spa",
"lint": "eslint .",
"typecheck": "nuxi typecheck",
Expand Down Expand Up @@ -67,4 +67,4 @@
"peerDependencies": {
"@vue/apollo-composable": "^4.0.1"
}
}
}
3 changes: 2 additions & 1 deletion playground/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NODE_OPTIONS=--dns-result-order=ipv4first
NUXT_PUBLIC_DIRECTUS_AUTH_MODE=session
NUXT_PUBLIC_DIRECTUS_AUTH_MODE=session
NUXT_SSR=true
3 changes: 3 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ export default defineNuxtConfig({
wsEndpoint: 'ws://localhost:8055/graphql',
},
},
vite: {
logLevel: 'silent',
},
})

0 comments on commit b997d80

Please sign in to comment.