You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A e2e package should be created which extends Typescript project. This package should depend on aws-prototyping-sdk and run a series of e2e tests by running npx projen new --from aws-prototyping-sdk nx-monorepo --sample-language=<language>. It should completely simulate how a user would do this, meaning we should spin up a local NPM registry ala Verdaccio, point our npm registry to the local verdaccio instance and upload the latest dist/js/*.tar.gz from aws-prototyping-sdk. From here it is a matter or validating that the project which gets synthesized contains the correct files, builds, generates the right synthed files (can be done via snapshotting).
In summary:
Create a new e2e-tests package using TypescriptProject.
Add a devDep on aws-prototyping-sdk@0.0.0
Write a script to spin up a local verdaccio instance and update the local registry to point to it (.npmrc or some other mechanism).
prepend the startup of the verdacio server to the build task
Implement E2E tests as Jest tests by running npx projen new --from aws-prototyping-sdk nx-monorepo --sample-language=<language>
Things to test for:
All languages should build successfully with npx nx run-many --target=build --all
Synthesized outputs are correct (with and without supplied context)
The text was updated successfully, but these errors were encountered:
agdimech
changed the title
E2E Test Package
[TESTS] E2E Test Package
Mar 10, 2022
This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon. If you wish to exclude this issue from being marked as stale, add the "backlog" label.
A e2e package should be created which extends Typescript project. This package should depend on aws-prototyping-sdk and run a series of e2e tests by running
npx projen new --from aws-prototyping-sdk nx-monorepo --sample-language=<language>
. It should completely simulate how a user would do this, meaning we should spin up a local NPM registry ala Verdaccio, point our npm registry to the local verdaccio instance and upload the latestdist/js/*.tar.gz from aws-prototyping-sdk
. From here it is a matter or validating that the project which gets synthesized contains the correct files, builds, generates the right synthed files (can be done via snapshotting).In summary:
e2e-tests
package usingTypescriptProject
.devDep
onaws-prototyping-sdk@0.0.0
build
tasknpx projen new --from aws-prototyping-sdk nx-monorepo --sample-language=<language>
Things to test for:
npx nx run-many --target=build --all
The text was updated successfully, but these errors were encountered: