Skip to content
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

Add test script when specs are generated #821

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

srchase
Copy link
Contributor

@srchase srchase commented Jul 10, 2023

This PR updates codegen to write a test script and vite.config.ts file when a spec has been generated.

For example, the AddHttpApiKeyAuthPlugin writes a generated spec file, and now adds a dependency on vitest. A test script and vite.config.ts are now added when this plugin is used so that the spec can easily be run with yarn test within the generated SSDK package.

It also converts the spec generated to use vitest, replacing jest.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@srchase srchase requested review from a team as code owners July 10, 2023 16:01
@srchase srchase merged commit 9751dc0 into smithy-lang:main Jul 13, 2023
7 checks passed
@srchase srchase deleted the test-script branch July 13, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants