Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #857 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 59 57 -2
Lines 3389 3304 -85
Branches 663 652 -11
=========================================
- Hits 3389 3304 -85 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| "eslint-plugin-n": "^15.7.0", | ||
| "eslint-plugin-node": "^11.1.0", | ||
| "eslint-plugin-promise": "^6.6.0", | ||
| "istanbul": "^0.4.5", |
There was a problem hiding this comment.
Oh yeah I will remove that.
I was consistently running into jest coverage issue for few lines/branches although I added tests for them. So installed to help me identify untested parts of the code. Thanks for pointing that out
| @@ -0,0 +1,1511 @@ | |||
| /* | |||
| Copyright 2023 Adobe. All rights reserved. | |||
| @@ -0,0 +1,293 @@ | |||
| /* | |||
| Copyright 2023 Adobe. All rights reserved. | |||
|
Closing this PR in favor of 858. |
Description
Implement clean command
aio app clean-buildto remove build artifacts from the local machine without affecting deployed resourcesRelated Issue
ACNA-3518
Motivation and Context
The
aio app cleancommand is critical for developers who need to get a clean build environment without manually finding and deleting build files. During development, stale build artifacts can cause inconsistent behavior, especially when switching between different environments or configurations.This command provides a reliable way to clean:
How Has This Been Tested?
testing was performed for each command flag as described in the README.md:
Tested
aio app clean-buildwith default options to verify action and web assets are cleanedTested
aio app clean-build --no-actionsto verify only web assets are cleanedTested
aio app clean-build --no-web-assetsto verify only actions are cleanedTested
aio app clean-build --dist-dirto verify the entire dist directory is cleaned while preserving deployment trackingTested
aio app clean-build --tracking-filesto verify build tracking files are cleanedTested
aio app clean-build --devto verify only development web assets are cleanedTested
aio app clean-build --prodto verify only production web assets are cleanedVerified integration with other commands by testing the sequence:
aio app buildaio app deployaio app clean-build --no-tracking-filesaio app runAdditionally, created dedicated tests for edge cases including:
All tests pass with 100% branch coverage
Screenshots (if appropriate):
Types of changes
Checklist: