diff --git a/package.json b/package.json index 2cb5b12..d3fafff 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "storybook:build": "storybook build", "storybook:test": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"npm run storybook -- --no-open\" \"wait-on tcp:6006 && test-storybook\"", "e2e": "npx playwright test", - "test": "vitest run --silent", + "test": "cross-env FEED_A11Y_TEST=1 vitest run --silent", "prepare": "husky install" }, "husky": { diff --git a/src/Feed.tsx b/src/Feed.tsx index 48218e5..8a15439 100644 --- a/src/Feed.tsx +++ b/src/Feed.tsx @@ -392,7 +392,7 @@ function hasAny(target: Array): boolean { } function isDeveloping() { - return process.env.NODE_ENV !== 'production' + return process.env.NODE_ENV === 'development' || process.env.FEED_A11Y_TEST } const Root = Feed