Running Tests
February 5, 2021 ยท View on GitHub
This page has moved to the Gatsby monorepo!
Hi there! ๐ thank you so much for being a beta/alpha tester of this plugin! You've helped us bring a much more stable WordPress integration to Gatsby and we're very thankful for that!
We've shipped this plugin as gatsby-source-wordpress@4.0.0.
gatsby-source-wordpress-experimental is now deprecated.
Please upgrade by npm/yarn installing the latest version of the stable plugin and updating your gatsby-config.js to include the stable plugin name.
We've chosen this point to release this plugin as a stable release not because there are no bugs (all software has some bugs), but because this plugin is far more stable than the last major version of gatsby-source-wordpress.
Note that we will continue fixing Github issues you've opened in the -experimental repo - those are not forgotten and will be transferred to the Gatsby monorepo.
Thank you! ๐
Running Tests
yarn testwill run the entire suiteyarn test-schemawill run the schema integration suite and the increment.yarn test-schema-watchwill watch the first schema suite.yarn test-schema-firstwill run the first schema suite. you can pass jest arguments hereyarn test-schema-incrementwill run the second schema suiteyarn test-buildwill run the build integration suiteyarn test-build-watchwill watch the build integration suiteyarn test-updatewill run-ufor all schema and build integration suites.
Changing test suite WordPress plugin versions in docker
- Edit the versions as desired in
docker-compose.ymlin thebuild.argsforwordpressservice - Run
yarn docker-start -dto detach, force re-build images and re-create containers, and ensure the plugins directory (volume) is renewed between builds - Run
yarn test-schema. You should see a diff in the snapshots that demonstrates the change in schema with the changed plugin versions. - Run
yarn test-updateto update all test snapshots.