diff --git a/content/en/tests/setup/javascript.md b/content/en/tests/setup/javascript.md index b999ff23dd3d5..9eb87cd3daddb 100644 --- a/content/en/tests/setup/javascript.md +++ b/content/en/tests/setup/javascript.md @@ -126,7 +126,7 @@ Just like tags, you can add custom measures to your tests by using the current a For more information about custom measures, see the [Add Custom Measures Guide][2]. -### Mocha ES modules +### Mocha ECMAScript modules (ESM) [Mocha >=9.0.0][3] uses an ESM-first approach to load test files. Set `NODE_OPTIONS` to `-r dd-trace/ci/init --import dd-trace/register.js` to get full visibility into your tests. See [`dd-trace-js` ESM support][4] for more information.