EckherInsightsContact
Eckher
Your guide to what's next.
Eckher
Home › Eckher Insights › 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?

Cover
See also
System-wide HTTP requests
Inspecting all HTTP network requests.
How to run a JSX script?
Executing .jsx files with command line.
Asynchronous iteration in JavaScript
Gotchas with asynchronous iteration in JavaScript.
Server-side rendering with code splitting
How to implement server-side rendering with code splitting?
Eckher
Your guide to what's next.
Copyright © 2021 Eckher. Various trademarks held by their respective owners.