const { getJestConfig } = require('@storybook/test-runner'); module.exports = { // The default configuration comes from @storybook/test-runner ...getJestConfig(), /** Add your own overrides below * @see https://jestjs.io/docs/configuration */ testEnvironmentOptions: { 'jest-playwright': { devices: process.env.TEST_DEVICE === 'mobile' ? ['iPhone 8'] : undefined, }, }, };