Monokai / monokai-pro-vscode

Issue tracking for Monokai Pro for Visual Studio Code
321 stars 8 forks source link

Suggestion: Icons for jsx test files #190

Open gabrielmarques0 opened 4 years ago

gabrielmarques0 commented 4 years ago

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

Monokai commented 4 years ago

Can you tell me a bit more about how this is used? Aren't *.test.jsx files just *.jsx files?

gabrielmarques0 commented 4 years ago

*.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.