Eckher
EckherInsightsContact
Eckher
Your guide to what's next.
Cypress
Apr 21, 2019

Cypress

What is Cypress?

Cypress is an end-to-end testing framework.

Minimal Cypress setup

Create a file in $YOUR_PROJECT_ROOT/cypress/integration/example_spec.js with the following content:

describe('Test One', function() {
    it('Runs correctly', function() {
        expect(true).to.equal(true);
    });
});

Start Cypress by running:

node_modules/.bin/cypress open

example_spec.js should be visible in Cypress under "Integration tests". Click on it to launch it in the Cypress Test Runner.

Cons

Does Cypress integrate with BrowserStack?

See also
How to run a JSX script?
Executing .jsx files with command line.