Skip to content

Commit c298694

Browse files
committed
docs: vitest
1 parent 921da88 commit c298694

File tree

12 files changed

+1114
-8
lines changed

12 files changed

+1114
-8
lines changed

_plugins/docusaurus.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ def system!(*args)
4141
system!("mkdir -p _site/jest/troubleshooting")
4242
system!("cp docusaurus/build/jest/troubleshooting/index.html _site/jest/troubleshooting")
4343

44+
system!("mkdir -p _site/vitest/guide")
45+
system!("cp docusaurus/build/vitest/guide/index.html _site/vitest/guide")
46+
47+
system!("mkdir -p _site/vitest/reference")
48+
system!("cp docusaurus/build/vitest/reference/index.html _site/vitest/reference")
49+
50+
system!("mkdir -p _site/vitest/troubleshooting")
51+
system!("cp docusaurus/build/vitest/troubleshooting/index.html _site/vitest/troubleshooting")
52+
4453
system!("mkdir -p _site/integration")
4554
system!("cp docusaurus/build/integration/index.html _site/integration") # redirect to /
4655
system!("cp docusaurus/build/index.html _site")

docusaurus/docs/cypress/troubleshooting.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export NODE_OPTIONS=--max_old_space_size=4096
3636
npx knapsack-pro-jest
3737

3838
npx knapsack-pro-cypress
39+
40+
npx knapsack-pro-vitest
3941
```
4042

4143
## Debug Knapsack Pro on your development environment/machine

docusaurus/docs/index.mdx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pagination_next: overview/index
55

66
import api from "@site/static/img/api.png";
77
import javascript from "@site/static/img/javascript.png"
8+
import Vitest from "@site/static/img/vitest.svg"
89
import jest from "@site/static/img/jest.jpg"
910
import cypress from "@site/static/img/cypress.jpg"
1011
import ruby from "@site/static/img/ruby.png"
@@ -20,15 +21,15 @@ If you have questions, feel free to [contact us](https://knapsackpro.com/contact
2021
## Overview
2122

2223
<div className="grid">
23-
<a href="/overview/" className="cell">
24-
<div className="cell__image"><img width="70" height="70" src={knapsack}></img></div>
24+
<a href="/overview/" className="cell cell--fixed">
25+
<span className="cell__image"><img width="70" height="70" src={knapsack}></img></span>
2526
<h2 className="cell__title">Knapsack Overview</h2>
2627
</a>
2728
</div>
2829

2930
## Libraries
3031

31-
<div className="grid">
32+
<div className="grid-4">
3233
<a href="/knapsack_pro-ruby/guide/" className="cell">
3334
<div className="cell__image cell__image--ruby"><img width="60" height="60" src={ruby}></img></div>
3435
<h2 className="cell__title">Ruby</h2>
@@ -43,6 +44,11 @@ If you have questions, feel free to [contact us](https://knapsackpro.com/contact
4344
<div className="cell__image"><img width="70" height="70" src={jest}></img></div>
4445
<h2 className="cell__title">Jest</h2>
4546
</a>
47+
48+
<a href="/vitest/guide/" className="cell">
49+
<div className="cell__image"><Vitest className="w-full h-auto center" /></div>
50+
<h2 className="cell__title">Vitest</h2>
51+
</a>
4652
</div>
4753

4854
Can't see your language/testing framework above? [Let us know](https://docs.google.com/forms/d/e/1FAIpQLSe7Z6k__VczmRMmXykjA5i2MVEA3nEJ90gbiIeCRjecWhPOig/viewform?hl=en).
@@ -52,12 +58,12 @@ Can't see your language/testing framework above? [Let us know](https://docs.goog
5258
You can still use Knapsack Pro by writing your integration on top of the JavaScript SDK or using the Knapsack Pro API:
5359

5460
<div className="grid">
55-
<a href="https://docs.knapsackpro.com/2020/how-to-build-native-integration-with-knapsack-pro-api-to-run-tests-in-parallel-for-any-test-runner-testing-framework" target="_blank" rel="noopener noreferrer" className="cell">
61+
<a href="https://docs.knapsackpro.com/2020/how-to-build-native-integration-with-knapsack-pro-api-to-run-tests-in-parallel-for-any-test-runner-testing-framework" target="_blank" rel="noopener noreferrer" className="cell cell--fixed">
5662
<div className="cell__image"><img width="70" height="70" src={javascript}></img></div>
5763
<h2 className="cell__title">JavaScript / TypeScript</h2>
5864
</a>
5965

60-
<a href="https://docs.knapsackpro.com/2021/how-to-build-knapsack-pro-api-client-from-scratch-in-any-programming-language" target="_blank" rel="noopener noreferrer" className="cell">
66+
<a href="https://docs.knapsackpro.com/2021/how-to-build-knapsack-pro-api-client-from-scratch-in-any-programming-language" target="_blank" rel="noopener noreferrer" className="cell cell--fixed">
6167
<div className="cell__image"><img width="70" height="70" src={api}></img></div>
6268
<h2 className="cell__title">Other Language</h2>
6369
</a>
@@ -66,7 +72,7 @@ You can still use Knapsack Pro by writing your integration on top of the JavaScr
6672
## Troubleshooting
6773

6874
<div className="grid">
69-
<a href="/troubleshooting/" className="cell" style={{width: 'auto'}}>
75+
<a href="/troubleshooting/" className="cell cell--fixed" style={{width: 'auto'}}>
7076
<div className="cell__image"><img width="70" height="70" src={troubleshooting}></img></div>
7177
<h2 className="cell__title">Troubleshooting</h2>
7278
</a>

docusaurus/docs/jest/troubleshooting.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export NODE_OPTIONS=--max_old_space_size=4096
2727
npx knapsack-pro-jest
2828

2929
npx knapsack-pro-cypress
30+
31+
npx knapsack-pro-vitest
3032
```
3133

3234
## Debug Knapsack Pro on your development environment/machine

docusaurus/docs/overview/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Knapsack Pro wraps your current test runner(s) and works with your existing CI i
2020
- Tracks your CI builds to detect bottlenecks
2121
- Does not have access to your source code and collects minimal test data (with opt-in encryption)
2222
- Enables you to export historical metrics about your CI builds
23-
- Supports out-of-the-box any Ruby test runners, Cypress, Jest (and provides both SDK and API to integrate with any other language)
23+
- Supports out-of-the-box any Ruby test runners, Cypress, Jest, Vitest (and provides both SDK and API to integrate with any other language)
2424
- Replaces local dependencies like Redis with an API and runs your tests regardless of network problems
2525

2626
<Architecture className="w-full h-auto center" />

docusaurus/docs/troubleshooting/index.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pagination_next: null
66
import ruby from "@site/static/img/ruby.png"
77
import cypress from "@site/static/img/cypress.jpg"
88
import jest from "@site/static/img/jest.jpg"
9+
import Vitest from "@site/static/img/vitest.svg"
910

1011
# Troubleshooting
1112

@@ -15,7 +16,7 @@ If you are utilizing two CI providers simultaneously, for example, CircleCI and
1516

1617
## Troubleshooting libraries
1718

18-
<div className="grid">
19+
<div className="grid-4">
1920
<a href="/ruby/troubleshooting/" className="cell">
2021
<div className="cell__image cell__image--ruby"><img width="60" height="60" src={ruby}></img></div>
2122
<h2 className="cell__title">Ruby</h2>
@@ -30,4 +31,9 @@ If you are utilizing two CI providers simultaneously, for example, CircleCI and
3031
<div className="cell__image"><img width="70" height="70" src={jest}></img></div>
3132
<h2 className="cell__title">Jest</h2>
3233
</a>
34+
35+
<a href="/vitest/troubleshooting/" className="cell">
36+
<div className="cell__image"><Vitest className="w-full h-auto center" /></div>
37+
<h2 className="cell__title">Vitest</h2>
38+
</a>
3339
</div>

0 commit comments

Comments
 (0)