From 4414d1ae2b6a05c2973c0ae919e95658f66d166c Mon Sep 17 00:00:00 2001 From: 3v0k4 Date: Mon, 30 Dec 2024 18:20:37 +0100 Subject: [PATCH] chore: apply cr --- docusaurus/docs/cypress/guide/index.mdx | 4 ++-- docusaurus/docs/cypress/reference.md | 18 ++++++++---------- docusaurus/docs/cypress/troubleshooting.md | 4 ---- docusaurus/docs/jest/guide/index.mdx | 4 ++-- docusaurus/docs/jest/reference.md | 18 ++++++++---------- docusaurus/docs/jest/troubleshooting.md | 4 ---- .../docs/knapsack_pro-ruby/guide/index.mdx | 2 +- docusaurus/docs/vitest/guide/index.mdx | 4 ++-- docusaurus/docs/vitest/reference.md | 18 ++++++++---------- docusaurus/docs/vitest/troubleshooting.md | 4 ---- 10 files changed, 31 insertions(+), 49 deletions(-) diff --git a/docusaurus/docs/cypress/guide/index.mdx b/docusaurus/docs/cypress/guide/index.mdx index 50df338d..5c2f6236 100644 --- a/docusaurus/docs/cypress/guide/index.mdx +++ b/docusaurus/docs/cypress/guide/index.mdx @@ -417,10 +417,10 @@ jobs: # highlight-end steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/docusaurus/docs/cypress/reference.md b/docusaurus/docs/cypress/reference.md index c070708c..5e739a4f 100644 --- a/docusaurus/docs/cypress/reference.md +++ b/docusaurus/docs/cypress/reference.md @@ -132,11 +132,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr Hint: you can debug in `node` ```js -var glob = require("glob"); -var MY_GLOB = "cypress/e2e/admin/**/*.{js,jsx}"; -glob(MY_GLOB, {}, function (err, files) { - console.log(files); -}); +const { globSync } = require("glob"); +const MY_GLOB = "cypress/e2e/admin/**/*.{js,jsx}"; +const files = globSync(MY_GLOB); +console.log(files); ``` Examples: @@ -199,11 +198,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr Hint: you can debug in `node` ```js -var glob = require("glob"); -var MY_GLOB = "cypress/e2e/**/*.{js,jsx,coffee,cjsx}"; -glob(MY_GLOB, {}, function (err, files) { - console.log(files); -}); +const { globSync } = require("glob"); +const MY_GLOB = "cypress/e2e/**/*.{js,jsx,coffee,cjsx}"; +const files = globSync(MY_GLOB); +console.log(files); ``` Examples: diff --git a/docusaurus/docs/cypress/troubleshooting.md b/docusaurus/docs/cypress/troubleshooting.md index 15242846..b9a3eee9 100644 --- a/docusaurus/docs/cypress/troubleshooting.md +++ b/docusaurus/docs/cypress/troubleshooting.md @@ -33,11 +33,7 @@ You can increase the memory available to Node with [`--max_old_space_size`](http ```bash export NODE_OPTIONS=--max_old_space_size=4096 -npx knapsack-pro-jest - npx knapsack-pro-cypress - -npx knapsack-pro-vitest ``` ## Debug Knapsack Pro on your development environment/machine diff --git a/docusaurus/docs/jest/guide/index.mdx b/docusaurus/docs/jest/guide/index.mdx index 90e14754..e54ecbf7 100644 --- a/docusaurus/docs/jest/guide/index.mdx +++ b/docusaurus/docs/jest/guide/index.mdx @@ -414,10 +414,10 @@ jobs: # highlight-end steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/docusaurus/docs/jest/reference.md b/docusaurus/docs/jest/reference.md index a499c767..478006c7 100644 --- a/docusaurus/docs/jest/reference.md +++ b/docusaurus/docs/jest/reference.md @@ -146,11 +146,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr Hint: you can debug in `node` ```js -var glob = require("glob"); -var MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"; -glob(MY_GLOB, {}, function (err, files) { - console.log(files); -}); +const { globSync } = require("glob"); +const MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"; +const files = globSync(MY_GLOB); +console.log(files); ``` Examples: @@ -207,11 +206,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr Hint: you can debug in `node` ```js -var glob = require("glob"); -var MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"; -glob(MY_GLOB, {}, function (err, files) { - console.log(files); -}); +const { globSync } = require("glob"); +const MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"; +const files = globSync(MY_GLOB); +console.log(files); ``` Examples: diff --git a/docusaurus/docs/jest/troubleshooting.md b/docusaurus/docs/jest/troubleshooting.md index 916735d2..07832dd0 100644 --- a/docusaurus/docs/jest/troubleshooting.md +++ b/docusaurus/docs/jest/troubleshooting.md @@ -25,10 +25,6 @@ You can increase the memory available to Node with [`--max_old_space_size`](http export NODE_OPTIONS=--max_old_space_size=4096 npx knapsack-pro-jest - -npx knapsack-pro-cypress - -npx knapsack-pro-vitest ``` ## Debug Knapsack Pro on your development environment/machine diff --git a/docusaurus/docs/knapsack_pro-ruby/guide/index.mdx b/docusaurus/docs/knapsack_pro-ruby/guide/index.mdx index b6b5bcff..a48d8137 100644 --- a/docusaurus/docs/knapsack_pro-ruby/guide/index.mdx +++ b/docusaurus/docs/knapsack_pro-ruby/guide/index.mdx @@ -676,7 +676,7 @@ jobs: TZ: "Europe/Warsaw" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 diff --git a/docusaurus/docs/vitest/guide/index.mdx b/docusaurus/docs/vitest/guide/index.mdx index 96227fd2..d10fbb5f 100644 --- a/docusaurus/docs/vitest/guide/index.mdx +++ b/docusaurus/docs/vitest/guide/index.mdx @@ -408,10 +408,10 @@ jobs: # highlight-end steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} diff --git a/docusaurus/docs/vitest/reference.md b/docusaurus/docs/vitest/reference.md index a8859309..a78b0fc0 100644 --- a/docusaurus/docs/vitest/reference.md +++ b/docusaurus/docs/vitest/reference.md @@ -136,11 +136,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr Hint: you can debug in `node` ```js -var glob = require("glob"); -var MY_GLOB = "{**/__tests__/**/*.js?(x),**/?(*.)(spec|test).js?(x)}"; -glob(MY_GLOB, {}, function (err, files) { - console.log(files); -}); +const { globSync } = require("glob"); +const MY_GLOB = "**/*.{test,spec}.?(c|m)[jt]s?(x)"; +const files = globSync(MY_GLOB); +console.log(files); ``` Examples: @@ -191,11 +190,10 @@ Available: anything that [node-glob](https://github.com/isaacs/node-glob#glob-pr Hint: you can debug in `node` ```js -var glob = require("glob"); -var MY_GLOB = "**/*.{test,spec}.?(c|m)[jt]s?(x)"; -glob(MY_GLOB, {}, function (err, files) { - console.log(files); -}); +const { globSync } = require("glob"); +const MY_GLOB = "**/*.{test,spec}.?(c|m)[jt]s?(x)"; +const files = globSync(MY_GLOB); +console.log(files); ``` Examples: diff --git a/docusaurus/docs/vitest/troubleshooting.md b/docusaurus/docs/vitest/troubleshooting.md index 422b368f..0cff4161 100644 --- a/docusaurus/docs/vitest/troubleshooting.md +++ b/docusaurus/docs/vitest/troubleshooting.md @@ -12,10 +12,6 @@ You can increase the memory available to Node with [`--max_old_space_size`](http ```bash export NODE_OPTIONS=--max_old_space_size=4096 -npx knapsack-pro-jest - -npx knapsack-pro-cypress - npx knapsack-pro-vitest ```