Skip to content

Ignore tests in lambda folder #99

Closed
@davesag

Description

@davesag

I'm just setting my lambda functions and have the following directory structure

src/
  lambda/
    hello.js
    hello.test.js

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions