-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(maintenance): fix install instructions & switch test runner (#3030)
- Loading branch information
1 parent
23a33dc
commit ad323ae
Showing
8 changed files
with
84 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
import { App } from 'aws-cdk-lib'; | ||
import { Template } from 'aws-cdk-lib/assertions'; | ||
import { describe, it } from 'vitest'; | ||
import { PowertoolsExampleStack } from '../cdk/example-stack.js'; | ||
|
||
test('CDK code synthesize', () => { | ||
describe('CDK example stack', () => { | ||
const app = new App(); | ||
const stack = new PowertoolsExampleStack(app, 'MyTestStack'); | ||
Template.fromStack(stack).resourceCountIs('AWS::Lambda::Function', 4); | ||
|
||
it('has 4 Lambda functions', () => { | ||
Template.fromStack(stack).resourceCountIs('AWS::Lambda::Function', 4); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { defineProject } from 'vitest/config'; | ||
|
||
export default defineProject({ | ||
test: { | ||
environment: 'node', | ||
}, | ||
}); |
Oops, something went wrong.