Skip to content

Commit

Permalink
Merge pull request #1 from caprolactam/pr/unit-test
Browse files Browse the repository at this point in the history
Fix developing condition
  • Loading branch information
caprolactam committed Feb 9, 2024
2 parents f5a6471 + 0a37f0c commit b53ed0b
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 b53ed0b

Please sign in to comment.