Cypress Protocol Buffers
Encode a fixture with Protocol Buffers

Use this plugin to encode a Cypress fixture with Protocol Buffers.
Installation
npm i -D cypress-protobuf# or yarn add -D cypress-protobuf
then open your cypress/plugins/index.js
file and register a new task
module { ;};
How to use it
To encode with Protocol Buffers a fixture
cy ;
and in your test you will wait for the request as usual
cy;
Take a look at the example test source code.
Tips
- the plugin saves the last
protoFilePath
so you can avoid to pass it every time. You can even set it at the beginning of your test suite
;
Contributors
Thanks goes to these wonderful people (emoji key):
Stefano Magni 💻 ⚠️ |
This project follows the all-contributors specification. Contributions of any kind welcome!