-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat(tests): add snapshot tests for all test projects #114
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of minor comments
cf-macro/index.ts
Outdated
@@ -6,7 +6,8 @@ import { setLogger } from 'slic-watch-core/logging' | |||
import { type SlicWatchConfig, resolveSlicWatchConfig } from 'slic-watch-core/inputs/general-config' | |||
import { type Template } from 'cloudform-types' | |||
|
|||
const logger = pino({ name: 'macroHandler' }) | |||
const logger = pino({ name: 'macroHandler', level: process.env.DEBUG_LEVEL ?? 'DEBUG' }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want the default debug level to be DEBUG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it keeps the status quo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly. I think it's useful to have the input and output stack visible in the Macro function's logs but want to suppress it during test runs.
sam-test-project/tests/snapshot/sam-test-project-snapshot.test.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: David Lynam <david.lynam@fourtheorem.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I was only trying to look into how to generate the template from CDK, SAM, and Serverless framework automatically rather than manually creating JSON output of CloudFormation Template.
6e98ebb
to
1c48c8c
Compare
Add snapshot tests for all test projects
Description
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: