Then the site should be a production build

Assert the page was (or was not) served by a production build. astro dev adds the dev toolbar (astro-dev-toolbar), the Vite client (/@vite/client) and data-astro-source-file attributes; astro build adds none of them.

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/astro-steps (github.com/webship/astro-steps), a step pack for Webship-js 2.0.x.