···5050 - name: Unit Tests
5151 run: yarn run test --maxWorkers=2
5252 - name: Build
5353- run: yarn run build
5353+ run: yarn workspace @urql/core build
5454 - name: e2e tests 🧪
5555 uses: cypress-io/github-action@v2
5656 with:
+5
packages/react-urql/cypress/fixtures/example.json
···11+{
22+ "name": "Using fixtures to represent data",
33+ "email": "hello@cypress.io",
44+ "body": "Fixtures are a great way to mock data for responses to routes"
55+}
···11+// ***********************************************
22+// This example commands.js shows you how to
33+// create various custom commands and overwrite
44+// existing commands.
55+//
66+// For more comprehensive examples of custom
77+// commands please read more here:
88+// https://on.cypress.io/custom-commands
99+// ***********************************************
1010+//
1111+//
1212+// -- This is a parent command --
1313+// Cypress.Commands.add('login', (email, password) => { ... })
1414+//
1515+//
1616+// -- This is a child command --
1717+// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
1818+//
1919+//
2020+// -- This is a dual command --
2121+// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
2222+//
2323+//
2424+// -- This will overwrite an existing command --
2525+// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
+20
packages/react-urql/cypress/support/index.js
···11+// ***********************************************************
22+// This example support/index.js is processed and
33+// loaded automatically before your test files.
44+//
55+// This is a great place to put global configuration and
66+// behavior that modifies Cypress.
77+//
88+// You can change the location of this file or turn off
99+// automatically serving support files with the
1010+// 'supportFile' configuration option.
1111+//
1212+// You can read more here:
1313+// https://on.cypress.io/configuration
1414+// ***********************************************************
1515+1616+// Import commands.js using ES2015 syntax:
1717+import './commands';
1818+1919+// Alternatively you can use CommonJS syntax:
2020+// require('./commands')