HLTech / mockiavelli

HTTP request mocking library for Puppeteer and Playwright
MIT License
144 stars 10 forks source link

Compability with different versions of puppeteer and playwright #25

Closed lukaszfiszer closed 3 years ago

lukaszfiszer commented 3 years ago

Run CI tests on different versions of puppeteer and playwright - achieved with new build matrix and setting TEST_LIBRARY env name that is then read in integration test

To make test pass I needed to create mirrors of interfaces from puppeteer's and playwright's packages, so that we do not need to import them anymore. This way changes in those libraries does not affect mockiavelli as long as the shape of the interfaces match. For example Puppeteer's Request was recently renamed to HTTPRequest - which was causing test to fail

github-actions[bot] commented 3 years ago

:tada: This PR is included in version 1.2.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: