From 14271dc7266b0d8d36ecffe49354ce5305432d8b Mon Sep 17 00:00:00 2001 From: Qiu Haoze Date: Wed, 10 Oct 2018 10:57:04 +0800 Subject: [PATCH] Add missing export statement Add missing export statement in puppeteer_environment.js Add Semicolon Update CHANGELOG.md --- CHANGELOG.md | 1 + docs/Puppeteer.md | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ae698a3f909..06dd57f38b6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ - `[docs]` Correct `failure-change` notification mode ([#6878](https://github.com/facebook/jest/pull/6878)) - `[scripts]` Don’t remove node_modules from subdirectories of presets in e2e tests ([#6948](https://github.com/facebook/jest/pull/6948)) - `[diff-sequences]` Double-check number of differences in tests ([#6953](https://github.com/facebook/jest/pull/6953)) +- `[docs]` Add missing export statement in `puppeteer_environment.js` under `docs/Puppeteer.md` ([#7127](https://github.com/facebook/jest/pull/7127)) ## 23.5.0 diff --git a/docs/Puppeteer.md b/docs/Puppeteer.md index 6e2677224fd0..1299bb346870 100644 --- a/docs/Puppeteer.md +++ b/docs/Puppeteer.md @@ -112,6 +112,8 @@ class PuppeteerEnvironment extends NodeEnvironment { return super.runScript(script); } } + +module.exports = PuppeteerEnvironment; ``` Finally we can close the puppeteer instance and clean-up the file