-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore tests in lambda folder #99
Comments
for now I work around this by simply adding this script in package.json
but it would be nicer to exclude them during the |
Somewhat unrelated but since you're using Webpack it might be helpful.. I stumbled upon this issue a while back and a couple days ago I added a way to resolve it within 8eecf0d2/netlify-local by allowing users to specify a The bundle command docs probably give the best description of how it works, it also flattens nested handlers by replacing forward slashes with dashes (eg, You can use the logic programatically like so: const netlifyLocal = require("netlify-local");
const netlifyConfig = netlifyLocal.parseNetlifyConfig("netlify.toml");
module.exports = {
entry: netlifyLocal.composeWebpackEntry(netlifyConfig),
...
} |
As far as the issue itself goes, it's a bit of a pain this is the same behaviour as production - to request changes in the production environment you'll need to talk to Netlify Support. @sw-yx is there a specific / technical support link I should be promoting? |
@8eecf0d2 that is -the- canonical netlify support link, you got it :) |
hey @davesag , the really really easy way to do this is just dont put the lambda folder in in fact i really dislike encouraging people to colocate lambda functions and client code. causes potential confusion. problem is we've been recommending it for a while. |
I'm just setting my lambda functions and have the following directory structure
Which follows how the rest of the app gets tested.
Unfortunately this means running
netlify-lambda build src/lambda
results in my tests also being built and installed as if they are lambda functions.Is there a way to exclude all
*.test.js
or*.spec.js
files?The text was updated successfully, but these errors were encountered: