We are building a fairly simple app that is a lambda function and a spec file. Our project layout is:
functions/
-- verify.ts
-- verify.spec.ts
Whenever we push and the build happens we get the following build error:
9:55:44 AM: ────────────────────────────────────────────────────────────────
9:55:44 AM: 1. Functions bundling
9:55:44 AM: ────────────────────────────────────────────────────────────────
9:55:44 AM:
9:55:45 AM: Packaging Functions from functions directory:
9:55:45 AM: - verify.spec.ts
9:55:45 AM: - verify.ts
9:55:45 AM:
Looking at this issue fix(build): Exclude test files by riddla · Pull Request #105 · netlify/netlify-lambda · GitHub it seems like it should be resolved. However, whenever we push our site we se the above error where it is attempting to package the TypeScript function.