aws / aws/aws-cdk

(docs): nodejs-function, document how to disable bundling for tests

Open
#12,844 6 comments 7 reactions 0 assignees View on GitHub
@aws-cdk/pipelines docs/inline effort/small feature-request good first issue p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

Create an option to disable, (or automatically disable?) asset build/bundling, when using Jest to instantiate a cdk-pipeline for tests

### Use Case

When using a pipeline instance in jest it causes the assets to build/bundle, it may be the intention of the test to check only that the pipeline is correctly formed, build/bundle testing may be handled else where.
In this case the build/bundle process creates additional time delay on testing in synth stage of the pipeline.

### Proposed Solution

Create an option to disable, (or automatically disable?) asset build/bundling, when using Jest to instantiate a cdk-pipeline for tests

### Other

* [ ] :wave: I may be able to implement this feature request
* [ ] :warning: This feature might incur a breaking change

---

This is a :rocket: Feature Request

Contributor guide

Open the contributing guide

Research direction

Start with the Jest tests that instantiate a cdk-pipeline and trace where nodejs-function assets are built or bundled during synthesis. Resolve whether disabling bundling should be explicit or automatic, then document and verify that pipeline-shape tests avoid bundling while bundling tests still exercise it.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
build-system, cloud, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.