Skip to content

Commit 4414d1a

Browse files
committed
chore: apply cr
1 parent 25366bb commit 4414d1a

File tree

10 files changed

+31
-49
lines changed

10 files changed

+31
-49
lines changed

docusaurus/docs/cypress/guide/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,10 @@ jobs:
417417
# highlight-end
418418
419419
steps:
420-
- uses: actions/checkout@v2
420+
- uses: actions/checkout@v4
421421
422422
- name: Set up Node
423-
uses: actions/setup-node@v1
423+
uses: actions/setup-node@v4
424424
with:
425425
node-version: ${{ matrix.node-version }}
426426

docusaurus/docs/cypress/reference.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr
132132
Hint: you can debug in `node`
133133

134134
```js
135-
var glob = require("glob");
136-
var MY_GLOB = "cypress/e2e/admin/**/*.{js,jsx}";
137-
glob(MY_GLOB, {}, function (err, files) {
138-
console.log(files);
139-
});
135+
const { globSync } = require("glob");
136+
const MY_GLOB = "cypress/e2e/admin/**/*.{js,jsx}";
137+
const files = globSync(MY_GLOB);
138+
console.log(files);
140139
```
141140

142141
Examples:
@@ -199,11 +198,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr
199198
Hint: you can debug in `node`
200199

201200
```js
202-
var glob = require("glob");
203-
var MY_GLOB = "cypress/e2e/**/*.{js,jsx,coffee,cjsx}";
204-
glob(MY_GLOB, {}, function (err, files) {
205-
console.log(files);
206-
});
201+
const { globSync } = require("glob");
202+
const MY_GLOB = "cypress/e2e/**/*.{js,jsx,coffee,cjsx}";
203+
const files = globSync(MY_GLOB);
204+
console.log(files);
207205
```
208206

209207
Examples:

docusaurus/docs/cypress/troubleshooting.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ You can increase the memory available to Node with [`--max_old_space_size`](http
3333
```bash
3434
export NODE_OPTIONS=--max_old_space_size=4096
3535

36-
npx knapsack-pro-jest
37-
3836
npx knapsack-pro-cypress
39-
40-
npx knapsack-pro-vitest
4137
```
4238

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

docusaurus/docs/jest/guide/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,10 @@ jobs:
414414
# highlight-end
415415
416416
steps:
417-
- uses: actions/checkout@v2
417+
- uses: actions/checkout@v4
418418
419419
- name: Set up Node
420-
uses: actions/setup-node@v1
420+
uses: actions/setup-node@v4
421421
with:
422422
node-version: ${{ matrix.node-version }}
423423

docusaurus/docs/jest/reference.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr
146146
Hint: you can debug in `node`
147147

148148
```js
149-
var glob = require("glob");
150-
var MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}";
151-
glob(MY_GLOB, {}, function (err, files) {
152-
console.log(files);
153-
});
149+
const { globSync } = require("glob");
150+
const MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}";
151+
const files = globSync(MY_GLOB);
152+
console.log(files);
154153
```
155154

156155
Examples:
@@ -207,11 +206,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr
207206
Hint: you can debug in `node`
208207

209208
```js
210-
var glob = require("glob");
211-
var MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}";
212-
glob(MY_GLOB, {}, function (err, files) {
213-
console.log(files);
214-
});
209+
const { globSync } = require("glob");
210+
const MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}";
211+
const files = globSync(MY_GLOB);
212+
console.log(files);
215213
```
216214

217215
Examples:

docusaurus/docs/jest/troubleshooting.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ You can increase the memory available to Node with [`--max_old_space_size`](http
2525
export NODE_OPTIONS=--max_old_space_size=4096
2626

2727
npx knapsack-pro-jest
28-
29-
npx knapsack-pro-cypress
30-
31-
npx knapsack-pro-vitest
3228
```
3329

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

docusaurus/docs/knapsack_pro-ruby/guide/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ jobs:
676676
TZ: "Europe/Warsaw"
677677

678678
steps:
679-
- uses: actions/checkout@v2
679+
- uses: actions/checkout@v4
680680

681681
- name: Set up Ruby
682682
uses: ruby/setup-ruby@v1

docusaurus/docs/vitest/guide/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,10 @@ jobs:
408408
# highlight-end
409409
410410
steps:
411-
- uses: actions/checkout@v2
411+
- uses: actions/checkout@v4
412412
413413
- name: Set up Node
414-
uses: actions/setup-node@v1
414+
uses: actions/setup-node@v4
415415
with:
416416
node-version: ${{ matrix.node-version }}
417417

docusaurus/docs/vitest/reference.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr
136136
Hint: you can debug in `node`
137137

138138
```js
139-
var glob = require("glob");
140-
var MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}";
141-
glob(MY_GLOB, {}, function (err, files) {
142-
console.log(files);
143-
});
139+
const { globSync } = require("glob");
140+
const MY_GLOB = "**/*.{test,spec}.?(c|m)[jt]s?(x)";
141+
const files = globSync(MY_GLOB);
142+
console.log(files);
144143
```
145144

146145
Examples:
@@ -191,11 +190,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr
191190
Hint: you can debug in `node`
192191

193192
```js
194-
var glob = require("glob");
195-
var MY_GLOB = "**/*.{test,spec}.?(c|m)[jt]s?(x)";
196-
glob(MY_GLOB, {}, function (err, files) {
197-
console.log(files);
198-
});
193+
const { globSync } = require("glob");
194+
const MY_GLOB = "**/*.{test,spec}.?(c|m)[jt]s?(x)";
195+
const files = globSync(MY_GLOB);
196+
console.log(files);
199197
```
200198

201199
Examples:

docusaurus/docs/vitest/troubleshooting.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ You can increase the memory available to Node with [`--max_old_space_size`](http
1212
```bash
1313
export NODE_OPTIONS=--max_old_space_size=4096
1414

15-
npx knapsack-pro-jest
16-
17-
npx knapsack-pro-cypress
18-
1915
npx knapsack-pro-vitest
2016
```
2117

0 commit comments

Comments
 (0)