Skip to content

Commit

Permalink
Fix developing condition
Browse files Browse the repository at this point in the history
  • Loading branch information
caprolactam committed Feb 9, 2024
1 parent f5a6471 commit 0a37f0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/Feed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function hasAny<T>(target: Array<T>): boolean {
}

function isDeveloping() {
return process.env.NODE_ENV !== 'production'
return process.env.NODE_ENV === 'development' || process.env.FEED_A11Y_TEST
}

const Root = Feed
Expand Down

0 comments on commit 0a37f0c

Please sign in to comment.