I want to create a live template for test files that have name like "SomeComponent.spec.jsx", where the component being tested is automatically imported, e.g.
The filenameWithoutExtension function doesn't work here as it only strips the last extension, leaving me with "SomeComponent.spec". I tried a few combinations of other functions but couldn't find anything that worked. The groovy one looked promising until I ran into the same problem as this: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000759284-WebStorm-Live-Templates-variables-groovyScript-groovy-code-not-working-
Is there a way of getting the filename without any extension in this case with the existing (working!) webstorm live template functions?