Fumihiro Xue
1 min readDec 16, 2017

--

Nice write-up! 👍

Although you probably do not want to launch/teardown puppeteer inside the “TestEnvironments” as they are sandboxed, which means every test suite will launch their own puppeteer instance.

A better way to do this is by leveraging on the new Global Setup/Teardown api & the feature of remote access puppeteer instance, which allow us to run a single puppeteer instance and reuse it among all tests.

I’ve submit a guide for this and here’s the working code. 😃

--

--