Open gabrielmarques0 opened 4 years ago
Can you tell me a bit more about how this is used? Aren't *.test.jsx
files just *.jsx
files?
*.test.jsx
is a nomenclature pattern to define automated testing files.
For example, let's imagine a scenario where I need to create a button for my website. First, I'll create a file called button.jsx
that will contain all the code that creates the button. However, I need to implement automated tests for this button to guarantee it's working properly. To do that, I'll create another file here called button.test.jsx
that will contain all the tests code.
Note that even if both files are *.jsx
, their purpose is completely different. (This also applies for .js
files). While developing, this helps a lot identifying where test files are.
Hey, I love Monokai Pro icons, but one problem I had with it is that it doesn't have a different icon for .test.jsx files, as vscode Seti theme, for example. I'll let a screenshot of Seti here.![Screenshot_20200512_144955](https://user-images.githubusercontent.com/32453146/81727802-e4398400-945f-11ea-9a5f-5342d3b900bb.png)