Should "App-test.js" be renamed to "App.test.js"? #570
Replies: 3 comments 2 replies
-
It's in Nevertheless, I'd personally prefer the App.test.tsx name, with TS included. And if we ever decide to change the name, I'd take this opportunity to add some meaningful test, e.g. with React Native Testing Library. |
Beta Was this translation helpful? Give feedback.
-
Change makes sense to me, as more aligned with Jest conventions (though as pointed out Jest will interpret anything in the tests directory as a test). https://jestjs.io/docs/configuration#testregex-string--arraystring |
Beta Was this translation helpful? Give feedback.
-
pr merged: facebook/react-native#35826 |
Beta Was this translation helpful? Give feedback.
-
when creating a react project with
create-react-app
, the starter test file for theApp.js
file is calledApp.test.js
in react-native, the starter test file for
App.js
is calledApp-test.js
i feel like it would make sense if react and react-native unified the naming scheme for this. opinions?
Beta Was this translation helpful? Give feedback.
All reactions