From aed03ecd0d9a2460a87fa7e47b06cbba609f1fc7 Mon Sep 17 00:00:00 2001 From: Qiu Haoze Date: Wed, 10 Oct 2018 11:05:45 +0800 Subject: [PATCH] Add missing export statement Add missing export statement in puppeteer_environment.js Add Semicolon Update CHANGELOG.md 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..c621b8470b8b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ - `[jest-changed-files]` Refactor to use `execa` over `child_process` ([#6987](https://github.com/facebook/jest/pull/6987)) - `[*]` Bump dated dependencies ([#6978](https://github.com/facebook/jest/pull/6978)) - `[scripts]` Don’t make empty subfolders for ignored files in build folder ([#7001](https://github.com/facebook/jest/pull/7001)) +- `[docs]` Add missing export statement in `puppeteer_environment.js` under `docs/Puppeteer.md` ([#7127](https://github.com/facebook/jest/pull/7127)) ## 23.6.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