I'm using the .projectionist.json config from this gist:
https://gist.github.com/mthadley/e5389f45b4fb951be067fe42357d679d
but altered slightly for my naming conventions:
{
"**/__tests__/*.spec.tsx": {
"alternate": "{}.tsx",
"type": "test"
},
"*.tsx": {
"alternate": "{dirname}/__tests__/{basename}.spec.tsx",
"type": "source"
}
}
The source matcher works as expected, but reversing that from the test matcher does this:
E345: Cannot find file "/Users/<user>/<project>/<repo>/app/javascript/src/features/<feature>/<subdir>/__tests__/__tests__/<component>.spec.spec.tsx"
I've tried changing test to use basename, dirname, file, and variations on ../{}.tsx all to no avail. How do I make this work?
I'm using the
.projectionist.jsonconfig from this gist:https://gist.github.com/mthadley/e5389f45b4fb951be067fe42357d679d
but altered slightly for my naming conventions:
{ "**/__tests__/*.spec.tsx": { "alternate": "{}.tsx", "type": "test" }, "*.tsx": { "alternate": "{dirname}/__tests__/{basename}.spec.tsx", "type": "source" } }The
sourcematcher works as expected, but reversing that from thetestmatcher does this:E345: Cannot find file "/Users/<user>/<project>/<repo>/app/javascript/src/features/<feature>/<subdir>/__tests__/__tests__/<component>.spec.spec.tsx"I've tried changing
testto usebasename,dirname,file, and variations on../{}.tsxall to no avail. How do I make this work?