declapract-typescript-ehmpathy 0.49.9 → 0.49.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (699) hide show
  1. package/dist/.test/assets/cache/declarations/declapract.declare.yml +4 -0
  2. package/dist/.test/assets/cache/declarations/practices/cache/.declapract.integration.test.ts +108 -0
  3. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-old-cache-package/declapract.use.yml +6 -0
  4. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-old-cache-package/package.json +7 -0
  5. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/declapract.use.yml +6 -0
  6. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/package.json +7 -0
  7. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-without-cache-package/declapract.use.yml +6 -0
  8. package/dist/.test/assets/cache/declarations/practices/cache/.test/assets/repo-without-cache-package/package.json +7 -0
  9. package/dist/.test/assets/cache/declarations/practices/cache/best-practice/package.json +7 -0
  10. package/dist/.test/assets/cache/declarations/useCases.yml +5 -0
  11. package/dist/.test/assets/expo/declarations/declapract.declare.yml +4 -0
  12. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +810 -0
  13. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +289 -0
  14. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  15. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +127 -0
  16. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +76 -0
  17. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +27 -0
  18. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +28 -0
  19. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/package.json +36 -0
  20. package/dist/.test/assets/expo/declarations/practices/cicd-app-react-native-expo/best-practice/package.json.declapract.ts +3 -0
  21. package/dist/.test/assets/expo/declarations/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  22. package/dist/.test/assets/expo/declarations/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  23. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.readme.md +10 -0
  24. package/dist/.test/assets/expo/declarations/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +76 -0
  25. package/dist/.test/assets/expo/declarations/practices/node/best-practice/.npmrc.declapract.integration.test.ts +165 -0
  26. package/dist/.test/assets/expo/declarations/practices/node/best-practice/.npmrc.declapract.ts +60 -0
  27. package/dist/.test/assets/expo/declarations/practices/node/best-practice/.nvmrc +1 -0
  28. package/dist/.test/assets/expo/declarations/practices/node/best-practice/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  29. package/dist/.test/assets/expo/declarations/practices/node/best-practice/package.json +15 -0
  30. package/dist/.test/assets/expo/declarations/practices/node/best-practice/package.json.declapract.ts +3 -0
  31. package/dist/.test/assets/expo/declarations/practices/node/best-practice/readme.md +1 -0
  32. package/dist/.test/assets/expo/declarations/practices/node/best-practice/readme.md.declapract.ts +3 -0
  33. package/dist/.test/assets/expo/declarations/useCases.yml +8 -0
  34. package/dist/.test/assets/expo-fullusecase/declarations/declapract.declare.yml +10 -0
  35. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.declapract.integration.test.ts +108 -0
  36. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-old-cache-package/declapract.use.yml +6 -0
  37. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-old-cache-package/package.json +7 -0
  38. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/declapract.use.yml +6 -0
  39. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-with-valid-cache-package/package.json +7 -0
  40. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-without-cache-package/declapract.use.yml +6 -0
  41. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/.test/assets/repo-without-cache-package/package.json +7 -0
  42. package/dist/.test/assets/expo-fullusecase/declarations/practices/cache/best-practice/package.json +7 -0
  43. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +810 -0
  44. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +289 -0
  45. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  46. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +127 -0
  47. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +76 -0
  48. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +27 -0
  49. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +28 -0
  50. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/package.json +36 -0
  51. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-app-react-native-expo/best-practice/package.json.declapract.ts +3 -0
  52. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.declapract.integration.test.ts +572 -0
  53. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/.test.yml +19 -0
  54. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/consumer-owned.yml +21 -0
  55. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/review.yml +26 -0
  56. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/declapract.use.yml +6 -0
  57. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/__snapshots__/.declapract.integration.test.ts.snap +550 -0
  58. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/has-changelog-file/changelog.md.declapract.ts +11 -0
  59. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-use-apikeys/.agent/repo=.this/role=any/skills/use.apikeys.json.declapract.ts +7 -0
  60. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-use-apikeys/.agent/repo=.this/role=any/skills/use.apikeys.sh.declapract.ts +7 -0
  61. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.declapract.readme.md +8 -0
  62. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/actions/please-release/action.yml +469 -0
  63. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/actions/test-shards-setup/action.yml +68 -0
  64. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.declastruct.yml +198 -0
  65. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.install.yml +56 -0
  66. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.test.yml +380 -0
  67. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/.test.yml.declapract.ts +15 -0
  68. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/release.yml +32 -0
  69. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/review.yml +26 -0
  70. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/test.yml +25 -0
  71. package/dist/.test/assets/expo-fullusecase/declarations/practices/cicd-common/best-practice/.github/workflows/test.yml.declapract.ts +15 -0
  72. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/bad-practices/commitlint/package.json +5 -0
  73. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/bad-practices/commitlint/package.json.declapract.ts +19 -0
  74. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/.declapract.readme.md +5 -0
  75. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/.husky/check.commit.sh +7 -0
  76. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/.husky/commit-msg +8 -0
  77. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/commitlint.config.js +21 -0
  78. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/package.json +17 -0
  79. package/dist/.test/assets/expo-fullusecase/declarations/practices/conventional-commits/best-practice/package.json.declapract.ts +3 -0
  80. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/data-dir/.declapract.readme.md +10 -0
  81. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/data-dir/src/<star><star>/data/<star><star>/<star>.declapract.ts +19 -0
  82. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/domain-dir/.declapract.readme.md +8 -0
  83. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/domain-dir/src/<star><star>/domain/<star><star>/<star>.declapract.ts +59 -0
  84. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/logic-dir/.declapract.readme.md +8 -0
  85. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/logic-dir/src/<star><star>/logic/<star><star>/<star>.declapract.ts +19 -0
  86. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/model-dir/.declapract.readme.md +3 -0
  87. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/<star>.ts.declapract.ts +46 -0
  88. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/model/<star><star>/<star>.declapract.ts +16 -0
  89. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/nonpublished-modules-dir/src/__nonpublished_modules__/<star><star>/<star>.declapract.ts +17 -0
  90. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/old-import-paths/.declapract.readme.md +21 -0
  91. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/old-import-paths/src/<star><star>/<star>.ts.declapract.ts +67 -0
  92. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/services-dir/.declapract.readme.md +5 -0
  93. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/bad-practices/services-dir/src/<star><star>/services/<star><star>/<star>.declapract.ts +16 -0
  94. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/.declapract.readme.md +73 -0
  95. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/access/daos/<star><star>/<star>.ts.declapract.ts +4 -0
  96. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/access/sdks/<star><star>/<star>.ts.declapract.ts +4 -0
  97. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/access/svcs/<star><star>/<star>.ts.declapract.ts +4 -0
  98. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/contract/<star><star>/<star>.ts.declapract.ts +4 -0
  99. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/domain.objects/<star><star>/<star>.ts.declapract.ts +4 -0
  100. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/domain.operations/<star><star>/<star>.ts.declapract.ts +4 -0
  101. package/dist/.test/assets/expo-fullusecase/declarations/practices/directory-structure-src/best-practice/src/infra/<star><star>/<star>.ts.declapract.ts +4 -0
  102. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/bad-practices/schematic-joi-model/src/domain/<star><star>/<star>.ts.declapract.ts +16 -0
  103. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/bad-practices/simple-type-guards/.declapract.readme.md +1 -0
  104. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/bad-practices/simple-type-guards/package.json.declapract.ts +23 -0
  105. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/best-practice/package.json +6 -0
  106. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/best-practice/package.json.declapract.ts +3 -0
  107. package/dist/.test/assets/expo-fullusecase/declarations/practices/domain/best-practice/src/domain/objects/index.ts.declapract.ts +4 -0
  108. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/error-fns/package.json +5 -0
  109. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/error-fns/package.json.declapract.ts +23 -0
  110. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/error-fns/src/<star><star>/<star>.ts.declapract.ts +17 -0
  111. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/local-error-imports/src/<star><star>/<star>.ts.declapract.ts +85 -0
  112. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/bad-practices/own-implementation/src/utils/errors/UnexpectedCodePathError.ts.declapract.ts +3 -0
  113. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/best-practice/package.json +5 -0
  114. package/dist/.test/assets/expo-fullusecase/declarations/practices/errors/best-practice/package.json.declapract.ts +4 -0
  115. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/format-script/package.json.declapract.ts +26 -0
  116. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/.declapract.readme.md +6 -0
  117. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/.prettierignore +3 -0
  118. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/.prettierignore.declapract.ts +8 -0
  119. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/package.json +10 -0
  120. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/package.json.declapract.ts +35 -0
  121. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/prettier.config.js +10 -0
  122. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/bad-practices/prettier/prettier.config.js.declapract.ts +8 -0
  123. package/dist/.test/assets/expo-fullusecase/declarations/practices/format/best-practice/package.json.declapract.ts +32 -0
  124. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.declapract.integration.test.ts +950 -0
  125. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-with-rhachet-only/declapract.use.yml +6 -0
  126. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-with-rhachet-only/package.json +4 -0
  127. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-without-cache-ignores/declapract.use.yml +9 -0
  128. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/.test/assets/repo-without-cache-ignores/package.json +4 -0
  129. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/__snapshots__/.declapract.integration.test.ts.snap +51 -0
  130. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.declapract.readme.md +23 -0
  131. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitattributes +7 -0
  132. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitattributes.declapract.ts +159 -0
  133. package/dist/.test/assets/expo-fullusecase/declarations/practices/git/best-practice/.gitignore.declapract.ts +92 -0
  134. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/bad-practices/postinstall/package.json.declapract.ts +18 -0
  135. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.commit.sh +7 -0
  136. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.lockfile.sh +14 -0
  137. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.nvm.sh +4 -0
  138. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.timestamps.sh +48 -0
  139. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/check.yalc.sh +11 -0
  140. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/commit-msg +8 -0
  141. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/post-checkout +9 -0
  142. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/post-merge +8 -0
  143. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/post-rewrite +8 -0
  144. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/.husky/pre-commit +10 -0
  145. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/package.json +9 -0
  146. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/best-practice/package.json.declapract.ts +3 -0
  147. package/dist/.test/assets/expo-fullusecase/declarations/practices/husky/check.timestamps.play.declapract.integration.test.ts +148 -0
  148. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/biome-json-extension/biome.json.declapract.ts +7 -0
  149. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/depcheck-denylisted-ignores/.declapract.readme.md +8 -0
  150. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/depcheck-denylisted-ignores/.depcheckrc.yml.declapract.ts +60 -0
  151. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/eslint/.eslintrc.js +67 -0
  152. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/eslint/.eslintrc.js.declapract.ts +3 -0
  153. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/eslint/package.json.declapract.ts +51 -0
  154. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/tslint/package.json.declapract.ts +22 -0
  155. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/bad-practices/tslint/tslint.json.declapract.ts +3 -0
  156. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.declapract.readme.md +5 -0
  157. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.depcheckrc.yml +25 -0
  158. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.depcheckrc.yml.declapract.ts +41 -0
  159. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/.dpdmrc.yaml +9 -0
  160. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/biome.jsonc +103 -0
  161. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/package.json +17 -0
  162. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint/best-practice/package.json.declapract.ts +4 -0
  163. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react/best-practice/package.json +7 -0
  164. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react/best-practice/package.json.declapract.ts +4 -0
  165. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react-native/best-practice/.eslintrc.js +57 -0
  166. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react-native/best-practice/package.json +5 -0
  167. package/dist/.test/assets/expo-fullusecase/declarations/practices/lint-react-native/best-practice/package.json.declapract.ts +4 -0
  168. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  169. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  170. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.readme.md +10 -0
  171. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +76 -0
  172. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/.npmrc.declapract.integration.test.ts +165 -0
  173. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/.npmrc.declapract.ts +60 -0
  174. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/.nvmrc +1 -0
  175. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  176. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/package.json +15 -0
  177. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/package.json.declapract.ts +3 -0
  178. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/readme.md +1 -0
  179. package/dist/.test/assets/expo-fullusecase/declarations/practices/node/best-practice/readme.md.declapract.ts +3 -0
  180. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/.declapract.readme.md +5 -0
  181. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/.declapract.readme.md +1 -0
  182. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/__nonpublished_modules__/ahbode-standard-lambda-handler/<star><star>/<star>.ts.declapract.ts +3 -0
  183. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.integration.test.ts +1 -0
  184. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.integration.test.ts.declapract.ts +15 -0
  185. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.ts +1 -0
  186. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/ahbode-standard-lambda-handler/src/contract/handlers/<star>.ts.declapract.ts +13 -0
  187. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/.declapract.readme.md +1 -0
  188. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/src/__nonpublished_modules__/deep-omit/<star><star>/<star>.ts.declapract.ts +3 -0
  189. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/src/data/dao/<star><star>/<star>.integration.test.ts +1 -0
  190. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/deep-omit/src/data/dao/<star><star>/<star>.integration.test.ts.declapract.ts +18 -0
  191. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/simple-dynamodb-client/.declapract.readme.md +1 -0
  192. package/dist/.test/assets/expo-fullusecase/declarations/practices/nonpublished-modules/bad-practices/simple-dynamodb-client/src/__nonpublished_modules__/simple-dynamodb-client/<star><star>/<star>.ts.declapract.ts +3 -0
  193. package/dist/.test/assets/expo-fullusecase/declarations/practices/package-json-order/best-practice/.declapract.readme.md +3 -0
  194. package/dist/.test/assets/expo-fullusecase/declarations/practices/package-json-order/best-practice/package.json.declapract.ts +227 -0
  195. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.declapract.integration.test.ts +175 -0
  196. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  197. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  198. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  199. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +68 -0
  200. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  201. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  202. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  203. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  204. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  205. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  206. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +41 -0
  207. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  208. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/best-practice/package.json +3 -0
  209. package/dist/.test/assets/expo-fullusecase/declarations/practices/pnpm/best-practice/package.json.declapract.ts +15 -0
  210. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/deprecated-reviewers-variable/declapract.use.yml.declapract.ts +41 -0
  211. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/old-declastruct-resources-path/provision/github/declastruct.resources.ts.declapract.ts +7 -0
  212. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/import-existing-repo.sh +12 -0
  213. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/import-existing-repo.sh.declapract.ts +3 -0
  214. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/main.tf +20 -0
  215. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/main.tf.declapract.ts +3 -0
  216. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/versions.tf +9 -0
  217. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/environment/versions.tf.declapract.ts +3 -0
  218. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/product/repository.tf +74 -0
  219. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/bad-practices/terraform-github/provision/github/product/repository.tf.declapract.ts +3 -0
  220. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/.declapract.readme.md +7 -0
  221. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/package.json +7 -0
  222. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/package.json.declapract.ts +3 -0
  223. package/dist/.test/assets/expo-fullusecase/declarations/practices/provision-github/best-practice/provision/github.repo/resources.ts +229 -0
  224. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/deprecated-use-file/.declapract.readme.md +11 -0
  225. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/deprecated-use-file/rhachet.use.ts.declapract.ts +12 -0
  226. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/.declapract.readme.md +55 -0
  227. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/package.json +5 -0
  228. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/prod-deps/package.json.declapract.ts +47 -0
  229. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/<star><star>/<star>peer-review<star>.md.declapract.ts +16 -0
  230. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/peer/<star><star>/<star>.md.declapract.ts +16 -0
  231. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.declapract.readme.md +12 -0
  232. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.agent/keyrack.yml.declapract.ts +3 -0
  233. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.declapract.readme.md +32 -0
  234. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/.gitignore.declapract.ts +64 -0
  235. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/package.json +18 -0
  236. package/dist/.test/assets/expo-fullusecase/declarations/practices/rhachet/best-practice/package.json.declapract.ts +3 -0
  237. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  238. package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +2 -2
  239. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  240. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  241. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  242. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  243. package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/package.json +1 -3
  244. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  245. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-any/best-practice/package.json.shell-flags.declapract.integration.test.ts +129 -0
  246. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/.declapract.integration.test.ts +134 -0
  247. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  248. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +4 -0
  249. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +112 -0
  250. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  251. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  252. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.acceptance.config.ts +43 -0
  253. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  254. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.integration.config.ts +42 -0
  255. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.integration.env.ts +22 -0
  256. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.unit.config.ts +53 -0
  257. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/jest.unit.env.ts +18 -0
  258. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/package.json +9 -0
  259. package/dist/.test/assets/expo-fullusecase/declarations/practices/tests-expo/best-practice/package.json.declapract.ts +16 -0
  260. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  261. package/dist/{practices/typescript → .test/assets/expo-fullusecase/declarations/practices/typescript-any}/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +11 -0
  262. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  263. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/best-practice/package.json +8 -0
  264. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  265. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/package.json +6 -0
  266. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/package.json.declapract.integration.test.ts +30 -0
  267. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  268. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  269. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.integration.test.ts +32 -0
  270. package/dist/.test/assets/expo-fullusecase/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  271. package/dist/.test/assets/expo-fullusecase/declarations/useCases.yml +36 -0
  272. package/dist/.test/assets/expo-fullusecase/repo-greenfield/app.json +6 -0
  273. package/dist/.test/assets/expo-fullusecase/repo-greenfield/declapract.use.yml +24 -0
  274. package/dist/.test/assets/expo-fullusecase/repo-greenfield/package.json +7 -0
  275. package/dist/.test/assets/expo-migration/declarations/declapract.declare.yml +4 -0
  276. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +810 -0
  277. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +289 -0
  278. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.declapract.readme.md +27 -0
  279. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +127 -0
  280. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +76 -0
  281. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +27 -0
  282. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/.gitignore.declapract.ts +28 -0
  283. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/package.json +36 -0
  284. package/dist/.test/assets/expo-migration/declarations/practices/cicd-app-react-native-expo/best-practice/package.json.declapract.ts +3 -0
  285. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/data-dir/.declapract.readme.md +10 -0
  286. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/data-dir/src/<star><star>/data/<star><star>/<star>.declapract.ts +19 -0
  287. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/domain-dir/.declapract.readme.md +8 -0
  288. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/domain-dir/src/<star><star>/domain/<star><star>/<star>.declapract.ts +59 -0
  289. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/logic-dir/.declapract.readme.md +8 -0
  290. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/logic-dir/src/<star><star>/logic/<star><star>/<star>.declapract.ts +19 -0
  291. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/model-dir/.declapract.readme.md +3 -0
  292. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/<star>.ts.declapract.ts +46 -0
  293. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/model-dir/src/<star><star>/model/<star><star>/<star>.declapract.ts +16 -0
  294. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/nonpublished-modules-dir/src/__nonpublished_modules__/<star><star>/<star>.declapract.ts +17 -0
  295. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/old-import-paths/.declapract.readme.md +21 -0
  296. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/old-import-paths/src/<star><star>/<star>.ts.declapract.ts +67 -0
  297. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/services-dir/.declapract.readme.md +5 -0
  298. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/bad-practices/services-dir/src/<star><star>/services/<star><star>/<star>.declapract.ts +16 -0
  299. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/.declapract.readme.md +73 -0
  300. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/access/daos/<star><star>/<star>.ts.declapract.ts +4 -0
  301. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/access/sdks/<star><star>/<star>.ts.declapract.ts +4 -0
  302. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/access/svcs/<star><star>/<star>.ts.declapract.ts +4 -0
  303. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/contract/<star><star>/<star>.ts.declapract.ts +4 -0
  304. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/domain.objects/<star><star>/<star>.ts.declapract.ts +4 -0
  305. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/domain.operations/<star><star>/<star>.ts.declapract.ts +4 -0
  306. package/dist/.test/assets/expo-migration/declarations/practices/directory-structure-src/best-practice/src/infra/<star><star>/<star>.ts.declapract.ts +4 -0
  307. package/dist/.test/assets/expo-migration/declarations/practices/domain/bad-practices/schematic-joi-model/src/domain/<star><star>/<star>.ts.declapract.ts +16 -0
  308. package/dist/.test/assets/expo-migration/declarations/practices/domain/bad-practices/simple-type-guards/.declapract.readme.md +1 -0
  309. package/dist/.test/assets/expo-migration/declarations/practices/domain/bad-practices/simple-type-guards/package.json.declapract.ts +23 -0
  310. package/dist/.test/assets/expo-migration/declarations/practices/domain/best-practice/package.json +6 -0
  311. package/dist/.test/assets/expo-migration/declarations/practices/domain/best-practice/package.json.declapract.ts +3 -0
  312. package/dist/.test/assets/expo-migration/declarations/practices/domain/best-practice/src/domain/objects/index.ts.declapract.ts +4 -0
  313. package/dist/.test/assets/expo-migration/declarations/practices/git/.declapract.integration.test.ts +950 -0
  314. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-with-rhachet-only/declapract.use.yml +6 -0
  315. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-with-rhachet-only/package.json +4 -0
  316. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-without-cache-ignores/declapract.use.yml +9 -0
  317. package/dist/.test/assets/expo-migration/declarations/practices/git/.test/assets/repo-without-cache-ignores/package.json +4 -0
  318. package/dist/.test/assets/expo-migration/declarations/practices/git/__snapshots__/.declapract.integration.test.ts.snap +51 -0
  319. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.declapract.readme.md +23 -0
  320. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitattributes +7 -0
  321. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitattributes.declapract.ts +159 -0
  322. package/dist/.test/assets/expo-migration/declarations/practices/git/best-practice/.gitignore.declapract.ts +92 -0
  323. package/dist/.test/assets/expo-migration/declarations/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  324. package/dist/.test/assets/expo-migration/declarations/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  325. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/.declapract.readme.md +10 -0
  326. package/dist/.test/assets/expo-migration/declarations/practices/node/bad-practices/self-deps-not-link/package.json.declapract.ts +76 -0
  327. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/.npmrc.declapract.integration.test.ts +165 -0
  328. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/.npmrc.declapract.ts +60 -0
  329. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/.nvmrc +1 -0
  330. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  331. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/package.json +15 -0
  332. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/package.json.declapract.ts +3 -0
  333. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/readme.md +1 -0
  334. package/dist/.test/assets/expo-migration/declarations/practices/node/best-practice/readme.md.declapract.ts +3 -0
  335. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.declapract.integration.test.ts +175 -0
  336. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  337. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  338. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  339. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +68 -0
  340. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  341. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  342. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  343. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  344. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  345. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  346. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +41 -0
  347. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  348. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/best-practice/package.json +3 -0
  349. package/dist/.test/assets/expo-migration/declarations/practices/pnpm/best-practice/package.json.declapract.ts +15 -0
  350. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/deprecated-use-file/.declapract.readme.md +11 -0
  351. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/deprecated-use-file/rhachet.use.ts.declapract.ts +12 -0
  352. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/.declapract.readme.md +55 -0
  353. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/package.json +5 -0
  354. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/prod-deps/package.json.declapract.ts +47 -0
  355. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/<star><star>/<star>peer-review<star>.md.declapract.ts +16 -0
  356. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.behavior/<star><star>/.reviews/peer/<star><star>/<star>.md.declapract.ts +16 -0
  357. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/bad-practices/review-peer-artifacts/.declapract.readme.md +12 -0
  358. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.agent/keyrack.yml.declapract.ts +3 -0
  359. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.declapract.readme.md +32 -0
  360. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/.gitignore.declapract.ts +64 -0
  361. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/package.json +18 -0
  362. package/dist/.test/assets/expo-migration/declarations/practices/rhachet/best-practice/package.json.declapract.ts +3 -0
  363. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  364. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  365. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  366. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  367. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  368. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +63 -0
  369. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  370. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +1 -0
  371. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +1 -0
  372. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  373. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  374. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +5 -0
  375. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  376. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  377. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  378. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  379. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  380. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  381. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  382. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +44 -0
  383. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +22 -0
  384. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  385. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +18 -0
  386. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  387. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  388. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  389. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  390. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  391. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  392. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  393. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/.declapract.readme.md +45 -0
  394. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  395. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/package.json +17 -0
  396. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  397. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/package.json.shell-flags.declapract.integration.test.ts +129 -0
  398. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  399. package/dist/.test/assets/expo-migration/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  400. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/.declapract.integration.test.ts +134 -0
  401. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  402. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +4 -0
  403. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +112 -0
  404. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  405. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  406. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.acceptance.config.ts +43 -0
  407. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  408. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.config.ts +7 -0
  409. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.integration.config.ts +42 -0
  410. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.integration.env.ts +22 -0
  411. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.unit.config.ts +53 -0
  412. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/jest.unit.env.ts +18 -0
  413. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/package.json +9 -0
  414. package/dist/.test/assets/expo-migration/declarations/practices/tests-expo/best-practice/package.json.declapract.ts +16 -0
  415. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  416. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +97 -0
  417. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  418. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/best-practice/package.json +8 -0
  419. package/dist/.test/assets/expo-migration/declarations/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  420. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/package.json +6 -0
  421. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/package.json.declapract.integration.test.ts +30 -0
  422. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  423. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  424. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.integration.test.ts +32 -0
  425. package/dist/.test/assets/expo-migration/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  426. package/dist/.test/assets/expo-migration/declarations/useCases.yml +21 -0
  427. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/.github/workflows/.deploy-expo.yml +30 -0
  428. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/.husky/check.lockfile.sh +5 -0
  429. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/declapract.use.yml +24 -0
  430. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/jest.config.js +8 -0
  431. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/package-lock.json +7 -0
  432. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/package.json +22 -0
  433. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/pnpm-lock.yaml +5 -0
  434. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/src/data/dao/daoCustomer.ts +9 -0
  435. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/src/logic/customer/getCustomer.ts +25 -0
  436. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/src/logic/shared/formatCustomer.ts +8 -0
  437. package/dist/.test/assets/expo-migration/repo-app-protools-shaped/tsconfig.json +12 -0
  438. package/dist/.test/assets/expo-toolchain/declarations/declapract.declare.yml +4 -0
  439. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  440. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  441. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  442. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  443. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  444. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +63 -0
  445. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  446. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +1 -0
  447. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +1 -0
  448. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  449. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  450. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +5 -0
  451. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  452. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  453. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  454. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  455. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  456. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  457. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  458. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +44 -0
  459. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +22 -0
  460. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  461. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +18 -0
  462. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  463. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  464. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  465. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  466. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  467. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  468. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  469. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/.declapract.readme.md +45 -0
  470. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  471. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/package.json +17 -0
  472. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  473. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/package.json.shell-flags.declapract.integration.test.ts +129 -0
  474. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  475. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  476. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/.declapract.integration.test.ts +134 -0
  477. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  478. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +4 -0
  479. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +112 -0
  480. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  481. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  482. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.acceptance.config.ts +43 -0
  483. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  484. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.config.ts +7 -0
  485. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.integration.config.ts +42 -0
  486. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.integration.env.ts +22 -0
  487. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.unit.config.ts +53 -0
  488. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/jest.unit.env.ts +18 -0
  489. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/package.json +9 -0
  490. package/dist/.test/assets/expo-toolchain/declarations/practices/tests-expo/best-practice/package.json.declapract.ts +16 -0
  491. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  492. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +97 -0
  493. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  494. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/best-practice/package.json +8 -0
  495. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  496. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/package.json +6 -0
  497. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/package.json.declapract.integration.test.ts +30 -0
  498. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  499. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  500. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.integration.test.ts +32 -0
  501. package/dist/.test/assets/expo-toolchain/declarations/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  502. package/dist/.test/assets/expo-toolchain/declarations/useCases.yml +12 -0
  503. package/dist/.test/assets/pnpm/declarations/declapract.declare.yml +4 -0
  504. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.declapract.integration.test.ts +175 -0
  505. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  506. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  507. package/dist/.test/assets/pnpm/declarations/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  508. package/dist/.test/assets/pnpm/declarations/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +68 -0
  509. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  510. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  511. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  512. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  513. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  514. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  515. package/dist/.test/assets/pnpm/declarations/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +41 -0
  516. package/dist/.test/assets/pnpm/declarations/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  517. package/dist/.test/assets/pnpm/declarations/practices/pnpm/best-practice/package.json +3 -0
  518. package/dist/.test/assets/pnpm/declarations/practices/pnpm/best-practice/package.json.declapract.ts +15 -0
  519. package/dist/.test/assets/pnpm/declarations/useCases.yml +7 -0
  520. package/dist/__snapshots__/actionPins.declapract.integration.test.ts.snap +70 -0
  521. package/dist/actionPins.declapract.integration.test.ts +785 -0
  522. package/dist/practices/cache/.declapract.integration.test.ts +3 -3
  523. package/dist/practices/cicd-app-react-native-expo/.declapract.integration.test.ts +810 -0
  524. package/dist/practices/cicd-app-react-native-expo/__snapshots__/.declapract.integration.test.ts.snap +289 -0
  525. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/.deploy-expo.yml +24 -25
  526. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/deploy.yml +4 -0
  527. package/dist/practices/cicd-app-react-native-expo/best-practice/.github/workflows/test.yml +4 -0
  528. package/dist/practices/cicd-app-react-native-expo/best-practice/package.json +0 -7
  529. package/dist/practices/cicd-common/.declapract.integration.test.ts +572 -0
  530. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/.test.yml +19 -0
  531. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/consumer-owned.yml +21 -0
  532. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/.github/workflows/review.yml +26 -0
  533. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/declapract.use.yml +6 -0
  534. package/dist/practices/cicd-common/.test/assets/repo-with-unpinned-workflow/package.json +4 -0
  535. package/dist/practices/cicd-common/__snapshots__/.declapract.integration.test.ts.snap +550 -0
  536. package/dist/practices/cicd-common/best-practice/.declapract.readme.md +5 -0
  537. package/dist/practices/cicd-common/best-practice/.github/workflows/.declastruct.yml +12 -12
  538. package/dist/practices/cicd-common/best-practice/.github/workflows/.install.yml +5 -5
  539. package/dist/practices/cicd-common/best-practice/.github/workflows/.test.yml +25 -25
  540. package/dist/practices/cicd-common/best-practice/.github/workflows/release.yml +2 -2
  541. package/dist/practices/cicd-common/best-practice/.github/workflows/review.yml +1 -1
  542. package/dist/practices/cicd-package/best-practice/.github/workflows/.publish-npm.yml +3 -3
  543. package/dist/practices/cicd-package/best-practice/.github/workflows/provision.yml +4 -0
  544. package/dist/practices/cicd-service/best-practice/.github/workflows/.deploy-sls.yml +13 -13
  545. package/dist/practices/cicd-service/best-practice/.github/workflows/.sql-schema-control.yml +8 -8
  546. package/dist/practices/cicd-service/best-practice/.github/workflows/.terraform.yml +6 -6
  547. package/dist/practices/cicd-service/best-practice/.github/workflows/provision.yml +4 -0
  548. package/dist/practices/directory-structure-src/bad-practices/old-import-paths/.declapract.readme.md +10 -0
  549. package/dist/practices/directory-structure-src/bad-practices/old-import-paths/src/<star><star>/<star>.ts.declapract.ts +13 -1
  550. package/dist/practices/node/.test/assets/repo-expo-npmrc/declapract.use.yml +23 -0
  551. package/dist/practices/node/.test/assets/repo-expo-npmrc/package.json +4 -0
  552. package/dist/practices/node/best-practice/.npmrc.declapract.integration.test.ts +165 -0
  553. package/dist/practices/node/best-practice/.npmrc.declapract.ts +60 -0
  554. package/dist/practices/node/best-practice/__snapshots__/.npmrc.declapract.integration.test.ts.snap +24 -0
  555. package/dist/practices/pnpm/.declapract.integration.test.ts +175 -0
  556. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/.husky/check.lockfile.sh +10 -0
  557. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/declapract.use.yml +7 -0
  558. package/dist/practices/pnpm/.test/assets/repo-npm-to-pnpm/package.json +16 -0
  559. package/dist/practices/pnpm/__snapshots__/.declapract.integration.test.ts.snap +68 -0
  560. package/dist/practices/pnpm/bad-practices/husky-lockfile-check/.declapract.readme.md +17 -0
  561. package/dist/practices/pnpm/bad-practices/husky-lockfile-check/.husky/check.lockfile.sh.declapract.ts +28 -0
  562. package/dist/practices/pnpm/bad-practices/npm-overrides/.declapract.readme.md +20 -0
  563. package/dist/practices/pnpm/bad-practices/npm-overrides/package.json.declapract.ts +75 -0
  564. package/dist/practices/pnpm/bad-practices/package-lock-json/.declapract.readme.md +30 -0
  565. package/dist/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.integration.test.ts +105 -0
  566. package/dist/practices/pnpm/bad-practices/package-lock-json/package-lock.json.declapract.ts +40 -2
  567. package/dist/practices/pnpm/best-practice/.declapract.readme.md +22 -0
  568. package/dist/practices/pnpm/best-practice/package.json +1 -1
  569. package/dist/practices/pnpm/best-practice/package.json.declapract.ts +12 -0
  570. package/dist/practices/tests-any/bad-practices/javascript-config-files/.declapract.readme.md +1 -0
  571. package/dist/practices/tests-any/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts +17 -0
  572. package/dist/practices/tests-any/bad-practices/mocks/.declapract.readme.md +8 -0
  573. package/dist/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.js +3 -0
  574. package/dist/practices/tests-any/bad-practices/mocks/<star><star>/__mock__/<star>.ts +3 -0
  575. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.integration.test.ts +63 -0
  576. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.declapract.readme.md +22 -0
  577. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +1 -0
  578. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +1 -0
  579. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +1 -0
  580. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +4 -0
  581. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +5 -0
  582. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/package.json +4 -0
  583. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +19 -0
  584. package/dist/practices/tests-any/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +19 -0
  585. package/dist/practices/tests-any/bad-practices/old-acceptance-import-paths/.declapract.readme.md +31 -0
  586. package/dist/practices/tests-any/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +25 -0
  587. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts +3 -0
  588. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts +3 -0
  589. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +44 -0
  590. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +22 -0
  591. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts +3 -0
  592. package/dist/practices/tests-any/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +18 -0
  593. package/dist/practices/tests-any/bad-practices/old-extension-pattern/.declapract.readme.md +3 -0
  594. package/dist/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +11 -0
  595. package/dist/practices/tests-any/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +11 -0
  596. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +8 -0
  597. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +27 -0
  598. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +17 -0
  599. package/dist/practices/tests-any/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +17 -0
  600. package/dist/practices/tests-any/best-practice/.declapract.readme.md +45 -0
  601. package/dist/practices/tests-any/best-practice/.declapract.todo.md +3 -0
  602. package/dist/practices/tests-any/best-practice/package.json +17 -0
  603. package/dist/practices/tests-any/best-practice/package.json.declapract.ts +3 -0
  604. package/dist/practices/tests-any/best-practice/package.json.shell-flags.declapract.integration.test.ts +129 -0
  605. package/dist/practices/tests-any/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +3 -0
  606. package/dist/practices/tests-any/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +3 -0
  607. package/dist/practices/tests-expo/.declapract.integration.test.ts +134 -0
  608. package/dist/practices/tests-expo/.test/assets/repo-expo-greenfield/declapract.use.yml +6 -0
  609. package/dist/practices/tests-expo/.test/assets/repo-expo-greenfield/package.json +4 -0
  610. package/dist/practices/tests-expo/__snapshots__/.declapract.integration.test.ts.snap +112 -0
  611. package/dist/practices/tests-expo/bad-practices/inline-jest-config/.declapract.readme.md +22 -0
  612. package/dist/practices/tests-expo/bad-practices/inline-jest-config/package.json.declapract.ts +36 -0
  613. package/dist/practices/tests-expo/best-practice/jest.acceptance.config.ts +43 -0
  614. package/dist/practices/tests-expo/best-practice/jest.acceptance.env.ts +15 -0
  615. package/dist/practices/tests-expo/best-practice/jest.config.ts +7 -0
  616. package/dist/practices/tests-expo/best-practice/jest.integration.config.ts +42 -0
  617. package/dist/practices/tests-expo/best-practice/jest.integration.env.ts +22 -0
  618. package/dist/practices/tests-expo/best-practice/jest.unit.config.ts +53 -0
  619. package/dist/practices/tests-expo/best-practice/jest.unit.env.ts +18 -0
  620. package/dist/practices/tests-expo/best-practice/package.json +9 -0
  621. package/dist/practices/tests-expo/best-practice/package.json.declapract.ts +16 -0
  622. package/dist/practices/tests-node/bad-practices/babel/babel.config.js.declapract.ts +3 -0
  623. package/dist/practices/tests-node/bad-practices/deprecated-test-deps/package.json.declapract.ts +50 -0
  624. package/dist/practices/tests-node/best-practice/jest.config.ts +7 -0
  625. package/dist/practices/tests-node/best-practice/jest.unit.env.ts.declapract.ts +39 -0
  626. package/dist/practices/tests-node/best-practice/package.json +6 -0
  627. package/dist/practices/tests-node/best-practice/package.json.declapract.ts +10 -0
  628. package/dist/practices/typescript-any/bad-practices/relative-imports/.declapract.readme.md +45 -0
  629. package/dist/practices/typescript-any/bad-practices/relative-imports/src/<star><star>/<star>.ts.declapract.ts +97 -0
  630. package/dist/practices/typescript-any/best-practice/.declapract.readme.md +17 -0
  631. package/dist/practices/typescript-any/best-practice/package.json +8 -0
  632. package/dist/practices/typescript-any/best-practice/package.json.declapract.ts +11 -0
  633. package/dist/practices/typescript-expo/best-practice/package.json +6 -0
  634. package/dist/practices/typescript-expo/best-practice/package.json.declapract.integration.test.ts +30 -0
  635. package/dist/practices/typescript-expo/best-practice/package.json.declapract.ts +12 -0
  636. package/dist/practices/typescript-expo/best-practice/tsconfig.json +14 -0
  637. package/dist/practices/typescript-expo/best-practice/tsconfig.json.declapract.integration.test.ts +32 -0
  638. package/dist/practices/typescript-expo/best-practice/tsconfig.json.declapract.ts +12 -0
  639. package/dist/practices/{typescript → typescript-node}/best-practice/package.json +1 -3
  640. package/dist/practices/typescript-node/best-practice/package.json.declapract.ts +25 -0
  641. package/dist/practices/typescript-node/best-practice/tsconfig.json.declapract.ts +3 -0
  642. package/dist/useCases.yml +36 -16
  643. package/dist/utils/defineExpectedNpmrcContents.ts +103 -0
  644. package/dist/utils/getAllPracticesForUsecase.ts +53 -0
  645. package/dist/utils/isDeferredToDeprecatedDirMove.ts +37 -0
  646. package/package.json +4 -4
  647. package/dist/practices/tests/bad-practices/deprecated-test-deps/package.json.declapract.ts +0 -39
  648. package/dist/practices/tests/best-practice/jest.unit.env.ts.declapract.ts +0 -35
  649. package/dist/practices/typescript/bad-practices/relative-imports/.declapract.readme.md +0 -27
  650. package/dist/practices/typescript/best-practice/.declapract.readme.md +0 -15
  651. package/dist/practices/typescript/best-practice/package.json.declapract.ts +0 -18
  652. /package/dist/{practices/tests → .test/assets/cache/declarations/practices/cache}/best-practice/package.json.declapract.ts +0 -0
  653. /package/dist/{practices/typescript/best-practice/tsconfig.json.declapract.ts → .test/assets/expo-fullusecase/declarations/practices/cache/best-practice/package.json.declapract.ts} +0 -0
  654. /package/dist/{practices/tests/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir → .test/assets/expo-fullusecase/declarations/practices/cicd-common/.test/assets/repo-with-unpinned-workflow}/package.json +0 -0
  655. /package/dist/{practices/tests/bad-practices/babel/babel.config.js.declapract.ts → .test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/ci-on-commit.yml.declapract.ts} +0 -0
  656. /package/dist/{practices/tests/bad-practices/javascript-config-files/jest.<star>.js.declapract.ts → .test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/ci_on_commit.yml.declapract.ts} +0 -0
  657. /package/dist/{practices/tests/bad-practices/old-acceptance-test-utils-3/blackbox/_utils/environment.ts.declapract.ts → .test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/pr-release-on-main.yml.declapract.ts} +0 -0
  658. /package/dist/{practices/tests/bad-practices/old-acceptance-test-utils/blackbox/_utils/getDataFromLastOpenBracketAtStartOfLine.ts.declapract.ts → .test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/test-on-commit.yml.declapract.ts} +0 -0
  659. /package/dist/{practices/tests/bad-practices/old-acceptance-test-utils/blackbox/_utils/invokeLambda.ts.declapract.ts → .test/assets/expo-fullusecase/declarations/practices/cicd-common/bad-practices/old-names/.github/workflows/test_on_commit.yml.declapract.ts} +0 -0
  660. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/javascript-config-files/.declapract.readme.md +0 -0
  661. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/mocks/.declapract.readme.md +0 -0
  662. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/mocks/<star><star>/__mock__/<star>.js +0 -0
  663. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/mocks/<star><star>/__mock__/<star>.ts +0 -0
  664. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.declapract.readme.md +0 -0
  665. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.agent/config.yml +0 -0
  666. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/.test/assets/.rhachet/manifest.json +0 -0
  667. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/accept.blackbox/somefile.ts +0 -0
  668. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.declare.yml +0 -0
  669. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir/declapract.use.yml +0 -0
  670. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/accept.blackbox/<star><star>/<star>.declapract.ts +0 -0
  671. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-dir-location/acceptance/<star><star>/<star>.declapract.ts +0 -0
  672. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-import-paths/.declapract.readme.md +0 -0
  673. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-import-paths/<star><star>/<star>.ts.declapract.ts +0 -0
  674. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-test-utils/blackbox/lambdas/<star>.ts.declapract.ts +0 -0
  675. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-test-utils-2/blackbox/lambdas/<star>.ts.declapract.ts +0 -0
  676. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-acceptance-test-utils-3/blackbox/lambdas/<star>.ts.declapract.ts +0 -0
  677. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-extension-pattern/.declapract.readme.md +0 -0
  678. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-extension-pattern/<star><star>/<star>.test.acceptance.ts.declapract.ts +0 -0
  679. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-extension-pattern/<star><star>/<star>.test.integration.ts.declapract.ts +0 -0
  680. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/.declapract.readme.md +0 -0
  681. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/<star><star>/<star>.ts.declapract.ts +0 -0
  682. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_assets__/<star><star>/<star>.declapract.ts +0 -0
  683. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/bad-practices/old-test-utils-and-assets-location/<star><star>/__test_utils__/<star><star>/<star>.declapract.ts +0 -0
  684. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/.declapract.readme.md +0 -0
  685. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/.declapract.todo.md +0 -0
  686. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/src/<star><star>/<star>.integration.test.ts.declapract.ts +0 -0
  687. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-any}/best-practice/src/<star><star>/<star>.test.ts.declapract.ts +0 -0
  688. /package/dist/{practices/tests → .test/assets/expo-fullusecase/declarations/practices/tests-expo}/best-practice/jest.config.ts +0 -0
  689. /package/dist/practices/{tests → tests-node}/bad-practices/babel/babel.config.js +0 -0
  690. /package/dist/practices/{tests → tests-node}/bad-practices/deprecated-test-deps/.declapract.readme.md +0 -0
  691. /package/dist/practices/{tests → tests-node}/bad-practices/deprecated-test-deps/package.json +0 -0
  692. /package/dist/practices/{tests → tests-node}/best-practice/jest.acceptance.config.ts +0 -0
  693. /package/dist/practices/{tests → tests-node}/best-practice/jest.acceptance.env.ts +0 -0
  694. /package/dist/practices/{tests → tests-node}/best-practice/jest.integration.config.ts +0 -0
  695. /package/dist/practices/{tests → tests-node}/best-practice/jest.integration.env.ts +0 -0
  696. /package/dist/practices/{tests → tests-node}/best-practice/jest.unit.config.ts +0 -0
  697. /package/dist/practices/{tests → tests-node}/best-practice/jest.unit.env.ts +0 -0
  698. /package/dist/practices/{typescript → typescript-node}/best-practice/tsconfig.build.json +0 -0
  699. /package/dist/practices/{typescript → typescript-node}/best-practice/tsconfig.json +0 -0
@@ -0,0 +1,55 @@
1
+ # rhachet prod-deps bad practice
2
+
3
+ ## what
4
+
5
+ detects `rhachet` and `rhachet-roles-*` packages listed as production dependencies and moves them to devDependencies.
6
+
7
+ ## why
8
+
9
+ rhachet packages are build-time / development tooling only. they should never be shipped as production dependencies because:
10
+
11
+ 1. **no runtime usage** — rhachet is used for agent role management, skill linking, and development workflows. none of this runs at runtime in production.
12
+
13
+ 2. **bloated bundles** — including rhachet in prod deps unnecessarily inflates `node_modules` for deployed applications.
14
+
15
+ 3. **dependency hygiene** — packages that are only used during development belong in `devDependencies`. at worst, if downstream packages need them, they should be declared as `peerDependencies`.
16
+
17
+ ## packages covered
18
+
19
+ - `rhachet`
20
+ - `rhachet-roles-*` (e.g., `rhachet-roles-ehmpathy`, `rhachet-roles-bhrain`, `rhachet-roles-bhuild`)
21
+
22
+ ## fix
23
+
24
+ moves all matching packages from `dependencies` to `devDependencies`, preserving their versions.
25
+
26
+ ## correct placement
27
+
28
+ ```json
29
+ {
30
+ "devDependencies": {
31
+ "rhachet": "^1.19.0",
32
+ "rhachet-roles-ehmpathy": "^1.15.0"
33
+ }
34
+ }
35
+ ```
36
+
37
+ or, if downstream packages need to use them:
38
+
39
+ ```json
40
+ {
41
+ "peerDependencies": {
42
+ "rhachet": ">=1.0.0"
43
+ }
44
+ }
45
+ ```
46
+
47
+ never:
48
+
49
+ ```json
50
+ {
51
+ "dependencies": {
52
+ "rhachet": "^1.19.0"
53
+ }
54
+ }
55
+ ```
@@ -0,0 +1,5 @@
1
+ {
2
+ "dependencies": {
3
+ "rhachet": "@declapract{check.minVersion('0.0.0')}"
4
+ }
5
+ }
@@ -0,0 +1,47 @@
1
+ import type { FileCheckFunction, FileFixFunction } from 'declapract';
2
+
3
+ /**
4
+ * .what = detects rhachet and rhachet-roles-* packages in production dependencies
5
+ * .why = these packages should be devDependencies or peerDependencies, never direct prod deps
6
+ */
7
+
8
+ const rhachetPackagePattern = /^rhachet(-roles-.*)?$/;
9
+
10
+ export const check: FileCheckFunction = (contents) => {
11
+ if (!contents) throw new Error('does not match bad practice');
12
+
13
+ const packageJSON = JSON.parse(contents);
14
+ const prodDeps = Object.keys(packageJSON.dependencies ?? {});
15
+
16
+ // check if any rhachet package is in prod dependencies
17
+ const rhachetInProdDeps = prodDeps.some((dep) =>
18
+ rhachetPackagePattern.test(dep),
19
+ );
20
+
21
+ if (rhachetInProdDeps) return; // matches bad practice
22
+ throw new Error('does not match bad practice');
23
+ };
24
+
25
+ export const fix: FileFixFunction = (contents) => {
26
+ if (!contents) return { contents };
27
+
28
+ const packageJSON = JSON.parse(contents);
29
+ const prodDeps = { ...packageJSON.dependencies };
30
+ const devDeps = { ...packageJSON.devDependencies };
31
+
32
+ // find all rhachet packages in prod deps and move them to dev deps
33
+ for (const dep of Object.keys(prodDeps)) {
34
+ if (rhachetPackagePattern.test(dep)) {
35
+ devDeps[dep] = prodDeps[dep];
36
+ delete prodDeps[dep];
37
+ }
38
+ }
39
+
40
+ const fixedPackageJSON = {
41
+ ...packageJSON,
42
+ dependencies: Object.keys(prodDeps).length > 0 ? prodDeps : undefined,
43
+ devDependencies: Object.keys(devDeps).length > 0 ? devDeps : undefined,
44
+ };
45
+
46
+ return { contents: JSON.stringify(fixedPackageJSON, null, 2) };
47
+ };
@@ -0,0 +1,16 @@
1
+ import { FileCheckType, type FileFixFunction } from 'declapract';
2
+
3
+ /**
4
+ * .what = detects committed peer-review artifacts under .behavior/**\/.reviews
5
+ * .why = peer-review files are noise; far less important than the root behavior
6
+ * files, so they should not be tracked in git
7
+ *
8
+ * .note = matches the old flat shape, where peer-review files sit directly in
9
+ * .reviews with `peer-review` in the filename
10
+ */
11
+
12
+ export const check = FileCheckType.EXISTS;
13
+
14
+ export const fix: FileFixFunction = () => {
15
+ return { contents: null }; // delete the file
16
+ };
@@ -0,0 +1,16 @@
1
+ import { FileCheckType, type FileFixFunction } from 'declapract';
2
+
3
+ /**
4
+ * .what = detects committed peer-review artifacts under .behavior/**\/.reviews/peer
5
+ * .why = peer-review files are noise; far less important than the root behavior
6
+ * files, so they should not be tracked in git
7
+ *
8
+ * .note = matches the new shape, where all peer-review files live under a
9
+ * dedicated `peer` directory
10
+ */
11
+
12
+ export const check = FileCheckType.EXISTS;
13
+
14
+ export const fix: FileFixFunction = () => {
15
+ return { contents: null }; // delete the file
16
+ };
@@ -0,0 +1,12 @@
1
+ peer review artifacts should not be committed to git
2
+
3
+ these files live under `.behavior/**/.reviews/` and capture peer-review feedback
4
+ from the behavior build lifecycle. they are noise for the most part — far less
5
+ important than the root behavior files themselves.
6
+
7
+ two path shapes are removed:
8
+
9
+ - old (flat): `.behavior/**/.reviews/**/*peer-review*.md`
10
+ - new (peer dir): `.behavior/**/.reviews/peer/**/*.md`
11
+
12
+ self-reviews and other non-peer artifacts under `.reviews/` are intentionally left alone.
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.EXISTS;
@@ -0,0 +1,32 @@
1
+ rhachet boots roles, and role boots write scratch state into `.agent/.cache/`
2
+
3
+ so this practice declares the gitignore line for that dir — the practice that creates the scratch
4
+ declares its ignore, rather than a neighbor practice a repo may not have taken.
5
+
6
+ 📖 several practices declare this same `.gitignore`. the contract they share — one shared
7
+ algorithm, the ordered tail, what a new declarer owes — is stated once at
8
+ `.agent/repo=.this/role=any/briefs/howto.declare-the-repo-gitignore.md`. read that before you add
9
+ a line here.
10
+
11
+ ## it declares only `.agent/.cache/`, not `.cache/`
12
+
13
+ `.cache/` is generic tool scratch and belongs to the `git` practice. a practice declares the
14
+ ignore for the dirs it creates.
15
+
16
+ ⚠️ **"rhachet owns it" does not mean "git should drop it".** the `git` practice declares
17
+ `.agent/.cache/` too, and that line stays: `app-react-native-expo` (`src/useCases.yml`) takes
18
+ `git` **without** `rhachet`, so for those repos git's line is the only explicit source of the
19
+ ignore.
20
+
21
+ ## the end-to-end proof lives under the git practice
22
+
23
+ `src/practices/git/.declapract.integration.test.ts` → `[case2] a repo whose use case has rhachet
24
+ but NOT git`.
25
+
26
+ that is the scenario which justifies this declaration at all. it clones a demo repo whose use case
27
+ omits `git`, applies **this** practice alone, and asserts the agent cache path is ignored with no
28
+ help from git, that `.cache/` is correctly absent, that the negation is honored by git itself, and
29
+ that a re-apply changes zero bytes.
30
+
31
+ it sits there because one temp repo must hold both declarations to prove they agree. this pointer
32
+ exists so a reader in `src/practices/rhachet/` can find it.
@@ -0,0 +1,64 @@
1
+ import type { FileCheckFunction, FileFixFunction } from 'declapract';
2
+ import expect from 'expect';
3
+
4
+ import { defineExpectedGitignoreContents } from '../../../utils/defineExpectedGitignoreContents';
5
+
6
+ /**
7
+ * ignores that this practice itself owns
8
+ *
9
+ * .why = rhachet boots roles which write scratch state into `.agent/.cache/`. the
10
+ * practice that creates the dir declares the ignore for it, so a repo that
11
+ * takes `rhachet` is never left with cruft it did not ask for:
12
+ * - a worktree teardown is not snagged by untracked scratch
13
+ * - a hurried `git add .` cannot sweep a debug file that holds a secret
14
+ *
15
+ * .note = `.cache/` is generic tool scratch and belongs to the `git` practice, not
16
+ * here. a practice declares the ignore for the dirs IT creates, and no more.
17
+ *
18
+ * .note = this list is NOT sorted here, and that is deliberate. `defineExpectedGitignoreContents`
19
+ * sorts the union of these lines with the repo's own, so a `.sort()` at this site would
20
+ * be a second sort that changes no output -- while it mutates a module-cached array in
21
+ * place. `readonly` forbids that mutation outright rather than merely discourages it
22
+ * (`rule.prefer.prevent-over-correct`).
23
+ */
24
+ const ignoresSortable: readonly string[] = ['.agent/.cache/'];
25
+
26
+ /**
27
+ * .what = emits the `.gitignore` this practice declares, given the repo's extant one
28
+ * .why = the algorithm AND the ordered tail are imported, not declared here, because
29
+ * `src/practices/git/best-practice/.gitignore.declapract.ts` declares this same
30
+ * repo-root file. two declarers converge only while both emit an identical tail
31
+ * by an identical algorithm -- so they share one, and the drift that would break
32
+ * convergence cannot be written.
33
+ * .note = this file declares only `ignoresSortable`, which is the part the two
34
+ * practices legitimately DIFFER on: rhachet owns `.agent/.cache/`, git owns
35
+ * the generic scratch. the shared part is shared; the owned part is owned.
36
+ */
37
+ const defineExpectedContents = (contents: string | null): string =>
38
+ defineExpectedGitignoreContents({ contents, ignoresSortable });
39
+
40
+ /**
41
+ * .what = throws when the repo's `.gitignore` does not carry what this practice declares
42
+ * .why = `check` is the GATE: declapract runs `fix` for a file only when `check`
43
+ * rejects it. so this is what makes an upgrade actually deliver
44
+ * `.agent/.cache/` to a repo that lacks it.
45
+ * .note = best-practice semantics are inverted from what a reader expects -- a THROW
46
+ * means the practice is violated, a return means it is followed. see
47
+ * `.agent/repo=.this/role=any/briefs/declapract-check-semantics.md`.
48
+ */
49
+ export const check: FileCheckFunction = (contents) => {
50
+ expect(contents).toEqual(defineExpectedContents(contents));
51
+ };
52
+
53
+ /**
54
+ * .what = unions this practice's declared ignores into the repo's `.gitignore`
55
+ * .why = a findsert by construction -- a line already present stays present once,
56
+ * and a repo's own custom ignores survive, because the file's extant lines
57
+ * are unioned in before the sort.
58
+ * .note = a fixed point: `fix(fix(x)) === fix(x)`, and `check` passes on its own
59
+ * output -- without both, `declapract fix` would rewrite this file forever.
60
+ * clamped by `.gitignore.declapract.test.ts` -> `idempotency`.
61
+ */
62
+ export const fix: FileFixFunction = (contents) => {
63
+ return { contents: defineExpectedContents(contents) };
64
+ };
@@ -0,0 +1,18 @@
1
+ {
2
+ "devDependencies": {
3
+ "rhachet": "@declapract{check.minVersion('1.43.1')}",
4
+ "rhachet-brains-anthropic": "@declapract{check.minVersion('0.4.1')}",
5
+ "rhachet-brains-fireworksai": "@declapract{check.minVersion('0.1.3')}",
6
+ "rhachet-brains-xai": "@declapract{check.minVersion('0.3.3')}",
7
+ "rhachet-roles-bhrain": "@declapract{check.minVersion('0.29.24')}",
8
+ "rhachet-roles-bhrowser": "@declapract{check.minVersion('0.1.0')}",
9
+ "rhachet-roles-bhuild": "@declapract{check.minVersion('0.21.22')}",
10
+ "rhachet-roles-ehmpathy": "@declapract{check.minVersion('1.38.1')}",
11
+ "rhachet-roles-ghlitch": "@declapract{check.minVersion('0.2.5')}",
12
+ "rhachet-roles-rhachet": "@declapract{check.minVersion('0.1.7')}"
13
+ },
14
+ "scripts": {
15
+ "prepare:rhachet": "rhachet init --keys --hooks --roles mechanic behaver driver reviewer librarian ergonomist architect dispatcher learner operator observer deployer playwright enroller",
16
+ "upgrade:rhachet": "rhachet upgrade"
17
+ }
18
+ }
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.CONTAINS;
@@ -0,0 +1,17 @@
1
+ import { FileCheckType, type FileFixFunction } from 'declapract';
2
+
3
+ export const check = FileCheckType.EXISTS;
4
+
5
+ /**
6
+ * .what = deletes a stale `.js` jest config file
7
+ * .why = the go-forward jest config is `.ts` (see .declapract.readme.md). a leftover
8
+ * `.js` jest config (e.g. a jsdom `jest.config.js` or a `jest.unit.config.js`)
9
+ * is redundant and fights the shipped `.ts` config — the dual-source hazard the
10
+ * app-protools-native migration must reconcile. drop the redundant `.js`; the
11
+ * best-practice supplies the canonical `.ts` config in the same pass.
12
+ * .note = `{ contents: null }` removes the file. idempotent: once gone, the EXISTS
13
+ * check no longer detects it, so a re-run is a no-op.
14
+ */
15
+ export const fix: FileFixFunction = () => {
16
+ return { contents: null };
17
+ };
@@ -12,7 +12,7 @@ describe('old-acceptance-dir-location', () => {
12
12
  given('[case1] accept.blackbox/ with various file types', () => {
13
13
  const tempDir = genTempDir({
14
14
  slug: 'declapract-old-acceptance-dir',
15
- clone: './src/practices/tests/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir',
15
+ clone: './src/practices/tests-any/bad-practices/old-acceptance-dir-location/.test/assets/demo-repo-with-accept-blackbox-dir',
16
16
  symlink: [{ at: 'src', to: 'src' }],
17
17
  });
18
18
 
@@ -31,7 +31,7 @@ describe('old-acceptance-dir-location', () => {
31
31
  useThen('fix is applied', async () => {
32
32
  await executeApply({
33
33
  config: path.join(tempDir, 'declapract.use.yml'),
34
- practice: 'tests',
34
+ practice: 'tests-any',
35
35
  });
36
36
  });
37
37
 
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.EXISTS;
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.EXISTS;
@@ -5,9 +5,7 @@
5
5
  "jest": "@declapract{check.minVersion('30.2.0')}",
6
6
  "esbuild-register": "@declapract{check.minVersion('3.6.0')}",
7
7
  "test-fns": "@declapract{check.minVersion('1.15.8')}",
8
- "tsx": "@declapract{check.minVersion('4.20.6')}",
9
- "@swc/core": "@declapract{check.minVersion('1.15.3')}",
10
- "@swc/jest": "@declapract{check.minVersion('0.2.39')}"
8
+ "tsx": "@declapract{check.minVersion('4.20.6')}"
11
9
  },
12
10
  "scripts": {
13
11
  "test:unit": "set -eu && jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -n \"${CI:-}\" ] && echo '--ci') $([ \"${THOROUGH:-}\" != \"true\" ] && echo '--changedSince=main') $([ \"${RESNAP:-}\" = \"true\" ] && echo '--updateSnapshot')",
@@ -0,0 +1,3 @@
1
+ import { FileCheckType } from 'declapract';
2
+
3
+ export const check = FileCheckType.CONTAINS;
@@ -0,0 +1,129 @@
1
+ import { execSync } from 'child_process';
2
+
3
+ /**
4
+ * Tests the shell flag expressions used in package.json test commands.
5
+ *
6
+ * These tests verify that env vars like RESNAP and THOROUGH produce
7
+ * the correct flags when passed to jest via the package.json commands.
8
+ *
9
+ * We use a stand-in jest function that echoes the arguments it receives,
10
+ * so we can verify what flags would actually be passed.
11
+ *
12
+ * .why integration = this drives a real `bash -c` via execSync — a child-process
13
+ * boundary. per rule.forbid.unit.remote-boundaries a `.test.ts` (unit) may not
14
+ * cross a process boundary, so the shell-flag behavior is proven at the
15
+ * integration grain, where a real shell is the point of the test.
16
+ */
17
+ describe('package.json shell flag expressions', () => {
18
+ /**
19
+ * Evaluates a shell command with given env vars and returns the arguments
20
+ * that would be passed to jest (everything after the config flag).
21
+ */
22
+ const getJestFlags = (
23
+ command: string,
24
+ env: Record<string, string | undefined>,
25
+ ): string[] => {
26
+ // .note = deliberate mutation — cleanEnv is built up across two scoped local loops (base env
27
+ // minus the flag vars, then the test overlay); a single-threaded local zone
28
+ // (rule.require.immutable-vars sanctions in-place mutation with this note).
29
+ const cleanEnv: Record<string, string> = {};
30
+ for (const [key, value] of Object.entries(process.env)) {
31
+ if (!['CI', 'THOROUGH', 'RESNAP'].includes(key) && value !== undefined) {
32
+ cleanEnv[key] = value;
33
+ }
34
+ }
35
+ // Overlay the test env vars (undefined means unset)
36
+ for (const [key, value] of Object.entries(env)) {
37
+ if (value !== undefined) {
38
+ cleanEnv[key] = value;
39
+ }
40
+ }
41
+
42
+ // Run the command with jest replaced by echo to capture args
43
+ const result = execSync(
44
+ `bash -c 'jest() { echo "JEST_ARGS: $*"; }; ${command}'`,
45
+ {
46
+ env: cleanEnv,
47
+ encoding: 'utf-8',
48
+ stdio: ['pipe', 'pipe', 'pipe'],
49
+ // bound the call so a stuck shell fails fast rather than hangs the suite;
50
+ // the command is a trivial echo, so 5s is generous
51
+ timeout: 5000,
52
+ },
53
+ );
54
+
55
+ // Extract the jest args from output
56
+ const match = result.match(/JEST_ARGS: (.*)/);
57
+ if (!match) return [];
58
+ return match[1].split(/\s+/).filter(Boolean);
59
+ };
60
+
61
+ // The test:unit command from package.json best-practice
62
+ const testUnitCommand = `set -eu && jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -n "\${CI:-}" ] && echo '--ci') $([ "\${THOROUGH:-}" != "true" ] && echo '--changedSince=main') $([ "\${RESNAP:-}" = "true" ] && echo '--updateSnapshot')`;
63
+
64
+ describe('RESNAP flag', () => {
65
+ it('should pass --updateSnapshot when RESNAP=true', () => {
66
+ const flags = getJestFlags(testUnitCommand, { RESNAP: 'true' });
67
+ expect(flags).toContain('--updateSnapshot');
68
+ });
69
+
70
+ it('should not pass --updateSnapshot when RESNAP is unset', () => {
71
+ const flags = getJestFlags(testUnitCommand, {});
72
+ expect(flags).not.toContain('--updateSnapshot');
73
+ });
74
+
75
+ it('should not pass --updateSnapshot when RESNAP=false', () => {
76
+ const flags = getJestFlags(testUnitCommand, { RESNAP: 'false' });
77
+ expect(flags).not.toContain('--updateSnapshot');
78
+ });
79
+
80
+ it('should not pass --updateSnapshot when RESNAP is empty string', () => {
81
+ const flags = getJestFlags(testUnitCommand, { RESNAP: '' });
82
+ expect(flags).not.toContain('--updateSnapshot');
83
+ });
84
+
85
+ it('should not pass --updateSnapshot when RESNAP=0', () => {
86
+ const flags = getJestFlags(testUnitCommand, { RESNAP: '0' });
87
+ expect(flags).not.toContain('--updateSnapshot');
88
+ });
89
+ });
90
+
91
+ describe('THOROUGH flag', () => {
92
+ it('should pass --changedSince=main when THOROUGH is unset (run only changed)', () => {
93
+ const flags = getJestFlags(testUnitCommand, {});
94
+ expect(flags).toContain('--changedSince=main');
95
+ });
96
+
97
+ it('should pass --changedSince=main when THOROUGH=false', () => {
98
+ const flags = getJestFlags(testUnitCommand, { THOROUGH: 'false' });
99
+ expect(flags).toContain('--changedSince=main');
100
+ });
101
+
102
+ it('should pass --changedSince=main when THOROUGH is empty string', () => {
103
+ const flags = getJestFlags(testUnitCommand, { THOROUGH: '' });
104
+ expect(flags).toContain('--changedSince=main');
105
+ });
106
+
107
+ it('should not pass --changedSince=main when THOROUGH=true (run all tests)', () => {
108
+ const flags = getJestFlags(testUnitCommand, { THOROUGH: 'true' });
109
+ expect(flags).not.toContain('--changedSince=main');
110
+ });
111
+ });
112
+
113
+ describe('CI flag', () => {
114
+ it('should pass --ci when CI=true', () => {
115
+ const flags = getJestFlags(testUnitCommand, { CI: 'true' });
116
+ expect(flags).toContain('--ci');
117
+ });
118
+
119
+ it('should pass --ci when CI=1', () => {
120
+ const flags = getJestFlags(testUnitCommand, { CI: '1' });
121
+ expect(flags).toContain('--ci');
122
+ });
123
+
124
+ it('should not pass --ci when CI is unset', () => {
125
+ const flags = getJestFlags(testUnitCommand, {});
126
+ expect(flags).not.toContain('--ci');
127
+ });
128
+ });
129
+ });
@@ -0,0 +1,134 @@
1
+ import fs from 'fs/promises';
2
+ import path from 'node:path';
3
+
4
+ import { executeApply } from 'declapract';
5
+ import { genTempDir, given, then, useBeforeAll, when } from 'test-fns';
6
+
7
+ // executeApply is slow (full usecase evaluation)
8
+ jest.setTimeout(180_000);
9
+
10
+ /**
11
+ * .what = pipeline test for the expo test-toolchain triad (typescript-expo + tests-expo,
12
+ * paired with typescript-any + tests-any).
13
+ * .why = the shared cicd-common `.test.yml` runs `npm run build`, `test:types`,
14
+ * `test:unit`, `test:integration`, `test:acceptance` unconditionally. before the
15
+ * triad, the expo usecase carried none of those commands/configs, so a fresh expo
16
+ * consumer's CI aborted at `npm run build`. this proves `declapract fix` on the
17
+ * expo usecase EMITS the whole stack — the expo build (`expo export`), the
18
+ * typecheck, and the jest-expo unit/integration/acceptance configs — so CI runs.
19
+ */
20
+ describe('expo test-toolchain triad — pipeline', () => {
21
+ given('[case1] a fresh expo repo on the app-react-native-expo usecase', () => {
22
+ const tempDir = genTempDir({
23
+ slug: 'expo-toolchain',
24
+ clone: './src/practices/tests-expo/.test/assets/repo-expo-greenfield',
25
+ symlink: [
26
+ { at: 'declarations', to: './src/.test/assets/expo-toolchain/declarations' },
27
+ { at: 'node_modules', to: 'node_modules' },
28
+ ],
29
+ });
30
+
31
+ const read = (rel: string) =>
32
+ fs.readFile(path.join(tempDir, rel), 'utf-8').catch(() => null);
33
+
34
+ // useBeforeAll RETURNS the captured state (no in-place mutation of a shared const)
35
+ const state = useBeforeAll(async () => {
36
+ const config = path.join(tempDir, 'declapract.use.yml');
37
+
38
+ // apply the whole expo usecase (all four triad practices), thrice.
39
+ // .why = declapract adds a new minVersion dep to an already-present package.json as
40
+ // its raw `@declapract{check.minVersion(..)}` expression on the first pass,
41
+ // then resolves it to the concrete version on the next pass (a net-new file
42
+ // is resolved immediately). so package.json settles at apply-2, and apply-3
43
+ // is the true fixed point. a net-new file (tsconfig, jest configs) is a fixed
44
+ // point from apply-1.
45
+ await executeApply({ config });
46
+ const tsconfigAfter1 = await read('tsconfig.json');
47
+ const jestUnitAfter1 = await read('jest.unit.config.ts');
48
+ const jestIntegrationAfter1 = await read('jest.integration.config.ts');
49
+ const jestAcceptanceAfter1 = await read('jest.acceptance.config.ts');
50
+
51
+ await executeApply({ config });
52
+ const pkgSettled = await read('package.json'); // resolved versions
53
+ const tsconfigAfter2 = await read('tsconfig.json');
54
+ const jestUnitAfter2 = await read('jest.unit.config.ts');
55
+
56
+ await executeApply({ config });
57
+ const pkgAfter3 = await read('package.json'); // must equal pkgSettled
58
+
59
+ return {
60
+ pkgSettled,
61
+ pkgAfter3,
62
+ tsconfigAfter1,
63
+ jestUnitAfter1,
64
+ jestIntegrationAfter1,
65
+ jestAcceptanceAfter1,
66
+ tsconfigAfter2,
67
+ jestUnitAfter2,
68
+ };
69
+ }, 170_000);
70
+
71
+ when('[t0] declapract fix emits the toolchain', () => {
72
+ then('package.json carries every command cicd-common runs', () => {
73
+ const pkg = JSON.parse(state.pkgSettled!);
74
+ // the exact commands cicd-common/.test.yml invokes
75
+ expect(pkg.scripts.build).toBeDefined();
76
+ expect(pkg.scripts['test:types']).toEqual('tsc -p ./tsconfig.json --noEmit');
77
+ expect(pkg.scripts['test:unit']).toContain('jest -c ./jest.unit.config.ts');
78
+ expect(pkg.scripts['test:integration']).toContain(
79
+ 'jest -c ./jest.integration.config.ts',
80
+ );
81
+ expect(pkg.scripts['test:acceptance']).toContain(
82
+ 'jest -c ./jest.acceptance.config.ts',
83
+ );
84
+ });
85
+
86
+ then('the build command is the expo web export, not tsc', () => {
87
+ const pkg = JSON.parse(state.pkgSettled!);
88
+ // `typescript-expo` is the SOLE declarer of `build:web` — `cicd-app-react-native-expo`
89
+ // no longer re-declares it, so there is no second CONTAINS declarer to oscillate
90
+ // with (the single-source shape this repo's convergence/oscillation lesson prefers).
91
+ expect(pkg.scripts['build:web']).toEqual('npx expo export --platform web');
92
+ expect(pkg.scripts.build).toEqual('npm run build:web');
93
+ });
94
+
95
+ then('package.json carries the typescript + jest-expo deps at concrete versions', () => {
96
+ const pkg = JSON.parse(state.pkgSettled!);
97
+ expect(pkg.devDependencies.typescript).toEqual('5.4.5');
98
+ expect(pkg.devDependencies['jest-expo']).toEqual('54.0.0');
99
+ expect(pkg.devDependencies['react-test-renderer']).toEqual('19.0.0');
100
+ });
101
+
102
+ then('tsconfig.json extends the expo base, not the node base', () => {
103
+ const tsconfig = JSON.parse(state.tsconfigAfter1!);
104
+ expect(tsconfig.extends).toEqual('expo/tsconfig.base');
105
+ });
106
+
107
+ then('the jest configs use the jest-expo preset', () => {
108
+ expect(state.jestUnitAfter1).toContain("preset: 'jest-expo'");
109
+ expect(state.jestIntegrationAfter1).toContain("preset: 'jest-expo/web'");
110
+ expect(state.jestAcceptanceAfter1).toContain("preset: 'jest-expo/web'");
111
+ });
112
+
113
+ then('the emitted package.json + tsconfig + jest.unit match snapshot', () => {
114
+ expect(state.pkgSettled).toMatchSnapshot('package.json — after fix');
115
+ expect(state.tsconfigAfter1).toMatchSnapshot('tsconfig.json — after fix');
116
+ expect(state.jestUnitAfter1).toMatchSnapshot('jest.unit.config.ts — after fix');
117
+ });
118
+ });
119
+
120
+ when('[t1] declapract fix is re-applied', () => {
121
+ then('package.json is a fixed point once settled', () => {
122
+ expect(state.pkgAfter3).toEqual(state.pkgSettled);
123
+ });
124
+
125
+ then('tsconfig.json is a fixed point', () => {
126
+ expect(state.tsconfigAfter2).toEqual(state.tsconfigAfter1);
127
+ });
128
+
129
+ then('jest.unit.config.ts is a fixed point', () => {
130
+ expect(state.jestUnitAfter2).toEqual(state.jestUnitAfter1);
131
+ });
132
+ });
133
+ });
134
+ });
@@ -0,0 +1,6 @@
1
+ # .note = declarations dir is symlinked by the test to test/assets/expo-toolchain/declarations
2
+ # .why = a fresh expo repo, used to prove the typescript + tests triads emit the expo
3
+ # build/typecheck/jest stack that cicd-common's .test.yml runs.
4
+ # .note = no variables — the four triad practices reference only @declapract{check.minVersion}.
5
+ declarations: 'declarations/declapract.declare.yml'
6
+ useCase: app-react-native-expo