Skip to content

Commit

Permalink
fix: Debug controller
Browse files Browse the repository at this point in the history
  • Loading branch information
DaevMithran committed Mar 7, 2025
1 parent e97e909 commit becabb4
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 221 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"lint": "eslint --max-warnings=0 src && prettier --check '**/*.{js,ts,cjs,mjs,json}'",
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --verbose",
"test:e2e": "TEST_MODE_PARALLEL=true npx playwright test -c playwright.config.ts && npx playwright test -c playwright.config.ts",
"test:e2e": "npx playwright test -c playwright.config.ts",
"typeorm": "typeorm-ts-node-esm -d ./dist/database/ormconfig.js",
"generate": "npm run typeorm migration:generate .",
"migrate": "npm run typeorm migration:run"
Expand All @@ -53,7 +53,7 @@
"README.md"
],
"dependencies": {
"@cheqd/did-provider-cheqd": "^4.5.0",
"@cheqd/did-provider-cheqd": "npm:@daevm/cheqd-did-provider-cheqd",
"@cheqd/sdk": "^5.1.0",
"@cheqd/ts-proto": "^4.0.1",
"@cosmjs/amino": "^0.32.4",
Expand Down
42 changes: 2 additions & 40 deletions playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,51 +63,13 @@ export default defineConfig({

// Configure project specific settings
// Docs: https://playwright.dev/docs/test-projects
projects:
process.env.TEST_MODE_PARALLEL === 'true'
? [
{
name: 'Setup unauthenticated user',
testMatch: /no-auth\.setup\.ts/,
},
{
name: 'Setup authenticated user',
testMatch: /auth\.setup\.ts/,
},
{
name: 'Parallel Logged In User Tests',
...(process.env.RELEASE === 'true' ? {} : { testIgnore: /.*\.release\.spec\.ts/ }),
use: {
...devices['Desktop Chrome'],
// Use prepared auth state.
storageState: STORAGE_STATE_AUTHENTICATED,
extraHTTPHeaders: {
// Add x-api-key token to all authenticated requests.
'x-api-key': `${process.env.TEST_USER_API_KEY}`,
},
},
testDir: './tests/e2e/parallel',
dependencies: ['Setup authenticated user'],
},
{
name: 'Non-Logged In User Tests',
testMatch: /.*\.no-auth.spec.ts/,
use: {
...devices['Desktop Chrome'],
storageState: STORAGE_STATE_UNAUTHENTICATED,
},
testDir: './tests/e2e/parallel',
dependencies: ['Setup unauthenticated user'],
},
]
: [
projects: [
{
name: 'Setup authenticated user',
testMatch: /auth\.setup\.ts/,
},
{
name: 'Logged In User Tests',
...(process.env.RELEASE === 'true' ? {} : { testIgnore: /.*\.release\.spec\.ts/ }),
use: {
...devices['Desktop Chrome'],
// Use prepared auth state.
Expand All @@ -117,7 +79,7 @@ export default defineConfig({
'x-api-key': `${process.env.TEST_USER_API_KEY}`,
},
},
testDir: './tests/e2e/sequential',
testDir: './tests/e2e/sequential/did',
dependencies: ['Setup authenticated user'],
},
],
Expand Down
Loading

0 comments on commit becabb4

Please sign in to comment.