Commit 8f7095f
committed
test(create): snap-test the bundled-monorepo create.defaultTemplate path
End-to-end coverage for the gated injection: scaffolding from a
`monorepo: true` manifest entry must wire `create.defaultTemplate`
back to the org scope, and must run the lifted git-init prompt.
The new fixture ships a minimal `@your-org/create@1.0.0` tarball
containing a `templates/workspace/` directory with a workspace-style
`package.json`, `pnpm-workspace.yaml`, and a `vite.config.ts` that
deliberately omits a `create:` block. The test runs
`vp create @your-org:workspace --no-interactive --directory my-mono`
through the shared `.shared/mock-npm-registry.mjs` and then asserts:
- `my-mono/vite.config.ts` has `create: { defaultTemplate: "@your-org" }`,
- `pnpm-workspace.yaml` survives `rewriteMonorepo` post-processing,
- `my-mono/.git` exists (git-init unification covers this path).1 parent dff1588 commit 8f7095f
4 files changed
Lines changed: 72 additions & 0 deletions
File tree
- packages/cli/snap-tests/create-org-bundled-monorepo
- tarballs
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
Binary file not shown.
0 commit comments