Closed lucapasquale closed 6 years ago
Hi @lucapasquale ,
Thanks a lot for that suggestion. That made a lot of sense. I've just added support for ignoring certain files. Instead of using your suggestion, I used a more standard approach using globbing (I've described that into the README.md).
Update your code using the latest version in npm (1.5.1). Then, based on your example above, update your appconfig.json as follow:
{
"graphql": {
"schema": "src/graphql",
"ignore": "**/spec.js"
}
}
Let me know if that fixes your issue.
Cheers,
Nic
Thanks, it worked perfectly!
My project have a structure like this:
with
spec.js
being the type tests. Since schemaglue always imports all.js
files, it is importing the tests as well, which causes them to be ran when I start the project. Maybe allowing something like this onappconfig.json
would resolve