Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 776 Bytes

File metadata and controls

17 lines (12 loc) · 776 Bytes

Flow with Browserify

This is an example showing how to add Flow support for Cypress using Browserify.

Whether you use Flow in your test files or just in the source files you need to preprocess them before running the tests so Cypress runs plain JavaScript.

It uses browserify to preprocess Flow files via @cypress/browserify-preprocessor and @babel/preset-flow to transpile those files.

Install

npm install --save-dev @cypress/browserify-preprocessor @babel/preset-flow

See: