skuba 11.1.0-jest30-20250620003740 → 12.0.0-enable-js-extensions-20250704134302

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 (431) hide show
  1. package/jest/moduleNameMapper.js +4 -1
  2. package/lib/api/buildkite/annotate.js +2 -2
  3. package/lib/api/buildkite/annotate.js.map +1 -1
  4. package/lib/api/buildkite/index.d.ts +3 -3
  5. package/lib/api/buildkite/index.js +2 -2
  6. package/lib/api/buildkite/index.js.map +1 -1
  7. package/lib/api/git/commitAllChanges.d.ts +2 -2
  8. package/lib/api/git/commitAllChanges.js +3 -3
  9. package/lib/api/git/commitAllChanges.js.map +1 -1
  10. package/lib/api/git/getChangedFiles.js +1 -1
  11. package/lib/api/git/getChangedFiles.js.map +1 -1
  12. package/lib/api/git/index.d.ts +12 -12
  13. package/lib/api/git/index.js +11 -11
  14. package/lib/api/git/index.js.map +1 -1
  15. package/lib/api/git/pull.js +2 -2
  16. package/lib/api/git/pull.js.map +1 -1
  17. package/lib/api/git/push.js +2 -2
  18. package/lib/api/git/push.js.map +1 -1
  19. package/lib/api/git/reset.js +1 -1
  20. package/lib/api/git/reset.js.map +1 -1
  21. package/lib/api/github/checkRun.js +4 -4
  22. package/lib/api/github/checkRun.js.map +1 -1
  23. package/lib/api/github/environment.js +1 -1
  24. package/lib/api/github/environment.js.map +1 -1
  25. package/lib/api/github/index.d.ts +7 -7
  26. package/lib/api/github/index.js +6 -6
  27. package/lib/api/github/index.js.map +1 -1
  28. package/lib/api/github/issueComment.js +4 -4
  29. package/lib/api/github/issueComment.js.map +1 -1
  30. package/lib/api/github/pullRequest.js +3 -3
  31. package/lib/api/github/pullRequest.js.map +1 -1
  32. package/lib/api/github/push.d.ts +1 -1
  33. package/lib/api/github/push.js +3 -3
  34. package/lib/api/github/push.js.map +1 -1
  35. package/lib/api/jest/index.js +2 -2
  36. package/lib/api/jest/index.js.map +1 -1
  37. package/lib/api/net/compose.js +1 -1
  38. package/lib/api/net/compose.js.map +1 -1
  39. package/lib/api/net/index.d.ts +1 -1
  40. package/lib/api/net/index.js +1 -1
  41. package/lib/api/net/index.js.map +1 -1
  42. package/lib/api/net/waitFor.d.ts +1 -1
  43. package/lib/api/net/waitFor.js +2 -2
  44. package/lib/api/net/waitFor.js.map +1 -1
  45. package/lib/cli/adapter/eslint.d.ts +1 -1
  46. package/lib/cli/adapter/eslint.js +1 -1
  47. package/lib/cli/adapter/eslint.js.map +1 -1
  48. package/lib/cli/adapter/prettier.d.ts +1 -1
  49. package/lib/cli/adapter/prettier.js +4 -4
  50. package/lib/cli/adapter/prettier.js.map +2 -2
  51. package/lib/cli/build/assets.d.ts +1 -1
  52. package/lib/cli/build/assets.js +4 -4
  53. package/lib/cli/build/assets.js.map +1 -1
  54. package/lib/cli/build/esbuild.js +3 -3
  55. package/lib/cli/build/esbuild.js.map +1 -1
  56. package/lib/cli/build/index.js +6 -6
  57. package/lib/cli/build/index.js.map +1 -1
  58. package/lib/cli/build/tsc.d.ts +1 -1
  59. package/lib/cli/build/tsc.js +2 -2
  60. package/lib/cli/build/tsc.js.map +1 -1
  61. package/lib/cli/buildPackage/index.js +3 -3
  62. package/lib/cli/buildPackage/index.js.map +1 -1
  63. package/lib/cli/configure/analyseConfiguration.d.ts +2 -2
  64. package/lib/cli/configure/analyseConfiguration.js +2 -2
  65. package/lib/cli/configure/analyseConfiguration.js.map +1 -1
  66. package/lib/cli/configure/analyseDependencies.d.ts +1 -1
  67. package/lib/cli/configure/analyseDependencies.js +6 -6
  68. package/lib/cli/configure/analyseDependencies.js.map +1 -1
  69. package/lib/cli/configure/analysis/files.js +1 -1
  70. package/lib/cli/configure/analysis/files.js.map +1 -1
  71. package/lib/cli/configure/analysis/git.js +2 -2
  72. package/lib/cli/configure/analysis/git.js.map +1 -1
  73. package/lib/cli/configure/analysis/package.d.ts +1 -1
  74. package/lib/cli/configure/analysis/package.js +2 -2
  75. package/lib/cli/configure/analysis/package.js.map +1 -1
  76. package/lib/cli/configure/analysis/project.d.ts +1 -1
  77. package/lib/cli/configure/analysis/project.js +4 -4
  78. package/lib/cli/configure/analysis/project.js.map +2 -2
  79. package/lib/cli/configure/dependencies/index.d.ts +5 -5
  80. package/lib/cli/configure/dependencies/index.js +5 -5
  81. package/lib/cli/configure/dependencies/index.js.map +1 -1
  82. package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.d.ts +2 -2
  83. package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js +1 -1
  84. package/lib/cli/configure/dependencies/seekDatadogCustomMetrics.js.map +1 -1
  85. package/lib/cli/configure/dependencies/seekKoala.d.ts +2 -2
  86. package/lib/cli/configure/dependencies/seekKoala.js +1 -1
  87. package/lib/cli/configure/dependencies/seekKoala.js.map +1 -1
  88. package/lib/cli/configure/dependencies/skuba.d.ts +2 -2
  89. package/lib/cli/configure/dependencies/skuba.js +1 -1
  90. package/lib/cli/configure/dependencies/skuba.js.map +1 -1
  91. package/lib/cli/configure/dependencies/skubaDeps.d.ts +1 -1
  92. package/lib/cli/configure/dependencies/skubaDeps.js.map +1 -1
  93. package/lib/cli/configure/dependencies/skubaDive.d.ts +2 -2
  94. package/lib/cli/configure/dependencies/skubaDive.js +1 -1
  95. package/lib/cli/configure/dependencies/skubaDive.js.map +1 -1
  96. package/lib/cli/configure/ensureTemplateCompletion.d.ts +1 -1
  97. package/lib/cli/configure/ensureTemplateCompletion.js +6 -6
  98. package/lib/cli/configure/ensureTemplateCompletion.js.map +1 -1
  99. package/lib/cli/configure/getEntryPoint.d.ts +2 -2
  100. package/lib/cli/configure/getEntryPoint.js +3 -3
  101. package/lib/cli/configure/getEntryPoint.js.map +1 -1
  102. package/lib/cli/configure/getProjectType.d.ts +2 -2
  103. package/lib/cli/configure/getProjectType.js +3 -3
  104. package/lib/cli/configure/getProjectType.js.map +1 -1
  105. package/lib/cli/configure/index.js +14 -14
  106. package/lib/cli/configure/index.js.map +1 -1
  107. package/lib/cli/configure/modules/eslint.d.ts +1 -1
  108. package/lib/cli/configure/modules/eslint.js +4 -4
  109. package/lib/cli/configure/modules/eslint.js.map +1 -1
  110. package/lib/cli/configure/modules/ignore.d.ts +1 -1
  111. package/lib/cli/configure/modules/ignore.js +2 -2
  112. package/lib/cli/configure/modules/ignore.js.map +1 -1
  113. package/lib/cli/configure/modules/index.d.ts +1 -1
  114. package/lib/cli/configure/modules/index.js +10 -10
  115. package/lib/cli/configure/modules/index.js.map +1 -1
  116. package/lib/cli/configure/modules/jest.d.ts +1 -1
  117. package/lib/cli/configure/modules/jest.js +4 -4
  118. package/lib/cli/configure/modules/jest.js.map +1 -1
  119. package/lib/cli/configure/modules/nodemon.d.ts +1 -1
  120. package/lib/cli/configure/modules/nodemon.js +1 -1
  121. package/lib/cli/configure/modules/nodemon.js.map +1 -1
  122. package/lib/cli/configure/modules/package.d.ts +1 -1
  123. package/lib/cli/configure/modules/package.js +4 -4
  124. package/lib/cli/configure/modules/package.js.map +1 -1
  125. package/lib/cli/configure/modules/prettier.d.ts +1 -1
  126. package/lib/cli/configure/modules/prettier.js +4 -4
  127. package/lib/cli/configure/modules/prettier.js.map +1 -1
  128. package/lib/cli/configure/modules/renovate.d.ts +1 -1
  129. package/lib/cli/configure/modules/renovate.js +5 -5
  130. package/lib/cli/configure/modules/renovate.js.map +1 -1
  131. package/lib/cli/configure/modules/serverless.d.ts +1 -1
  132. package/lib/cli/configure/modules/serverless.js.map +1 -1
  133. package/lib/cli/configure/modules/skubaDive.d.ts +1 -1
  134. package/lib/cli/configure/modules/skubaDive.js +4 -4
  135. package/lib/cli/configure/modules/skubaDive.js.map +1 -1
  136. package/lib/cli/configure/modules/tslint.d.ts +1 -1
  137. package/lib/cli/configure/modules/tslint.js +1 -1
  138. package/lib/cli/configure/modules/tslint.js.map +1 -1
  139. package/lib/cli/configure/processing/deleteFiles.d.ts +1 -1
  140. package/lib/cli/configure/processing/deleteFiles.js.map +1 -1
  141. package/lib/cli/configure/processing/json.js +2 -2
  142. package/lib/cli/configure/processing/json.js.map +1 -1
  143. package/lib/cli/configure/processing/loadFiles.d.ts +1 -1
  144. package/lib/cli/configure/processing/loadFiles.js.map +1 -1
  145. package/lib/cli/configure/processing/module.d.ts +1 -1
  146. package/lib/cli/configure/processing/module.js +1 -1
  147. package/lib/cli/configure/processing/module.js.map +1 -1
  148. package/lib/cli/configure/processing/package.d.ts +1 -1
  149. package/lib/cli/configure/processing/package.js +2 -2
  150. package/lib/cli/configure/processing/package.js.map +1 -1
  151. package/lib/cli/configure/processing/prettier.js +1 -1
  152. package/lib/cli/configure/processing/prettier.js.map +1 -1
  153. package/lib/cli/configure/processing/typescript.js +1 -1
  154. package/lib/cli/configure/processing/typescript.js.map +1 -1
  155. package/lib/cli/configure/types.d.ts +2 -2
  156. package/lib/cli/configure/types.js.map +1 -1
  157. package/lib/cli/format/index.js +5 -5
  158. package/lib/cli/format/index.js.map +1 -1
  159. package/lib/cli/help/index.js +2 -2
  160. package/lib/cli/help/index.js.map +1 -1
  161. package/lib/cli/init/getConfig.d.ts +3 -3
  162. package/lib/cli/init/getConfig.js +9 -9
  163. package/lib/cli/init/getConfig.js.map +1 -1
  164. package/lib/cli/init/git.js +2 -2
  165. package/lib/cli/init/git.js.map +1 -1
  166. package/lib/cli/init/index.js +15 -15
  167. package/lib/cli/init/index.js.map +1 -1
  168. package/lib/cli/init/prompts.d.ts +1 -1
  169. package/lib/cli/init/prompts.js +2 -2
  170. package/lib/cli/init/prompts.js.map +1 -1
  171. package/lib/cli/init/types.js +2 -2
  172. package/lib/cli/init/types.js.map +1 -1
  173. package/lib/cli/init/writePackageJson.d.ts +1 -1
  174. package/lib/cli/init/writePackageJson.js +2 -2
  175. package/lib/cli/init/writePackageJson.js.map +1 -1
  176. package/lib/cli/lint/annotate/buildkite/eslint.d.ts +1 -1
  177. package/lib/cli/lint/annotate/buildkite/eslint.js +1 -1
  178. package/lib/cli/lint/annotate/buildkite/eslint.js.map +1 -1
  179. package/lib/cli/lint/annotate/buildkite/index.d.ts +4 -4
  180. package/lib/cli/lint/annotate/buildkite/index.js +5 -5
  181. package/lib/cli/lint/annotate/buildkite/index.js.map +1 -1
  182. package/lib/cli/lint/annotate/buildkite/internal.d.ts +1 -1
  183. package/lib/cli/lint/annotate/buildkite/internal.js +1 -1
  184. package/lib/cli/lint/annotate/buildkite/internal.js.map +1 -1
  185. package/lib/cli/lint/annotate/buildkite/prettier.d.ts +1 -1
  186. package/lib/cli/lint/annotate/buildkite/prettier.js +1 -1
  187. package/lib/cli/lint/annotate/buildkite/prettier.js.map +1 -1
  188. package/lib/cli/lint/annotate/buildkite/tsc.d.ts +1 -1
  189. package/lib/cli/lint/annotate/buildkite/tsc.js +1 -1
  190. package/lib/cli/lint/annotate/buildkite/tsc.js.map +1 -1
  191. package/lib/cli/lint/annotate/github/eslint.d.ts +2 -2
  192. package/lib/cli/lint/annotate/github/eslint.js.map +1 -1
  193. package/lib/cli/lint/annotate/github/index.d.ts +4 -4
  194. package/lib/cli/lint/annotate/github/index.js +6 -6
  195. package/lib/cli/lint/annotate/github/index.js.map +2 -2
  196. package/lib/cli/lint/annotate/github/internal.d.ts +2 -2
  197. package/lib/cli/lint/annotate/github/internal.js.map +1 -1
  198. package/lib/cli/lint/annotate/github/prettier.d.ts +2 -2
  199. package/lib/cli/lint/annotate/github/prettier.js.map +1 -1
  200. package/lib/cli/lint/annotate/github/tsc.d.ts +2 -2
  201. package/lib/cli/lint/annotate/github/tsc.js.map +1 -1
  202. package/lib/cli/lint/annotate/index.d.ts +4 -4
  203. package/lib/cli/lint/annotate/index.js +2 -2
  204. package/lib/cli/lint/annotate/index.js.map +1 -1
  205. package/lib/cli/lint/autofix.d.ts +2 -2
  206. package/lib/cli/lint/autofix.js +11 -11
  207. package/lib/cli/lint/autofix.js.map +1 -1
  208. package/lib/cli/lint/eslint.d.ts +2 -2
  209. package/lib/cli/lint/eslint.js +3 -3
  210. package/lib/cli/lint/eslint.js.map +1 -1
  211. package/lib/cli/lint/external.d.ts +3 -3
  212. package/lib/cli/lint/external.js +3 -3
  213. package/lib/cli/lint/external.js.map +1 -1
  214. package/lib/cli/lint/index.js +8 -8
  215. package/lib/cli/lint/index.js.map +1 -1
  216. package/lib/cli/lint/internal.d.ts +1 -1
  217. package/lib/cli/lint/internal.js +5 -5
  218. package/lib/cli/lint/internal.js.map +1 -1
  219. package/lib/cli/lint/internalLints/detectBadCodeowners.d.ts +2 -2
  220. package/lib/cli/lint/internalLints/detectBadCodeowners.js +2 -2
  221. package/lib/cli/lint/internalLints/detectBadCodeowners.js.map +1 -1
  222. package/lib/cli/lint/internalLints/noSkubaTemplateJs.d.ts +2 -2
  223. package/lib/cli/lint/internalLints/noSkubaTemplateJs.js +2 -2
  224. package/lib/cli/lint/internalLints/noSkubaTemplateJs.js.map +1 -1
  225. package/lib/cli/lint/internalLints/patchRenovateConfig.d.ts +2 -2
  226. package/lib/cli/lint/internalLints/patchRenovateConfig.js +5 -5
  227. package/lib/cli/lint/internalLints/patchRenovateConfig.js.map +1 -1
  228. package/lib/cli/lint/internalLints/refreshConfigFiles.d.ts +3 -3
  229. package/lib/cli/lint/internalLints/refreshConfigFiles.js +7 -7
  230. package/lib/cli/lint/internalLints/refreshConfigFiles.js.map +1 -1
  231. package/lib/cli/lint/internalLints/upgrade/index.d.ts +3 -3
  232. package/lib/cli/lint/internalLints/upgrade/index.js +4 -4
  233. package/lib/cli/lint/internalLints/upgrade/index.js.map +1 -1
  234. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.d.ts +1 -1
  235. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js +1 -1
  236. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/index.js.map +1 -1
  237. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.d.ts +1 -1
  238. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js +1 -1
  239. package/lib/cli/lint/internalLints/upgrade/patches/10.0.4/removeYarnIgnoreOptionalFlags.js.map +2 -2
  240. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.d.ts +1 -1
  241. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js +2 -2
  242. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/index.js.map +1 -1
  243. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.d.ts +1 -1
  244. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js +4 -4
  245. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/migrateNpmrcToPnpmWorkspace.js.map +2 -2
  246. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.d.ts +1 -1
  247. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js +1 -1
  248. package/lib/cli/lint/internalLints/upgrade/patches/10.1.0/stopBundlingInCDKTests.js.map +2 -2
  249. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.d.ts +1 -1
  250. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js +4 -4
  251. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/addEmptyExports.js.map +2 -2
  252. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.d.ts +1 -1
  253. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js +4 -4
  254. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/index.js.map +2 -2
  255. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.d.ts +1 -1
  256. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js +2 -2
  257. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchDockerfile.js.map +2 -2
  258. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.d.ts +1 -1
  259. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js +3 -3
  260. package/lib/cli/lint/internalLints/upgrade/patches/7.3.1/patchServerListener.js.map +2 -2
  261. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.d.ts +1 -1
  262. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js +1 -1
  263. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/index.js.map +1 -1
  264. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.d.ts +1 -1
  265. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js +1 -1
  266. package/lib/cli/lint/internalLints/upgrade/patches/8.0.0/patchPnpmPackageManager.js.map +2 -2
  267. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.d.ts +1 -1
  268. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js +1 -1
  269. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/collapseDuplicateMergeKeys.js.map +2 -2
  270. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.d.ts +1 -1
  271. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js +5 -5
  272. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/index.js.map +1 -1
  273. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.d.ts +1 -1
  274. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js +1 -1
  275. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/moveNpmrcMounts.js.map +2 -2
  276. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.d.ts +1 -1
  277. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js +1 -1
  278. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerCompose.js.map +2 -2
  279. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.d.ts +1 -1
  280. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js +1 -1
  281. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/patchDockerImages.js.map +2 -2
  282. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.d.ts +1 -1
  283. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js +5 -5
  284. package/lib/cli/lint/internalLints/upgrade/patches/8.2.1/upgradeESLint.js.map +2 -2
  285. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.d.ts +1 -1
  286. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js +1 -1
  287. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/index.js.map +1 -1
  288. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.d.ts +1 -1
  289. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js +1 -1
  290. package/lib/cli/lint/internalLints/upgrade/patches/9.0.1/patchPnpmDockerImages.js.map +2 -2
  291. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.d.ts +1 -1
  292. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js +1 -1
  293. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/index.js.map +1 -1
  294. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.d.ts +1 -1
  295. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js +2 -2
  296. package/lib/cli/lint/internalLints/upgrade/patches/9.1.0/upgradeNode.js.map +2 -2
  297. package/lib/cli/lint/prettier.d.ts +2 -2
  298. package/lib/cli/lint/prettier.js +3 -3
  299. package/lib/cli/lint/prettier.js.map +1 -1
  300. package/lib/cli/lint/tsc.d.ts +1 -1
  301. package/lib/cli/lint/tsc.js +1 -1
  302. package/lib/cli/lint/tsc.js.map +1 -1
  303. package/lib/cli/migrate/index.js +2 -2
  304. package/lib/cli/migrate/index.js.map +1 -1
  305. package/lib/cli/migrate/nodeVersion/checks.js +1 -1
  306. package/lib/cli/migrate/nodeVersion/checks.js.map +1 -1
  307. package/lib/cli/migrate/nodeVersion/index.js +21 -21
  308. package/lib/cli/migrate/nodeVersion/index.js.map +2 -2
  309. package/lib/cli/node/index.js +3 -3
  310. package/lib/cli/node/index.js.map +1 -1
  311. package/lib/cli/release/index.js +1 -1
  312. package/lib/cli/release/index.js.map +1 -1
  313. package/lib/cli/start/index.js +4 -4
  314. package/lib/cli/start/index.js.map +1 -1
  315. package/lib/cli/test/reporters/github/annotations.d.ts +1 -1
  316. package/lib/cli/test/reporters/github/annotations.js.map +1 -1
  317. package/lib/cli/test/reporters/github/index.js +5 -5
  318. package/lib/cli/test/reporters/github/index.js.map +2 -2
  319. package/lib/cli/version/index.js +2 -2
  320. package/lib/cli/version/index.js.map +1 -1
  321. package/lib/index.d.ts +5 -5
  322. package/lib/index.js +5 -5
  323. package/lib/index.js.map +1 -1
  324. package/lib/skuba.js +8 -8
  325. package/lib/skuba.js.map +1 -1
  326. package/lib/utils/args.js +1 -1
  327. package/lib/utils/args.js.map +1 -1
  328. package/lib/utils/copy.js +2 -2
  329. package/lib/utils/copy.js.map +1 -1
  330. package/lib/utils/dir.js +2 -2
  331. package/lib/utils/dir.js.map +1 -1
  332. package/lib/utils/error.js +2 -2
  333. package/lib/utils/error.js.map +1 -1
  334. package/lib/utils/exec.d.ts +1 -1
  335. package/lib/utils/exec.js +2 -2
  336. package/lib/utils/exec.js.map +1 -1
  337. package/lib/utils/help.js +2 -2
  338. package/lib/utils/help.js.map +1 -1
  339. package/lib/utils/logo.js +3 -3
  340. package/lib/utils/logo.js.map +1 -1
  341. package/lib/utils/manifest.js +1 -1
  342. package/lib/utils/manifest.js.map +1 -1
  343. package/lib/utils/packageManager.js +1 -1
  344. package/lib/utils/packageManager.js.map +1 -1
  345. package/lib/utils/template.js +2 -2
  346. package/lib/utils/template.js.map +1 -1
  347. package/lib/utils/version.js +2 -2
  348. package/lib/utils/version.js.map +1 -1
  349. package/lib/utils/wait.js +2 -2
  350. package/lib/utils/wait.js.map +1 -1
  351. package/lib/utils/worker.d.ts +3 -3
  352. package/lib/utils/worker.js +1 -1
  353. package/lib/utils/worker.js.map +1 -1
  354. package/lib/wrapper/functionHandler.js +3 -3
  355. package/lib/wrapper/functionHandler.js.map +1 -1
  356. package/lib/wrapper/http.js +1 -1
  357. package/lib/wrapper/http.js.map +1 -1
  358. package/lib/wrapper/index.js +3 -3
  359. package/lib/wrapper/index.js.map +1 -1
  360. package/lib/wrapper/main.js +2 -2
  361. package/lib/wrapper/main.js.map +1 -1
  362. package/lib/wrapper/requestListener.js +2 -2
  363. package/lib/wrapper/requestListener.js.map +1 -1
  364. package/package.json +15 -15
  365. package/template/express-rest-api/.buildkite/pipeline.yml +1 -1
  366. package/template/express-rest-api/Dockerfile.dev-deps +1 -1
  367. package/template/express-rest-api/package.json +1 -1
  368. package/template/express-rest-api/src/app.test.ts +1 -1
  369. package/template/express-rest-api/src/app.ts +3 -3
  370. package/template/express-rest-api/src/framework/logging.ts +1 -1
  371. package/template/express-rest-api/src/framework/metrics.ts +2 -2
  372. package/template/express-rest-api/src/listen.ts +4 -4
  373. package/template/greeter/.buildkite/pipeline.yml +1 -1
  374. package/template/greeter/Dockerfile +1 -1
  375. package/template/greeter/package.json +2 -2
  376. package/template/greeter/src/app.test.ts +1 -1
  377. package/template/koa-rest-api/.buildkite/pipeline.yml +1 -1
  378. package/template/koa-rest-api/Dockerfile.dev-deps +1 -1
  379. package/template/koa-rest-api/package.json +7 -7
  380. package/template/koa-rest-api/src/api/healthCheck.ts +1 -1
  381. package/template/koa-rest-api/src/api/index.ts +3 -3
  382. package/template/koa-rest-api/src/api/jobs/getJobs.test.ts +2 -2
  383. package/template/koa-rest-api/src/api/jobs/getJobs.ts +4 -4
  384. package/template/koa-rest-api/src/api/jobs/index.ts +3 -3
  385. package/template/koa-rest-api/src/api/jobs/postJob.test.ts +4 -4
  386. package/template/koa-rest-api/src/api/jobs/postJob.ts +6 -6
  387. package/template/koa-rest-api/src/api/smokeTest.ts +2 -2
  388. package/template/koa-rest-api/src/app.test.ts +2 -2
  389. package/template/koa-rest-api/src/app.ts +3 -3
  390. package/template/koa-rest-api/src/config.ts +1 -1
  391. package/template/koa-rest-api/src/framework/logging.ts +22 -13
  392. package/template/koa-rest-api/src/framework/metrics.ts +2 -2
  393. package/template/koa-rest-api/src/framework/server.test.ts +95 -64
  394. package/template/koa-rest-api/src/framework/server.ts +3 -3
  395. package/template/koa-rest-api/src/framework/validation.test.ts +35 -35
  396. package/template/koa-rest-api/src/framework/validation.ts +15 -22
  397. package/template/koa-rest-api/src/listen.ts +4 -4
  398. package/template/koa-rest-api/src/storage/jobs.ts +1 -1
  399. package/template/koa-rest-api/src/testing/metrics.ts +1 -1
  400. package/template/koa-rest-api/src/testing/server.ts +1 -1
  401. package/template/koa-rest-api/src/testing/types.ts +2 -2
  402. package/template/koa-rest-api/src/types/jobs.ts +1 -1
  403. package/template/lambda-sqs-worker-cdk/.buildkite/pipeline.yml +2 -2
  404. package/template/lambda-sqs-worker-cdk/Dockerfile +1 -1
  405. package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +6 -0
  406. package/template/lambda-sqs-worker-cdk/infra/appStack.ts +1 -1
  407. package/template/lambda-sqs-worker-cdk/infra/index.ts +2 -2
  408. package/template/lambda-sqs-worker-cdk/package.json +5 -5
  409. package/template/lambda-sqs-worker-cdk/src/app.test.ts +81 -22
  410. package/template/lambda-sqs-worker-cdk/src/app.ts +10 -7
  411. package/template/lambda-sqs-worker-cdk/src/config.ts +1 -1
  412. package/template/lambda-sqs-worker-cdk/src/framework/handler.test.ts +38 -18
  413. package/template/lambda-sqs-worker-cdk/src/framework/handler.ts +2 -2
  414. package/template/lambda-sqs-worker-cdk/src/framework/logging.ts +23 -12
  415. package/template/lambda-sqs-worker-cdk/src/framework/metrics.ts +1 -1
  416. package/template/lambda-sqs-worker-cdk/src/framework/validation.test.ts +8 -11
  417. package/template/lambda-sqs-worker-cdk/src/framework/validation.ts +3 -7
  418. package/template/lambda-sqs-worker-cdk/src/mapping/jobScorer.ts +2 -2
  419. package/template/lambda-sqs-worker-cdk/src/services/jobScorer.test.ts +3 -3
  420. package/template/lambda-sqs-worker-cdk/src/services/jobScorer.ts +3 -3
  421. package/template/lambda-sqs-worker-cdk/src/services/pipelineEventSender.test.ts +3 -3
  422. package/template/lambda-sqs-worker-cdk/src/services/pipelineEventSender.ts +2 -2
  423. package/template/lambda-sqs-worker-cdk/src/testing/handler.ts +1 -1
  424. package/template/lambda-sqs-worker-cdk/src/testing/services.ts +2 -2
  425. package/template/lambda-sqs-worker-cdk/src/testing/types.ts +2 -2
  426. package/template/lambda-sqs-worker-cdk/src/types/jobScorer.ts +1 -1
  427. package/template/lambda-sqs-worker-cdk/src/types/pipelineEvents.ts +1 -1
  428. package/template/oss-npm-package/src/index.test.ts +1 -1
  429. package/template/private-npm-package/src/index.test.ts +1 -1
  430. package/template/koa-rest-api/src/testing/logging.ts +0 -16
  431. package/template/lambda-sqs-worker-cdk/src/testing/logging.ts +0 -19
@@ -1,12 +1,12 @@
1
1
  import { PublishCommand } from '@aws-sdk/client-sns';
2
2
 
3
- import { metricsClient } from 'src/framework/metrics';
4
- import { createCtx, createSqsEvent } from 'src/testing/handler';
5
- import { logger } from 'src/testing/logging';
6
- import { scoringService, sns } from 'src/testing/services';
7
- import { chance, mockJobPublishedEvent } from 'src/testing/types';
3
+ import { metricsClient } from 'src/framework/metrics.js';
4
+ import { createCtx, createSqsEvent } from 'src/testing/handler.js';
5
+ import { scoringService, sns } from 'src/testing/services.js';
6
+ import { chance, mockJobPublishedEvent } from 'src/testing/types.js';
8
7
 
9
- import * as app from './app';
8
+ import * as app from './app.js';
9
+ import { stdoutMock } from './framework/logging.js';
10
10
 
11
11
  describe('app', () => {
12
12
  it('exports a handler', () => expect(app).toHaveProperty('handler'));
@@ -23,7 +23,6 @@ describe('handler', () => {
23
23
  .spyOn(metricsClient, 'distribution')
24
24
  .mockReturnValue();
25
25
 
26
- beforeAll(logger.spy);
27
26
  beforeAll(scoringService.spy);
28
27
 
29
28
  beforeEach(() => {
@@ -32,7 +31,7 @@ describe('handler', () => {
32
31
  });
33
32
 
34
33
  afterEach(() => {
35
- logger.clear();
34
+ stdoutMock.clear();
36
35
  distribution.mockClear();
37
36
  scoringService.clear();
38
37
  sns.clear();
@@ -45,12 +44,24 @@ describe('handler', () => {
45
44
 
46
45
  expect(scoringService.request).toHaveBeenCalledTimes(1);
47
46
 
48
- expect(logger.error).not.toHaveBeenCalled();
49
-
50
- expect(logger.debug.mock.calls).toEqual([
51
- [{ count: 1 }, 'Received jobs'],
52
- [{ snsMessageId: expect.any(String) }, 'Scored job'],
53
- ['Function succeeded'],
47
+ expect(stdoutMock.calls).toMatchObject([
48
+ {
49
+ awsRequestId: '-',
50
+ count: 1,
51
+ level: 20,
52
+ msg: 'Received jobs',
53
+ },
54
+ {
55
+ awsRequestId: '-',
56
+ level: 20,
57
+ msg: 'Scored job',
58
+ snsMessageId: expect.any(String),
59
+ },
60
+ {
61
+ awsRequestId: '-',
62
+ level: 20,
63
+ msg: 'Function succeeded',
64
+ },
54
65
  ]);
55
66
 
56
67
  expect(distribution.mock.calls).toEqual([
@@ -76,7 +87,23 @@ describe('handler', () => {
76
87
 
77
88
  await expect(app.handler(event, ctx)).rejects.toThrow('Function failed');
78
89
 
79
- expect(logger.error).toHaveBeenCalledWith({ err }, 'Function failed');
90
+ expect(stdoutMock.calls).toMatchObject([
91
+ {
92
+ awsRequestId: '-',
93
+ count: 1,
94
+ level: 20,
95
+ msg: 'Received jobs',
96
+ },
97
+ {
98
+ awsRequestId: '-',
99
+ err: {
100
+ message: err.message,
101
+ type: 'Error',
102
+ },
103
+ level: 50,
104
+ msg: 'Function failed',
105
+ },
106
+ ]);
80
107
  });
81
108
 
82
109
  it('bubbles up SNS error', async () => {
@@ -88,22 +115,44 @@ describe('handler', () => {
88
115
 
89
116
  await expect(app.handler(event, ctx)).rejects.toThrow('Function failed');
90
117
 
91
- expect(logger.error).toHaveBeenCalledWith({ err }, 'Function failed');
118
+ expect(stdoutMock.calls).toMatchObject([
119
+ {
120
+ awsRequestId: '-',
121
+ count: 1,
122
+ level: 20,
123
+ msg: 'Received jobs',
124
+ },
125
+ {
126
+ awsRequestId: '-',
127
+ err: {
128
+ message: err.message,
129
+ type: 'Error',
130
+ },
131
+ level: 50,
132
+ msg: 'Function failed',
133
+ },
134
+ ]);
92
135
  });
93
136
 
94
137
  it('throws on zero records', async () => {
95
- const err = new Error('Received 0 records');
96
-
97
138
  const event = createSqsEvent([]);
98
139
 
99
140
  await expect(app.handler(event, ctx)).rejects.toThrow('Function failed');
100
141
 
101
- expect(logger.error).toHaveBeenCalledWith({ err }, 'Function failed');
142
+ expect(stdoutMock.calls).toMatchObject([
143
+ {
144
+ awsRequestId: '-',
145
+ err: {
146
+ message: 'Received 0 records',
147
+ type: 'Error',
148
+ },
149
+ level: 50,
150
+ msg: 'Function failed',
151
+ },
152
+ ]);
102
153
  });
103
154
 
104
155
  it('throws on multiple records', async () => {
105
- const err = new Error('Received 2 records');
106
-
107
156
  const event = createSqsEvent([
108
157
  JSON.stringify(jobPublished),
109
158
  JSON.stringify(jobPublished),
@@ -111,6 +160,16 @@ describe('handler', () => {
111
160
 
112
161
  await expect(app.handler(event, ctx)).rejects.toThrow('Function failed');
113
162
 
114
- expect(logger.error).toHaveBeenCalledWith({ err }, 'Function failed');
163
+ expect(stdoutMock.calls).toMatchObject([
164
+ {
165
+ awsRequestId: '-',
166
+ err: {
167
+ message: 'Received 2 records',
168
+ type: 'Error',
169
+ },
170
+ level: 50,
171
+ msg: 'Function failed',
172
+ },
173
+ ]);
115
174
  });
116
175
  });
@@ -3,13 +3,16 @@ import 'skuba-dive/register';
3
3
  import { isLambdaHook } from '@seek/aws-codedeploy-hooks';
4
4
  import type { SQSEvent } from 'aws-lambda';
5
5
 
6
- import { createHandler } from 'src/framework/handler';
7
- import { logger } from 'src/framework/logging';
8
- import { metricsClient } from 'src/framework/metrics';
9
- import { validateJson } from 'src/framework/validation';
10
- import { scoreJobPublishedEvent, scoringService } from 'src/services/jobScorer';
11
- import { sendPipelineEvent } from 'src/services/pipelineEventSender';
12
- import { JobPublishedEventSchema } from 'src/types/pipelineEvents';
6
+ import { createHandler } from 'src/framework/handler.js';
7
+ import { logger } from 'src/framework/logging.js';
8
+ import { metricsClient } from 'src/framework/metrics.js';
9
+ import { validateJson } from 'src/framework/validation.js';
10
+ import {
11
+ scoreJobPublishedEvent,
12
+ scoringService,
13
+ } from 'src/services/jobScorer.js';
14
+ import { sendPipelineEvent } from 'src/services/pipelineEventSender.js';
15
+ import { JobPublishedEventSchema } from 'src/types/pipelineEvents.js';
13
16
 
14
17
  /**
15
18
  * Tests connectivity to ensure appropriate access and network configuration.
@@ -29,7 +29,7 @@ const configs: Record<Environment, () => Omit<Config, 'environment'>> = {
29
29
  }),
30
30
 
31
31
  test: () => ({
32
- logLevel: Env.string('LOG_LEVEL', { default: 'silent' }),
32
+ logLevel: Env.string('LOG_LEVEL', { default: 'debug' }),
33
33
  metrics: false,
34
34
  name: '<%- serviceName %>',
35
35
  version: 'test',
@@ -1,16 +1,14 @@
1
- import { createCtx } from 'src/testing/handler';
2
- import { logger } from 'src/testing/logging';
3
- import { chance } from 'src/testing/types';
1
+ import { createCtx } from 'src/testing/handler.js';
2
+ import { chance } from 'src/testing/types.js';
4
3
 
5
- import { createHandler } from './handler';
4
+ import { createHandler } from './handler.js';
5
+ import { logger, stdoutMock } from './logging.js';
6
6
 
7
7
  describe('createHandler', () => {
8
8
  const ctx = createCtx();
9
9
  const input = chance.paragraph();
10
10
 
11
- beforeAll(logger.spy);
12
-
13
- afterEach(logger.clear);
11
+ afterEach(stdoutMock.clear);
14
12
 
15
13
  it('handles happy path', async () => {
16
14
  const output = chance.paragraph();
@@ -25,11 +23,17 @@ describe('createHandler', () => {
25
23
 
26
24
  await expect(handler(input, ctx)).resolves.toBe(output);
27
25
 
28
- expect(logger.error).not.toHaveBeenCalled();
29
-
30
- expect(logger.debug.mock.calls).toEqual([
31
- ['Handler invoked'],
32
- ['Function succeeded'],
26
+ expect(stdoutMock.calls).toMatchObject([
27
+ {
28
+ awsRequestId: '-',
29
+ level: 20,
30
+ msg: 'Handler invoked',
31
+ },
32
+ {
33
+ awsRequestId: '-',
34
+ level: 20,
35
+ msg: 'Function succeeded',
36
+ },
33
37
  ]);
34
38
  });
35
39
 
@@ -40,9 +44,17 @@ describe('createHandler', () => {
40
44
 
41
45
  await expect(handler(input, ctx)).rejects.toThrow('Function failed');
42
46
 
43
- expect(logger.error).toHaveBeenCalledWith({ err }, 'Function failed');
44
-
45
- expect(logger.debug).not.toHaveBeenCalled();
47
+ expect(stdoutMock.calls).toMatchObject([
48
+ {
49
+ awsRequestId: '-',
50
+ err: {
51
+ message: err.message,
52
+ type: 'Error',
53
+ },
54
+ level: 50,
55
+ msg: 'Function failed',
56
+ },
57
+ ]);
46
58
  });
47
59
 
48
60
  it('handles sync error', async () => {
@@ -54,8 +66,16 @@ describe('createHandler', () => {
54
66
 
55
67
  await expect(handler(input, ctx)).rejects.toThrow('Function failed');
56
68
 
57
- expect(logger.error).toHaveBeenCalledWith({ err }, 'Function failed');
58
-
59
- expect(logger.debug).not.toHaveBeenCalled();
69
+ expect(stdoutMock.calls).toMatchObject([
70
+ {
71
+ awsRequestId: '-',
72
+ err: {
73
+ message: err.message,
74
+ type: 'Error',
75
+ },
76
+ level: 50,
77
+ msg: 'Function failed',
78
+ },
79
+ ]);
60
80
  });
61
81
  });
@@ -1,8 +1,8 @@
1
1
  import type { Context as LambdaContext } from 'aws-lambda';
2
2
  import { datadog } from 'datadog-lambda-js';
3
3
 
4
- import { config } from 'src/config';
5
- import { logger, loggerContext } from 'src/framework/logging';
4
+ import { config } from 'src/config.js';
5
+ import { logger, loggerContext } from 'src/framework/logging.js';
6
6
 
7
7
  type Handler<Event, Output> = (
8
8
  event: Event,
@@ -1,8 +1,8 @@
1
1
  import { AsyncLocalStorage } from 'async_hooks';
2
2
 
3
- import createLogger from '@seek/logger';
3
+ import createLogger, { createDestination } from '@seek/logger';
4
4
 
5
- import { config } from 'src/config';
5
+ import { config } from 'src/config.js';
6
6
 
7
7
  interface LoggerContext {
8
8
  awsRequestId: string;
@@ -10,18 +10,29 @@ interface LoggerContext {
10
10
 
11
11
  export const loggerContext = new AsyncLocalStorage<LoggerContext>();
12
12
 
13
- export const logger = createLogger({
14
- base: {
15
- environment: config.environment,
16
- version: config.version,
13
+ const { destination, stdoutMock } = createDestination({
14
+ mock: config.environment === 'test' && {
15
+ redact: ['awsRequestId'],
17
16
  },
17
+ });
18
18
 
19
- level: config.logLevel,
19
+ export { stdoutMock };
20
20
 
21
- mixin: () => ({ ...loggerContext.getStore() }),
21
+ export const logger = createLogger(
22
+ {
23
+ base: {
24
+ environment: config.environment,
25
+ version: config.version,
26
+ },
22
27
 
23
- name: config.name,
28
+ level: config.logLevel,
24
29
 
25
- transport:
26
- config.environment === 'local' ? { target: 'pino-pretty' } : undefined,
27
- });
30
+ mixin: () => ({ ...loggerContext.getStore() }),
31
+
32
+ name: config.name,
33
+
34
+ transport:
35
+ config.environment === 'local' ? { target: 'pino-pretty' } : undefined,
36
+ },
37
+ destination,
38
+ );
@@ -1,6 +1,6 @@
1
1
  import { sendDistributionMetric } from 'datadog-lambda-js';
2
2
 
3
- import { config } from 'src/config';
3
+ import { config } from 'src/config.js';
4
4
 
5
5
  const prefix = `${config.name}.`;
6
6
 
@@ -2,9 +2,9 @@ import {
2
2
  IdDescriptionSchema,
3
3
  chance,
4
4
  mockIdDescription,
5
- } from 'src/testing/types';
5
+ } from 'src/testing/types.js';
6
6
 
7
- import { validateJson } from './validation';
7
+ import { validateJson } from './validation.js';
8
8
 
9
9
  describe('validateJson', () => {
10
10
  const idDescription = mockIdDescription();
@@ -32,13 +32,12 @@ describe('validateJson', () => {
32
32
  .toThrowErrorMatchingInlineSnapshot(`
33
33
  "[
34
34
  {
35
- "code": "invalid_type",
36
35
  "expected": "string",
37
- "received": "null",
36
+ "code": "invalid_type",
38
37
  "path": [
39
38
  "id"
40
39
  ],
41
- "message": "Expected string, received null"
40
+ "message": "Invalid input: expected string, received null"
42
41
  }
43
42
  ]"
44
43
  `);
@@ -51,22 +50,20 @@ describe('validateJson', () => {
51
50
  .toThrowErrorMatchingInlineSnapshot(`
52
51
  "[
53
52
  {
54
- "code": "invalid_type",
55
53
  "expected": "string",
56
- "received": "undefined",
54
+ "code": "invalid_type",
57
55
  "path": [
58
56
  "id"
59
57
  ],
60
- "message": "Required"
58
+ "message": "Invalid input: expected string, received undefined"
61
59
  },
62
60
  {
63
- "code": "invalid_type",
64
61
  "expected": "string",
65
- "received": "undefined",
62
+ "code": "invalid_type",
66
63
  "path": [
67
64
  "description"
68
65
  ],
69
- "message": "Required"
66
+ "message": "Invalid input: expected string, received undefined"
70
67
  }
71
68
  ]"
72
69
  `);
@@ -1,10 +1,6 @@
1
- import type { z } from 'zod';
1
+ import type { z } from 'zod/v4';
2
2
 
3
- export const validateJson = <
4
- Output,
5
- Def extends z.ZodTypeDef = z.ZodTypeDef,
6
- Input = Output,
7
- >(
3
+ export const validateJson = <Output, Input>(
8
4
  input: string,
9
- schema: z.ZodSchema<Output, Def, Input>,
5
+ schema: z.ZodSchema<Output, Input>,
10
6
  ): Output => schema.parse(JSON.parse(input));
@@ -1,8 +1,8 @@
1
- import type { JobScorerInput, JobScorerOutput } from 'src/types/jobScorer';
1
+ import type { JobScorerInput, JobScorerOutput } from 'src/types/jobScorer.js';
2
2
  import type {
3
3
  JobPublishedEvent,
4
4
  JobScoredEvent,
5
- } from 'src/types/pipelineEvents';
5
+ } from 'src/types/pipelineEvents.js';
6
6
 
7
7
  export const jobPublishedEventToScorerInput = (
8
8
  record: JobPublishedEvent,
@@ -1,7 +1,7 @@
1
- import { scoringService } from 'src/testing/services';
2
- import { chance, mockJobPublishedEvent } from 'src/testing/types';
1
+ import { scoringService } from 'src/testing/services.js';
2
+ import { chance, mockJobPublishedEvent } from 'src/testing/types.js';
3
3
 
4
- import * as jobScorer from './jobScorer';
4
+ import * as jobScorer from './jobScorer.js';
5
5
 
6
6
  describe('scoreJobPublishedEvent', () => {
7
7
  beforeAll(scoringService.spy);
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  jobPublishedEventToScorerInput,
3
3
  jobScorerOutputToScoredEvent,
4
- } from 'src/mapping/jobScorer';
4
+ } from 'src/mapping/jobScorer.js';
5
5
  import {
6
6
  type JobScorerInput,
7
7
  type JobScorerOutput,
8
8
  JobScorerOutputSchema,
9
- } from 'src/types/jobScorer';
9
+ } from 'src/types/jobScorer.js';
10
10
  import type {
11
11
  JobPublishedEvent,
12
12
  JobScoredEvent,
13
- } from 'src/types/pipelineEvents';
13
+ } from 'src/types/pipelineEvents.js';
14
14
 
15
15
  /* istanbul ignore next: simulation of an external service */
16
16
  export const scoringService = {
@@ -1,9 +1,9 @@
1
1
  import { PublishCommand } from '@aws-sdk/client-sns';
2
2
 
3
- import { sns } from 'src/testing/services';
4
- import { chance } from 'src/testing/types';
3
+ import { sns } from 'src/testing/services.js';
4
+ import { chance } from 'src/testing/types.js';
5
5
 
6
- import { sendPipelineEvent } from './pipelineEventSender';
6
+ import { sendPipelineEvent } from './pipelineEventSender.js';
7
7
 
8
8
  describe('sendPipelineEvent', () => {
9
9
  afterEach(() => {
@@ -1,8 +1,8 @@
1
1
  import { PublishCommand } from '@aws-sdk/client-sns';
2
2
 
3
- import { config } from 'src/config';
3
+ import { config } from 'src/config.js';
4
4
 
5
- import { sns } from './aws';
5
+ import { sns } from './aws.js';
6
6
 
7
7
  export const sendPipelineEvent = async (
8
8
  event: unknown,
@@ -1,6 +1,6 @@
1
1
  import type { Context, SQSEvent } from 'aws-lambda';
2
2
 
3
- import { chance } from './types';
3
+ import { chance } from './types.js';
4
4
 
5
5
  export const createCtx = () =>
6
6
  ({
@@ -3,8 +3,8 @@ import 'aws-sdk-client-mock-jest';
3
3
  import { PublishCommand } from '@aws-sdk/client-sns';
4
4
  import { mockClient } from 'aws-sdk-client-mock';
5
5
 
6
- import { sns as snsClient } from 'src/services/aws';
7
- import * as jobScorer from 'src/services/jobScorer';
6
+ import { sns as snsClient } from 'src/services/aws.js';
7
+ import * as jobScorer from 'src/services/jobScorer.js';
8
8
 
9
9
  export const scoringService = {
10
10
  request: jest.fn(),
@@ -1,7 +1,7 @@
1
1
  import { Chance } from 'chance';
2
- import { z } from 'zod';
2
+ import { z } from 'zod/v4';
3
3
 
4
- import type { JobPublishedEvent } from 'src/types/pipelineEvents';
4
+ import type { JobPublishedEvent } from 'src/types/pipelineEvents.js';
5
5
 
6
6
  export type IdDescription = z.infer<typeof IdDescriptionSchema>;
7
7
 
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
 
3
3
  export type JobScorerInput = z.infer<typeof JobScorerInputSchema>;
4
4
 
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v4';
2
2
 
3
3
  export type JobPublishedEvent = z.infer<typeof JobPublishedEventSchema>;
4
4
 
@@ -1,4 +1,4 @@
1
- import { log } from './index';
1
+ import { log } from './index.js';
2
2
 
3
3
  describe('app', () => {
4
4
  it('defines a log function', () => expect(log).toBeDefined());
@@ -1,4 +1,4 @@
1
- import { log } from './index';
1
+ import { log } from './index.js';
2
2
 
3
3
  describe('app', () => {
4
4
  it('defines a log function', () => expect(log).toBeDefined());
@@ -1,16 +0,0 @@
1
- import * as logging from 'src/framework/logging';
2
-
3
- export const logger = {
4
- error: jest.fn(),
5
- info: jest.fn(),
6
-
7
- clear: () => {
8
- logger.error.mockClear();
9
- logger.info.mockClear();
10
- },
11
-
12
- spy: () => {
13
- jest.spyOn(logging.logger, 'error').mockImplementation(logger.error);
14
- jest.spyOn(logging.logger, 'info').mockImplementation(logger.info);
15
- },
16
- };
@@ -1,19 +0,0 @@
1
- import * as logging from 'src/framework/logging';
2
-
3
- export const logger = {
4
- error: jest.fn(),
5
- info: jest.fn(),
6
- debug: jest.fn(),
7
-
8
- clear: () => {
9
- logger.error.mockClear();
10
- logger.info.mockClear();
11
- logger.debug.mockClear();
12
- },
13
-
14
- spy: () => {
15
- jest.spyOn(logging.logger, 'error').mockImplementation(logger.error);
16
- jest.spyOn(logging.logger, 'info').mockImplementation(logger.info);
17
- jest.spyOn(logging.logger, 'debug').mockImplementation(logger.debug);
18
- },
19
- };