Open ajhsu opened 6 years ago
I found this post at the beginning: Getting Started with Jest and Puppeteer - jsilvax (2017-12-15)
Then I found another similar example from xfumihiro/jest-puppeteer-example
Then I found that there's an official document about this: Jest - Using with puppeteer
So we can simply take advantage of jest-puppeteer preset for our Jest / Puppeteer integration
jest-puppeteer
Note that Puppeteer provided tons of APIs can be used in Integration Test / UI Test, see: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#class-response
Timeline
I found this post at the beginning: Getting Started with Jest and Puppeteer - jsilvax (2017-12-15)
Then I found another similar example from xfumihiro/jest-puppeteer-example
Then I found that there's an official document about this: Jest - Using with puppeteer
Conclusion
So we can simply take advantage of
jest-puppeteer
preset for our Jest / Puppeteer integrationNote: Leverage the Puppeteer APIs
Note that Puppeteer provided tons of APIs can be used in Integration Test / UI Test, see: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#class-response