Then the site should be a production build

Assert the page was (or was not) served by a production build. A production build sets the build hash (window.___webpackCompilationHash) and loads hashed scripts; gatsby develop sets no hash and loads socket.io.js and unhashed bundles for hot reloading, which also keeps the page from going network-idle.

Examples

Then the site should be a production build
And the site should be a production build
But the site should not be a production build
Then site should be a production build
Then the site should be served as a production build

Pattern

Then(/^(?:the )?site should( not)* be (?:served as )?a production build$/, …)

Part of @webship-js/gatsby-steps (github.com/webship/gatsby-steps), a step pack for Webship-js 2.0.x.