Skip to content

Commit

Permalink
tests: fix e2e tests to use shared package
Browse files Browse the repository at this point in the history
  • Loading branch information
schiller-manuel committed Feb 1, 2025
1 parent f368a29 commit 5aaa256
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 12 deletions.
1 change: 1 addition & 0 deletions e2e/react-router/basic-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
},
"devDependencies": {
"@playwright/test": "^1.50.0",
"@tanstack/router-e2e-utils": "workspace:^",
"@types/react": "^18.2.47",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.3.4",
Expand Down
2 changes: 1 addition & 1 deletion e2e/react-router/basic-react-query/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'
import { derivePort } from '../../utils.js'
import { derivePort } from '@tanstack/router-e2e-utils'
import packageJson from './package.json' with { type: 'json' }

const PORT = derivePort(packageJson.name)
Expand Down
1 change: 1 addition & 0 deletions e2e/react-router/basic-scroll-restoration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
},
"devDependencies": {
"@playwright/test": "^1.50.0",
"@tanstack/router-e2e-utils": "workspace:^",
"@types/react": "^18.2.47",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.3.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'
import { derivePort } from '../../utils.js'
import { derivePort } from '@tanstack/router-e2e-utils'
import packageJson from './package.json' with { type: 'json' }

const PORT = derivePort(packageJson.name)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'
import { derivePort } from '../../utils.js'
import { derivePort } from '@tanstack/router-e2e-utils'
import packageJson from './package.json' with { type: 'json' }

const PORT = derivePort(packageJson.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
},
"devDependencies": {
"@playwright/test": "^1.50.0",
"@tanstack/router-e2e-utils": "workspace:^",
"@types/react": "^18.2.47",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.3.4",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'
import { derivePort } from '../../utils.js'
import { derivePort } from '@tanstack/router-e2e-utils'
import packageJson from './package.json' with { type: 'json' }

const PORT = derivePort(packageJson.name)
Expand Down
1 change: 1 addition & 0 deletions e2e/react-router/rspack-basic-file-based/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
},
"devDependencies": {
"@playwright/test": "^1.50.0",
"@tanstack/router-e2e-utils": "workspace:^",
"@rsbuild/core": "^1.2.3",
"@rsbuild/plugin-react": "^1.1.0",
"@tanstack/router-plugin": "workspace:^",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'
import { derivePort } from '../../utils.js'
import { derivePort } from '@tanstack/router-e2e-utils'
import packageJson from './package.json' with { type: 'json' }

const PORT = derivePort(packageJson.name)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig, devices } from '@playwright/test'
import { derivePort } from '../../utils.js'
import { derivePort } from '@tanstack/router-e2e-utils'
import packageJson from './package.json' with { type: 'json' }

const PORT = derivePort(packageJson.name)
Expand Down
12 changes: 12 additions & 0 deletions pnpm-lock.yaml

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

7 changes: 1 addition & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,5 @@
"strict": true,
"target": "ES2020"
},
"include": [
"eslint.config.js",
"prettier.config.js",
"scripts",
"e2e/utils.js"
]
"include": ["eslint.config.js", "prettier.config.js", "scripts"]
}

0 comments on commit 5aaa256

Please sign in to comment.