GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gatsby/integration-tests at master · ursaj/gatsby

Expand file tree

/

integration-tests

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

integration-tests

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
artifacts
artifacts
 
 
cache-resilience
cache-resilience
 
 
functions
functions
 
 
gatsby-cli
gatsby-cli
 
 
gatsby-pipeline
gatsby-pipeline
 
 
gatsby-source-wordpress
gatsby-source-wordpress
 
 
images
images
 
 
long-term-caching
long-term-caching
 
 
node-manifest
node-manifest
 
 
ssr
ssr
 
 
structured-logging
structured-logging
 
 
README.md
README.md
 
 

README.md

Outline

Integration Tests

These are tests triggered via the test:integration script. They do not run in the browser, but rather run in a Jest JSDOM environment. This means that they're good for catching regressions, but may not catch quite as much as the e2e-tests which do run in a real browser via Cypress.

Adding a new integration test

  • Create a folder integration-tests/name-of-the-test
  • Copy structure from an existing test, e.g. integration-tests/long-term-caching
  • Write your tests in integration-tests/name-of-the-test/__tests__

Running the tests

Run yarn test:integration or npm run test:integration to run the suite of integration tests.

Thanks for contributing to Gatsby!

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.