feat(test): smoke testing with clean setup.#1846
Conversation
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Pull request overview
Adds a new smoke-test “consumer” project under experiments/smoke and wires it into CI to validate that locally packed tarballs from experiments/tarballs can be installed and exercised in a clean npm install context (including running a minimal typia.is call through the ttsc/native backend toolchain).
Changes:
- Introduce
experiments/smokeminimal npm project (package.json, tsconfig, and a smalltypia.isruntime check). - Add brief documentation for the smoke test’s intent and how it validates packed tarballs.
- Extend
.github/workflows/experiments.ymlto run the smoke test after building tarballs.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| experiments/smoke/package.json | Defines smoke project dependencies/scripts using packed tarballs and ttsx runner. |
| experiments/smoke/tsconfig.json | TypeScript config for running the smoke project (includes Typia transform config). |
| experiments/smoke/src/index.ts | Minimal runtime assertion that typia.is works in the smoke environment. |
| experiments/smoke/README.md | Documents what the smoke test validates and why it uses npm. |
| .github/workflows/experiments.yml | Runs the smoke test in CI after tarball packaging. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| }, | ||
| "devDependencies": { | ||
| "@typescript/native-preview": "7.0.0-dev.20260510.1", | ||
| "ttsc": "^0.10.0" |
| "outDir": "lib", | ||
| "plugins": [ | ||
| { | ||
| "transform": "typia/lib/transform" | ||
| } | ||
| ] |
| - name: Test Smoke | ||
| working-directory: experiments/smoke | ||
| run: | | ||
| npm install |
|
|
||
| Validates the packed npm tarballs from `experiments/tarballs` in a fresh npm | ||
| consumer project. | ||
|
|
This pull request introduces a new "smoke test" workflow to validate the integrity of the packed npm tarballs for the
typiaproject. The smoke test simulates a fresh npm consumer environment, ensuring that the tarballs can be installed and used as expected, and that thettscTypeScript compiler can build a simple project using the published packages.New smoke test infrastructure:
experiments/smokedirectory containing a minimal npm project that installs the packed tarballs and verifiestypiafunctionality with a basic type check (typia.is). (experiments/smoke/package.json,experiments/smoke/src/index.ts,experiments/smoke/tsconfig.json, [1] [2] [3]README.mdinexperiments/smokeexplaining the purpose and process of the smoke test.CI workflow enhancements:
.github/workflows/experiments.ymlto run the smoke test after building tarballs, using npm to install and start the test project, and setting up a cache directory forttsc.