Skip to content

Commit

Permalink
Run e2e test against integration api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Aug 11, 2024
1 parent 5767223 commit 0b61e43
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 43 deletions.
5 changes: 3 additions & 2 deletions examples/starknet-react-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"scripts": {
"dev": "next dev -p 3002",
"build": "next build",
"e2e": "playwright test",
"e2e:ui": "playwright test --ui",
"e2e": "concurrently \"pnpm dev\" \"playwright test\"",
"e2e:ui": "concurrently \"pnpm dev\" \"playwright test --ui\"",
"start": "next start -p 3002",
"lint": "next lint",
"format": "prettier --write ."
Expand All @@ -30,6 +30,7 @@
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"autoprefixer": "^10.4.18",
"concurrently": "^8.2.2",
"eslint": "^8.23.0",
"eslint-config-next": "^12.2.5",
"postcss": "^8.4.35",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"dev": "turbo dev",
"lint": "turbo lint",
"format": "turbo format",
"e2e": "turbo e2e",
"e2e:ui": "turbo e2e:ui",
"clean": "git clean -xdf && pnpm store prune",
"release": "pnpm build && pnpm changeset publish",
"keychain": "pnpm --filter @cartridge/keychain",
Expand All @@ -17,9 +19,7 @@
"book": "pnpm --filter @cartridge/docs",
"ui": "pnpm --filter @cartridge/ui",
"ui:next": "pnpm --filter @cartridge/ui-next",
"example:next": "pnpm --filter starknet-react-next",
"test": "pnpm keychain test",
"test:ci": "pnpm keychain test:ci"
"example:next": "pnpm --filter starknet-react-next"
},
"devDependencies": {
"@changesets/changelog-github": "^0.4.2",
Expand Down
2 changes: 2 additions & 0 deletions packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"format": "prettier ./src --write",
"test": "jest --watch",
"test:ci": "jest --ci",
"e2e": "TARGET_ORIGIN=\"*\" NEXT_PUBLIC_API_URL=\"https://integration.cartridge.gg/\" next dev -p 3001",
"e2e:ui": "pnpm e2e",
"gen": "graphql-codegen --config codegen.yaml"
},
"dependencies": {
Expand Down
75 changes: 54 additions & 21 deletions pnpm-lock.yaml

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

28 changes: 11 additions & 17 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,20 @@
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
".next/**",
"!.next/cache/**",
"dist/**"
]
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"dev": {
"dependsOn": [
"^dev"
],
"outputs": [
".next/**",
"!.next/cache/**",
"dist/**"
]
"dependsOn": ["^dev"],
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"lint": {},
"format": {}
"format": {},
"e2e": {
"dependsOn": ["^dev"]
},
"e2e:ui": {
"dependsOn": ["^dev"]
}
}
}

0 comments on commit 0b61e43

Please sign in to comment.