mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
docs: fix browser provider redirect (#9051)
This commit is contained in:
parent
32e9d681f7
commit
4bdcb113e8
10
netlify.toml
10
netlify.toml
@ -75,6 +75,16 @@ from = "/guide/browser/commands"
|
|||||||
to = "/api/browser/commands"
|
to = "/api/browser/commands"
|
||||||
status = 301
|
status = 301
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/guide/browser/playwright"
|
||||||
|
to = "/config/browser/playwright"
|
||||||
|
status = 301
|
||||||
|
|
||||||
|
[[redirects]]
|
||||||
|
from = "/guide/browser/webdriverio"
|
||||||
|
to = "/config/browser/webdriverio"
|
||||||
|
status = 301
|
||||||
|
|
||||||
[[headers]]
|
[[headers]]
|
||||||
for = "/manifest.webmanifest"
|
for = "/manifest.webmanifest"
|
||||||
|
|
||||||
|
|||||||
@ -45,4 +45,4 @@ Then run Vitest in the browser mode:
|
|||||||
npx vitest --browser
|
npx vitest --browser
|
||||||
```
|
```
|
||||||
|
|
||||||
[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/browser-playwright) | [Documentation](https://vitest.dev/guide/browser/playwright)
|
[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/browser-playwright) | [Documentation](https://vitest.dev/config/browser/playwright)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
"description": "Browser running for Vitest using playwright",
|
"description": "Browser running for Vitest using playwright",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": "https://opencollective.com/vitest",
|
"funding": "https://opencollective.com/vitest",
|
||||||
"homepage": "https://vitest.dev/guide/browser/playwright",
|
"homepage": "https://vitest.dev/config/browser/playwright",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/vitest-dev/vitest.git",
|
"url": "git+https://github.com/vitest-dev/vitest.git",
|
||||||
|
|||||||
@ -45,4 +45,4 @@ Then run Vitest in the browser mode:
|
|||||||
npx vitest --browser
|
npx vitest --browser
|
||||||
```
|
```
|
||||||
|
|
||||||
[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/browser-webdriverio) | [Documentation](https://vitest.dev/guide/browser/webdriverio)
|
[GitHub](https://github.com/vitest-dev/vitest/tree/main/packages/browser-webdriverio) | [Documentation](https://vitest.dev/config/browser/webdriverio)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
"description": "Browser running for Vitest using webdriverio",
|
"description": "Browser running for Vitest using webdriverio",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"funding": "https://opencollective.com/vitest",
|
"funding": "https://opencollective.com/vitest",
|
||||||
"homepage": "https://vitest.dev/guide/browser/webdriverio",
|
"homepage": "https://vitest.dev/config/browser/webdriverio",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/vitest-dev/vitest.git",
|
"url": "git+https://github.com/vitest-dev/vitest.git",
|
||||||
|
|||||||
@ -220,9 +220,9 @@ function getPossibleProvider(dependencies: Record<string, string>) {
|
|||||||
function getProviderDocsLink(provider: string) {
|
function getProviderDocsLink(provider: string) {
|
||||||
switch (provider) {
|
switch (provider) {
|
||||||
case 'playwright':
|
case 'playwright':
|
||||||
return 'https://vitest.dev/guide/browser/playwright'
|
return 'https://vitest.dev/config/browser/playwright'
|
||||||
case 'webdriverio':
|
case 'webdriverio':
|
||||||
return 'https://vitest.dev/guide/browser/webdriverio'
|
return 'https://vitest.dev/config/browser/webdriverio'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user