monokai-pro-vscode icon indicating copy to clipboard operation
monokai-pro-vscode copied to clipboard

Suggestion: Icons for jsx test files

Open gabrielmarques0 opened this issue 5 years ago • 2 comments

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

gabrielmarques0 avatar May 12 '20 17:05 gabrielmarques0

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

Monokai avatar Jun 06 '20 14:06 Monokai

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

gabrielmarques0 avatar Jun 09 '20 18:06 gabrielmarques0