From bdb962805eaaa321bdd81e2c4c7ce5780f3a8245 Mon Sep 17 00:00:00 2001 From: Liam Mulhall Date: Fri, 10 Mar 2023 22:58:23 -0700 Subject: [PATCH 1/2] fix: remove period When "etc." is at the end of a sentence, you don't need another period. See https://english.stackexchange.com/a/8385. --- website/versioned_docs/version-29.5/ECMAScriptModules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-29.5/ECMAScriptModules.md b/website/versioned_docs/version-29.5/ECMAScriptModules.md index 047eeabe576c..1aa9a39b0c68 100644 --- a/website/versioned_docs/version-29.5/ECMAScriptModules.md +++ b/website/versioned_docs/version-29.5/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. From 58e5fcf34abd25d39f8cfaa590463d799e014f10 Mon Sep 17 00:00:00 2001 From: Liam Mulhall Date: Sun, 12 Mar 2023 12:10:55 -0600 Subject: [PATCH 2/2] fix: remove period in all versioned docs For https://github.com/facebook/jest/pull/14001. --- docs/ECMAScriptModules.md | 2 +- website/versioned_docs/version-25.x/ECMAScriptModules.md | 2 +- website/versioned_docs/version-26.x/ECMAScriptModules.md | 2 +- website/versioned_docs/version-27.x/ECMAScriptModules.md | 2 +- website/versioned_docs/version-28.x/ECMAScriptModules.md | 2 +- website/versioned_docs/version-29.0/ECMAScriptModules.md | 2 +- website/versioned_docs/version-29.1/ECMAScriptModules.md | 2 +- website/versioned_docs/version-29.2/ECMAScriptModules.md | 2 +- website/versioned_docs/version-29.3/ECMAScriptModules.md | 2 +- website/versioned_docs/version-29.4/ECMAScriptModules.md | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/ECMAScriptModules.md b/docs/ECMAScriptModules.md index 047eeabe576c..1aa9a39b0c68 100644 --- a/docs/ECMAScriptModules.md +++ b/docs/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-25.x/ECMAScriptModules.md b/website/versioned_docs/version-25.x/ECMAScriptModules.md index 753cc44f8ee8..9ac5406f52f7 100644 --- a/website/versioned_docs/version-25.x/ECMAScriptModules.md +++ b/website/versioned_docs/version-25.x/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-26.x/ECMAScriptModules.md b/website/versioned_docs/version-26.x/ECMAScriptModules.md index 753cc44f8ee8..9ac5406f52f7 100644 --- a/website/versioned_docs/version-26.x/ECMAScriptModules.md +++ b/website/versioned_docs/version-26.x/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-27.x/ECMAScriptModules.md b/website/versioned_docs/version-27.x/ECMAScriptModules.md index 5864346c2621..118a2140bcff 100644 --- a/website/versioned_docs/version-27.x/ECMAScriptModules.md +++ b/website/versioned_docs/version-27.x/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-28.x/ECMAScriptModules.md b/website/versioned_docs/version-28.x/ECMAScriptModules.md index e1ad627556a1..38e00b7ab514 100644 --- a/website/versioned_docs/version-28.x/ECMAScriptModules.md +++ b/website/versioned_docs/version-28.x/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-29.0/ECMAScriptModules.md b/website/versioned_docs/version-29.0/ECMAScriptModules.md index e1ad627556a1..38e00b7ab514 100644 --- a/website/versioned_docs/version-29.0/ECMAScriptModules.md +++ b/website/versioned_docs/version-29.0/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-29.1/ECMAScriptModules.md b/website/versioned_docs/version-29.1/ECMAScriptModules.md index e1ad627556a1..38e00b7ab514 100644 --- a/website/versioned_docs/version-29.1/ECMAScriptModules.md +++ b/website/versioned_docs/version-29.1/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-29.2/ECMAScriptModules.md b/website/versioned_docs/version-29.2/ECMAScriptModules.md index e1ad627556a1..38e00b7ab514 100644 --- a/website/versioned_docs/version-29.2/ECMAScriptModules.md +++ b/website/versioned_docs/version-29.2/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-29.3/ECMAScriptModules.md b/website/versioned_docs/version-29.3/ECMAScriptModules.md index 047eeabe576c..1aa9a39b0c68 100644 --- a/website/versioned_docs/version-29.3/ECMAScriptModules.md +++ b/website/versioned_docs/version-29.3/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables. diff --git a/website/versioned_docs/version-29.4/ECMAScriptModules.md b/website/versioned_docs/version-29.4/ECMAScriptModules.md index 047eeabe576c..1aa9a39b0c68 100644 --- a/website/versioned_docs/version-29.4/ECMAScriptModules.md +++ b/website/versioned_docs/version-29.4/ECMAScriptModules.md @@ -16,7 +16,7 @@ Also note that the APIs Jest uses to implement ESM support are still [considered With the warnings out of the way, this is how you activate ESM support in your tests. 1. Ensure you either disable [code transforms](Configuration.md#transform-objectstring-pathtotransformer--pathtotransformer-object) by passing `transform: {}` or otherwise configure your transformer to emit ESM rather than the default CommonJS (CJS). -1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc.. +1. Execute `node` with `--experimental-vm-modules`, e.g. `node --experimental-vm-modules node_modules/jest/bin/jest.js` or `NODE_OPTIONS=--experimental-vm-modules npx jest` etc. On Windows, you can use [`cross-env`](https://github.com/kentcdodds/cross-env) to be able to set environment variables.