Skip to content

Latest commit

 

History

History

preprocessors__flow-browserify

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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: