@datadog/datadog-ci 2.40.3 → 2.41.0

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 (252) hide show
  1. package/README.md +1 -0
  2. package/dist/commands/deployment/cli.js +2 -1
  3. package/dist/commands/deployment/cli.js.map +1 -1
  4. package/dist/commands/deployment/correlate.d.ts +18 -0
  5. package/dist/commands/deployment/correlate.js +154 -0
  6. package/dist/commands/deployment/correlate.js.map +1 -0
  7. package/dist/commands/dsyms/utils.js +2 -4
  8. package/dist/commands/dsyms/utils.js.map +1 -1
  9. package/dist/helpers/git/get-git-data.d.ts +2 -0
  10. package/dist/helpers/git/get-git-data.js +11 -1
  11. package/dist/helpers/git/get-git-data.js.map +1 -1
  12. package/package.json +3 -2
  13. package/dist/__tests__/cli.test.d.ts +0 -1
  14. package/dist/__tests__/cli.test.js +0 -41
  15. package/dist/__tests__/cli.test.js.map +0 -1
  16. package/dist/commands/cloud-run/__tests__/fixtures.d.ts +0 -2
  17. package/dist/commands/cloud-run/__tests__/fixtures.js +0 -12
  18. package/dist/commands/cloud-run/__tests__/fixtures.js.map +0 -1
  19. package/dist/commands/cloud-run/__tests__/flare.test.d.ts +0 -1
  20. package/dist/commands/cloud-run/__tests__/flare.test.js +0 -557
  21. package/dist/commands/cloud-run/__tests__/flare.test.js.map +0 -1
  22. package/dist/commands/deployment/__tests__/mark.test.d.ts +0 -1
  23. package/dist/commands/deployment/__tests__/mark.test.js +0 -47
  24. package/dist/commands/deployment/__tests__/mark.test.js.map +0 -1
  25. package/dist/commands/dora/__tests__/deployment.test.d.ts +0 -1
  26. package/dist/commands/dora/__tests__/deployment.test.js +0 -201
  27. package/dist/commands/dora/__tests__/deployment.test.js.map +0 -1
  28. package/dist/commands/dsyms/__tests__/upload.test.d.ts +0 -1
  29. package/dist/commands/dsyms/__tests__/upload.test.js +0 -346
  30. package/dist/commands/dsyms/__tests__/upload.test.js.map +0 -1
  31. package/dist/commands/dsyms/__tests__/utils.test.d.ts +0 -1
  32. package/dist/commands/dsyms/__tests__/utils.test.js +0 -103
  33. package/dist/commands/dsyms/__tests__/utils.test.js.map +0 -1
  34. package/dist/commands/elf-symbols/__tests__/elf.test.d.ts +0 -1
  35. package/dist/commands/elf-symbols/__tests__/elf.test.js +0 -813
  36. package/dist/commands/elf-symbols/__tests__/elf.test.js.map +0 -1
  37. package/dist/commands/elf-symbols/__tests__/upload.test.d.ts +0 -1
  38. package/dist/commands/elf-symbols/__tests__/upload.test.js +0 -249
  39. package/dist/commands/elf-symbols/__tests__/upload.test.js.map +0 -1
  40. package/dist/commands/flutter-symbols/__tests__/upload.test.d.ts +0 -1
  41. package/dist/commands/flutter-symbols/__tests__/upload.test.js +0 -617
  42. package/dist/commands/flutter-symbols/__tests__/upload.test.js.map +0 -1
  43. package/dist/commands/gate/__tests__/evaluate.test.d.ts +0 -1
  44. package/dist/commands/gate/__tests__/evaluate.test.js +0 -398
  45. package/dist/commands/gate/__tests__/evaluate.test.js.map +0 -1
  46. package/dist/commands/gate/__tests__/scope.test.d.ts +0 -1
  47. package/dist/commands/gate/__tests__/scope.test.js +0 -29
  48. package/dist/commands/gate/__tests__/scope.test.js.map +0 -1
  49. package/dist/commands/git-metadata/__tests__/git.test.d.ts +0 -1
  50. package/dist/commands/git-metadata/__tests__/git.test.js +0 -132
  51. package/dist/commands/git-metadata/__tests__/git.test.js.map +0 -1
  52. package/dist/commands/git-metadata/__tests__/gitdb.test.d.ts +0 -1
  53. package/dist/commands/git-metadata/__tests__/gitdb.test.js +0 -1386
  54. package/dist/commands/git-metadata/__tests__/gitdb.test.js.map +0 -1
  55. package/dist/commands/git-metadata/__tests__/library.test.d.ts +0 -1
  56. package/dist/commands/git-metadata/__tests__/library.test.js +0 -118
  57. package/dist/commands/git-metadata/__tests__/library.test.js.map +0 -1
  58. package/dist/commands/git-metadata/__tests__/upload.test.d.ts +0 -1
  59. package/dist/commands/git-metadata/__tests__/upload.test.js +0 -52
  60. package/dist/commands/git-metadata/__tests__/upload.test.js.map +0 -1
  61. package/dist/commands/junit/__tests__/id.test.d.ts +0 -1
  62. package/dist/commands/junit/__tests__/id.test.js +0 -24
  63. package/dist/commands/junit/__tests__/id.test.js.map +0 -1
  64. package/dist/commands/junit/__tests__/upload.test.d.ts +0 -1
  65. package/dist/commands/junit/__tests__/upload.test.js +0 -495
  66. package/dist/commands/junit/__tests__/upload.test.js.map +0 -1
  67. package/dist/commands/lambda/__tests__/fixtures.d.ts +0 -51
  68. package/dist/commands/lambda/__tests__/fixtures.js +0 -146
  69. package/dist/commands/lambda/__tests__/fixtures.js.map +0 -1
  70. package/dist/commands/lambda/__tests__/flare.test.d.ts +0 -1
  71. package/dist/commands/lambda/__tests__/flare.test.js +0 -730
  72. package/dist/commands/lambda/__tests__/flare.test.js.map +0 -1
  73. package/dist/commands/lambda/__tests__/functions/commons.test.d.ts +0 -1
  74. package/dist/commands/lambda/__tests__/functions/commons.test.js +0 -791
  75. package/dist/commands/lambda/__tests__/functions/commons.test.js.map +0 -1
  76. package/dist/commands/lambda/__tests__/functions/instrument.part1.test.d.ts +0 -1
  77. package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js +0 -386
  78. package/dist/commands/lambda/__tests__/functions/instrument.part1.test.js.map +0 -1
  79. package/dist/commands/lambda/__tests__/functions/instrument.part2.test.d.ts +0 -1
  80. package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js +0 -721
  81. package/dist/commands/lambda/__tests__/functions/instrument.part2.test.js.map +0 -1
  82. package/dist/commands/lambda/__tests__/functions/uninstrument.test.d.ts +0 -1
  83. package/dist/commands/lambda/__tests__/functions/uninstrument.test.js +0 -513
  84. package/dist/commands/lambda/__tests__/functions/uninstrument.test.js.map +0 -1
  85. package/dist/commands/lambda/__tests__/functions/versionChecker.test.d.ts +0 -1
  86. package/dist/commands/lambda/__tests__/functions/versionChecker.test.js +0 -33
  87. package/dist/commands/lambda/__tests__/functions/versionChecker.test.js.map +0 -1
  88. package/dist/commands/lambda/__tests__/instrument.test.d.ts +0 -1
  89. package/dist/commands/lambda/__tests__/instrument.test.js +0 -1511
  90. package/dist/commands/lambda/__tests__/instrument.test.js.map +0 -1
  91. package/dist/commands/lambda/__tests__/loggroup.test.d.ts +0 -1
  92. package/dist/commands/lambda/__tests__/loggroup.test.js +0 -340
  93. package/dist/commands/lambda/__tests__/loggroup.test.js.map +0 -1
  94. package/dist/commands/lambda/__tests__/prompt.test.d.ts +0 -1
  95. package/dist/commands/lambda/__tests__/prompt.test.js +0 -206
  96. package/dist/commands/lambda/__tests__/prompt.test.js.map +0 -1
  97. package/dist/commands/lambda/__tests__/tags.test.d.ts +0 -1
  98. package/dist/commands/lambda/__tests__/tags.test.js +0 -305
  99. package/dist/commands/lambda/__tests__/tags.test.js.map +0 -1
  100. package/dist/commands/lambda/__tests__/uninstrument.test.d.ts +0 -1
  101. package/dist/commands/lambda/__tests__/uninstrument.test.js +0 -722
  102. package/dist/commands/lambda/__tests__/uninstrument.test.js.map +0 -1
  103. package/dist/commands/measure/__tests__/measure.test.d.ts +0 -1
  104. package/dist/commands/measure/__tests__/measure.test.js +0 -110
  105. package/dist/commands/measure/__tests__/measure.test.js.map +0 -1
  106. package/dist/commands/react-native/__tests__/codepush.test.d.ts +0 -1
  107. package/dist/commands/react-native/__tests__/codepush.test.js +0 -161
  108. package/dist/commands/react-native/__tests__/codepush.test.js.map +0 -1
  109. package/dist/commands/react-native/__tests__/interfaces.test.d.ts +0 -1
  110. package/dist/commands/react-native/__tests__/interfaces.test.js +0 -33
  111. package/dist/commands/react-native/__tests__/interfaces.test.js.map +0 -1
  112. package/dist/commands/react-native/__tests__/upload.test.d.ts +0 -1
  113. package/dist/commands/react-native/__tests__/upload.test.js +0 -238
  114. package/dist/commands/react-native/__tests__/upload.test.js.map +0 -1
  115. package/dist/commands/react-native/__tests__/utils.test.d.ts +0 -1
  116. package/dist/commands/react-native/__tests__/utils.test.js +0 -27
  117. package/dist/commands/react-native/__tests__/utils.test.js.map +0 -1
  118. package/dist/commands/react-native/__tests__/xcode.test.d.ts +0 -1
  119. package/dist/commands/react-native/__tests__/xcode.test.js +0 -465
  120. package/dist/commands/react-native/__tests__/xcode.test.js.map +0 -1
  121. package/dist/commands/sarif/__tests__/upload.test.d.ts +0 -1
  122. package/dist/commands/sarif/__tests__/upload.test.js +0 -228
  123. package/dist/commands/sarif/__tests__/upload.test.js.map +0 -1
  124. package/dist/commands/sbom/__tests__/payload.test.d.ts +0 -1
  125. package/dist/commands/sbom/__tests__/payload.test.js +0 -262
  126. package/dist/commands/sbom/__tests__/payload.test.js.map +0 -1
  127. package/dist/commands/sbom/__tests__/validation.test.d.ts +0 -1
  128. package/dist/commands/sbom/__tests__/validation.test.js +0 -41
  129. package/dist/commands/sbom/__tests__/validation.test.js.map +0 -1
  130. package/dist/commands/sourcemaps/__tests__/upload.test.d.ts +0 -1
  131. package/dist/commands/sourcemaps/__tests__/upload.test.js +0 -270
  132. package/dist/commands/sourcemaps/__tests__/upload.test.js.map +0 -1
  133. package/dist/commands/sourcemaps/__tests__/utils.test.d.ts +0 -1
  134. package/dist/commands/sourcemaps/__tests__/utils.test.js +0 -31
  135. package/dist/commands/sourcemaps/__tests__/utils.test.js.map +0 -1
  136. package/dist/commands/stepfunctions/__tests__/awsCommands.test.d.ts +0 -1
  137. package/dist/commands/stepfunctions/__tests__/awsCommands.test.js +0 -192
  138. package/dist/commands/stepfunctions/__tests__/awsCommands.test.js.map +0 -1
  139. package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.d.ts +0 -6
  140. package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.js +0 -45
  141. package/dist/commands/stepfunctions/__tests__/fixtures/aws-resources.js.map +0 -1
  142. package/dist/commands/stepfunctions/__tests__/fixtures/cli.d.ts +0 -5
  143. package/dist/commands/stepfunctions/__tests__/fixtures/cli.js +0 -19
  144. package/dist/commands/stepfunctions/__tests__/fixtures/cli.js.map +0 -1
  145. package/dist/commands/stepfunctions/__tests__/helpers.test.d.ts +0 -1
  146. package/dist/commands/stepfunctions/__tests__/helpers.test.js +0 -205
  147. package/dist/commands/stepfunctions/__tests__/helpers.test.js.map +0 -1
  148. package/dist/commands/stepfunctions/__tests__/instrument.test.d.ts +0 -1
  149. package/dist/commands/stepfunctions/__tests__/instrument.test.js +0 -431
  150. package/dist/commands/stepfunctions/__tests__/instrument.test.js.map +0 -1
  151. package/dist/commands/stepfunctions/__tests__/uninstrument.test.d.ts +0 -1
  152. package/dist/commands/stepfunctions/__tests__/uninstrument.test.js +0 -166
  153. package/dist/commands/stepfunctions/__tests__/uninstrument.test.js.map +0 -1
  154. package/dist/commands/synthetics/__tests__/api.test.d.ts +0 -1
  155. package/dist/commands/synthetics/__tests__/api.test.js +0 -422
  156. package/dist/commands/synthetics/__tests__/api.test.js.map +0 -1
  157. package/dist/commands/synthetics/__tests__/cli.test.d.ts +0 -1
  158. package/dist/commands/synthetics/__tests__/cli.test.js +0 -1325
  159. package/dist/commands/synthetics/__tests__/cli.test.js.map +0 -1
  160. package/dist/commands/synthetics/__tests__/fixtures.d.ts +0 -149
  161. package/dist/commands/synthetics/__tests__/fixtures.js +0 -507
  162. package/dist/commands/synthetics/__tests__/fixtures.js.map +0 -1
  163. package/dist/commands/synthetics/__tests__/mobile.test.d.ts +0 -1
  164. package/dist/commands/synthetics/__tests__/mobile.test.js +0 -376
  165. package/dist/commands/synthetics/__tests__/mobile.test.js.map +0 -1
  166. package/dist/commands/synthetics/__tests__/reporters/default.test.d.ts +0 -1
  167. package/dist/commands/synthetics/__tests__/reporters/default.test.js +0 -354
  168. package/dist/commands/synthetics/__tests__/reporters/default.test.js.map +0 -1
  169. package/dist/commands/synthetics/__tests__/reporters/junit.test.d.ts +0 -1
  170. package/dist/commands/synthetics/__tests__/reporters/junit.test.js +0 -353
  171. package/dist/commands/synthetics/__tests__/reporters/junit.test.js.map +0 -1
  172. package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.d.ts +0 -1
  173. package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.js +0 -232
  174. package/dist/commands/synthetics/__tests__/reporters/mobile/app-upload.test.js.map +0 -1
  175. package/dist/commands/synthetics/__tests__/run-tests-lib.test.d.ts +0 -1
  176. package/dist/commands/synthetics/__tests__/run-tests-lib.test.js +0 -735
  177. package/dist/commands/synthetics/__tests__/run-tests-lib.test.js.map +0 -1
  178. package/dist/commands/synthetics/__tests__/test.test.d.ts +0 -1
  179. package/dist/commands/synthetics/__tests__/test.test.js +0 -33
  180. package/dist/commands/synthetics/__tests__/test.test.js.map +0 -1
  181. package/dist/commands/synthetics/__tests__/tunnel/crypto.test.d.ts +0 -1
  182. package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js +0 -21
  183. package/dist/commands/synthetics/__tests__/tunnel/crypto.test.js.map +0 -1
  184. package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.d.ts +0 -1
  185. package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js +0 -80
  186. package/dist/commands/synthetics/__tests__/tunnel/tunnel.test.js.map +0 -1
  187. package/dist/commands/synthetics/__tests__/tunnel/websocket.test.d.ts +0 -1
  188. package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js +0 -109
  189. package/dist/commands/synthetics/__tests__/tunnel/websocket.test.js.map +0 -1
  190. package/dist/commands/synthetics/__tests__/utils/internal.test.d.ts +0 -1
  191. package/dist/commands/synthetics/__tests__/utils/internal.test.js +0 -186
  192. package/dist/commands/synthetics/__tests__/utils/internal.test.js.map +0 -1
  193. package/dist/commands/synthetics/__tests__/utils/public.test.d.ts +0 -1
  194. package/dist/commands/synthetics/__tests__/utils/public.test.js +0 -1526
  195. package/dist/commands/synthetics/__tests__/utils/public.test.js.map +0 -1
  196. package/dist/commands/tag/__tests__/tag.test.d.ts +0 -1
  197. package/dist/commands/tag/__tests__/tag.test.js +0 -75
  198. package/dist/commands/tag/__tests__/tag.test.js.map +0 -1
  199. package/dist/commands/trace/__tests__/trace.test.d.ts +0 -1
  200. package/dist/commands/trace/__tests__/trace.test.js +0 -145
  201. package/dist/commands/trace/__tests__/trace.test.js.map +0 -1
  202. package/dist/commands/unity-symbols/__tests__/upload.test.d.ts +0 -1
  203. package/dist/commands/unity-symbols/__tests__/upload.test.js +0 -369
  204. package/dist/commands/unity-symbols/__tests__/upload.test.js.map +0 -1
  205. package/dist/helpers/__tests__/app.test.d.ts +0 -1
  206. package/dist/helpers/__tests__/app.test.js +0 -31
  207. package/dist/helpers/__tests__/app.test.js.map +0 -1
  208. package/dist/helpers/__tests__/ci.test.d.ts +0 -1
  209. package/dist/helpers/__tests__/ci.test.js +0 -252
  210. package/dist/helpers/__tests__/ci.test.js.map +0 -1
  211. package/dist/helpers/__tests__/fixtures.d.ts +0 -33
  212. package/dist/helpers/__tests__/fixtures.js +0 -71
  213. package/dist/helpers/__tests__/fixtures.js.map +0 -1
  214. package/dist/helpers/__tests__/flare.test.d.ts +0 -1
  215. package/dist/helpers/__tests__/flare.test.js +0 -226
  216. package/dist/helpers/__tests__/flare.test.js.map +0 -1
  217. package/dist/helpers/__tests__/fs.test.d.ts +0 -1
  218. package/dist/helpers/__tests__/fs.test.js +0 -189
  219. package/dist/helpers/__tests__/fs.test.js.map +0 -1
  220. package/dist/helpers/__tests__/plist.test.d.ts +0 -1
  221. package/dist/helpers/__tests__/plist.test.js +0 -43
  222. package/dist/helpers/__tests__/plist.test.js.map +0 -1
  223. package/dist/helpers/__tests__/prompt.test.d.ts +0 -1
  224. package/dist/helpers/__tests__/prompt.test.js +0 -71
  225. package/dist/helpers/__tests__/prompt.test.js.map +0 -1
  226. package/dist/helpers/__tests__/retry.test.d.ts +0 -1
  227. package/dist/helpers/__tests__/retry.test.js +0 -99
  228. package/dist/helpers/__tests__/retry.test.js.map +0 -1
  229. package/dist/helpers/__tests__/tags.test.d.ts +0 -1
  230. package/dist/helpers/__tests__/tags.test.js +0 -71
  231. package/dist/helpers/__tests__/tags.test.js.map +0 -1
  232. package/dist/helpers/__tests__/upload.test.d.ts +0 -1
  233. package/dist/helpers/__tests__/upload.test.js +0 -231
  234. package/dist/helpers/__tests__/upload.test.js.map +0 -1
  235. package/dist/helpers/__tests__/user-provided-git.test.d.ts +0 -1
  236. package/dist/helpers/__tests__/user-provided-git.test.js +0 -119
  237. package/dist/helpers/__tests__/user-provided-git.test.js.map +0 -1
  238. package/dist/helpers/__tests__/utils.test.d.ts +0 -1
  239. package/dist/helpers/__tests__/utils.test.js +0 -429
  240. package/dist/helpers/__tests__/utils.test.js.map +0 -1
  241. package/dist/helpers/__tests__/validation.test.d.ts +0 -1
  242. package/dist/helpers/__tests__/validation.test.js +0 -25
  243. package/dist/helpers/__tests__/validation.test.js.map +0 -1
  244. package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.d.ts +0 -1
  245. package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js +0 -103
  246. package/dist/helpers/git/__tests__/format-git-sourcemaps-data.test.js.map +0 -1
  247. package/dist/helpers/git/__tests__/format-git-span-data.test.d.ts +0 -1
  248. package/dist/helpers/git/__tests__/format-git-span-data.test.js +0 -121
  249. package/dist/helpers/git/__tests__/format-git-span-data.test.js.map +0 -1
  250. package/dist/helpers/git/__tests__/get-git-data.test.d.ts +0 -1
  251. package/dist/helpers/git/__tests__/get-git-data.test.js +0 -72
  252. package/dist/helpers/git/__tests__/get-git-data.test.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"upload.test.js","sourceRoot":"","sources":["../../../../src/commands/react-native/__tests__/upload.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmB;AAEnB,kDAAyB;AACzB,qDAA0C;AAE1C,uEAAwD;AAExD,8CAAyC;AACzC,sCAAuC;AAEvC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACtB,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;QAC5B,IAAI,CAAC,+CAA+C,EAAE,GAAS,EAAE;YAC/D,OAAO,CAA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AAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,oBAAoB,iBAAiB,CAAC,MAAM,0BAA0B,CAAC,CAAA;KAClH;SAAM;QACL,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,oBAAoB,iBAAiB,CAAC,MAAM,yBAAyB,CAAC,CAAA;KACjH;AACH,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- const utils_1 = require("../utils");
8
- describe('react-native utils', () => {
9
- describe('getBundleName', () => {
10
- beforeEach(() => {
11
- jest.spyOn(fs_1.default, 'createReadStream').mockImplementation(() => undefined);
12
- });
13
- test('should extract the bundle name from the file ==', () => {
14
- expect((0, utils_1.getBundleName)('./path/index.bundle', 'android')).toBe('index.bundle');
15
- });
16
- test('should extract the bundle name from the file when no slash in path', () => {
17
- expect((0, utils_1.getBundleName)('index.bundle', 'android')).toBe('index.bundle');
18
- });
19
- test('should return the default iOS bundle name when no bundle is specified on iOS', () => {
20
- expect((0, utils_1.getBundleName)(undefined, 'ios')).toBe('main.jsbundle');
21
- });
22
- test('should return the default Android bundle name when no bundle is specified on Android', () => {
23
- expect((0, utils_1.getBundleName)(undefined, 'android')).toBe('index.android.bundle');
24
- });
25
- });
26
- });
27
- //# sourceMappingURL=utils.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../../../src/commands/react-native/__tests__/utils.test.ts"],"names":[],"mappings":";;;;;AAAA,4CAAmB;AAEnB,oCAAsC;AAEtC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;QAC7B,UAAU,CAAC,GAAG,EAAE;YACd,IAAI,CAAC,KAAK,CAAC,YAAE,EAAE,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,GAAG,EAAE,CAAC,SAAgB,CAAC,CAAA;QAC/E,CAAC,CAAC,CAAA;QACF,IAAI,CAAC,iDAAiD,EAAE,GAAG,EAAE;YAC3D,MAAM,CAAC,IAAA,qBAAa,EAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QAC9E,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,oEAAoE,EAAE,GAAG,EAAE;YAC9E,MAAM,CAAC,IAAA,qBAAa,EAAC,cAAc,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;QACvE,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,8EAA8E,EAAE,GAAG,EAAE;YACxF,MAAM,CAAC,IAAA,qBAAa,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;QAC/D,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,sFAAsF,EAAE,GAAG,EAAE;YAChG,MAAM,CAAC,IAAA,qBAAa,EAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAA;QAC1E,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,465 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- Object.defineProperty(exports, "__esModule", { value: true });
35
- const advanced_1 = require("clipanion/lib/advanced");
36
- const formatGitSourcemapsData = __importStar(require("../../../helpers/git/format-git-sourcemaps-data"));
37
- const utils = __importStar(require("../utils"));
38
- const xcode_1 = require("../xcode");
39
- beforeEach(() => {
40
- delete process.env.CONFIGURATION;
41
- delete process.env.CONFIGURATION_BUILD_DIR;
42
- delete process.env.CURRENT_PROJECT_VERSION;
43
- delete process.env.DATADOG_API_KEY;
44
- delete process.env.EXTRA_PACKAGER_ARGS;
45
- delete process.env.INFOPLIST_FILE;
46
- delete process.env.MARKETING_VERSION;
47
- delete process.env.PODS_PODFILE_DIR_PATH;
48
- delete process.env.PRODUCT_BUNDLE_IDENTIFIER;
49
- delete process.env.PROJECT_DIR;
50
- delete process.env.SERVICE_NAME_IOS;
51
- delete process.env.SOURCEMAP_FILE;
52
- delete process.env.UNLOCALIZED_RESOURCES_FOLDER_PATH;
53
- delete process.env.USE_HERMES;
54
- delete process.env.SKIP_BUNDLING;
55
- delete process.env.PLATFORM_NAME;
56
- delete process.env.FORCE_BUNDLING;
57
- reactNativeVersionSpy.mockClear();
58
- });
59
- const makeCli = () => {
60
- const cli = new advanced_1.Cli();
61
- cli.register(xcode_1.XCodeCommand);
62
- return cli;
63
- };
64
- const reactNativeVersionSpy = jest.spyOn(utils, 'getReactNativeVersion').mockReturnValue(undefined);
65
- const createMockContext = () => {
66
- let data = '';
67
- let errorData = '';
68
- return {
69
- stderr: {
70
- toString: () => errorData,
71
- write: (input) => {
72
- errorData += input;
73
- },
74
- },
75
- stdout: {
76
- toString: () => data,
77
- write: (input) => {
78
- data += input;
79
- },
80
- },
81
- };
82
- };
83
- const basicEnvironment = {
84
- CONFIGURATION: 'Release',
85
- CONFIGURATION_BUILD_DIR: './src/commands/react-native/__tests__/fixtures/basic-ios',
86
- CURRENT_PROJECT_VERSION: '000020',
87
- MARKETING_VERSION: '0.0.2',
88
- PRODUCT_BUNDLE_IDENTIFIER: 'com.myapp.test',
89
- SOURCEMAP_FILE: './src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map',
90
- PLATFORM_NAME: 'iphoneos',
91
- };
92
- const runCLI = (script, options) => __awaiter(void 0, void 0, void 0, function* () {
93
- const cli = makeCli();
94
- const context = createMockContext();
95
- process.env = Object.assign(Object.assign({}, process.env), { DATADOG_API_KEY: 'PLACEHOLDER' });
96
- const command = ['react-native', 'xcode'];
97
- if (script) {
98
- command.push(script);
99
- }
100
- command.push('--dry-run');
101
- if (options === null || options === void 0 ? void 0 : options.force) {
102
- command.push('--force');
103
- }
104
- if (options === null || options === void 0 ? void 0 : options.disableGit) {
105
- command.push('--disable-git');
106
- }
107
- if (options === null || options === void 0 ? void 0 : options.configPath) {
108
- command.push('--config', options.configPath);
109
- }
110
- if (options === null || options === void 0 ? void 0 : options.repositoryURL) {
111
- command.push('--repository-url', options.repositoryURL);
112
- }
113
- if (options === null || options === void 0 ? void 0 : options.infoPlistPath) {
114
- command.push('--info-plist-path', options.infoPlistPath);
115
- }
116
- if (options === null || options === void 0 ? void 0 : options.service) {
117
- command.push('--service');
118
- command.push(options.service);
119
- }
120
- if (options === null || options === void 0 ? void 0 : options.composeSourcemapsPath) {
121
- command.push('--compose-sourcemaps-path');
122
- command.push(options.composeSourcemapsPath);
123
- }
124
- const code = yield cli.run(command, context);
125
- return { context, code };
126
- });
127
- describe('xcode', () => {
128
- describe('getBundleLocation', () => {
129
- test('should return the location from CONFIGURATION_BUILD_DIR', () => {
130
- process.env.CONFIGURATION_BUILD_DIR = './src/commands/react-native/__tests__/fixtures/basic-ios';
131
- const command = new xcode_1.XCodeCommand();
132
- expect(command['getBundleLocation']()).toBe('./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle');
133
- });
134
- test('should return null if no CONFIGURATION_BUILD_DIR is specified', () => {
135
- const command = new xcode_1.XCodeCommand();
136
- expect(command['getBundleLocation']()).toBeNull();
137
- });
138
- });
139
- describe('getSourcemapsLocation', () => {
140
- test('should return the location from SOURCEMAP_FILE', () => {
141
- process.env.SOURCEMAP_FILE = './main.jsbundle.map';
142
- const command = new xcode_1.XCodeCommand();
143
- expect(command['getSourcemapsLocation']()).toMatch('./main.jsbundle.map');
144
- });
145
- test('should return the location from EXTRA_PACKAGER_ARGS', () => {
146
- process.env.EXTRA_PACKAGER_ARGS = '--bundle-output ./main.jsbundle --sourcemap-output ./main.jsbundle.map';
147
- const command = new xcode_1.XCodeCommand();
148
- expect(command['getSourcemapsLocation']()).toBe('./main.jsbundle.map');
149
- });
150
- test('should return null if no location is in EXTRA_PACKAGER_ARGS and SOURCEMAP_FILE is undefined', () => {
151
- process.env.EXTRA_PACKAGER_ARGS = '--bundle-output ./main.jsbundle';
152
- const command = new xcode_1.XCodeCommand();
153
- expect(command['getSourcemapsLocation']()).toBeNull();
154
- });
155
- test('should return null if EXTRA_PACKAGER_ARGS and SOURCEMAP_FILE are undefined', () => {
156
- const command = new xcode_1.XCodeCommand();
157
- expect(command['getSourcemapsLocation']()).toBeNull();
158
- });
159
- });
160
- describe('execute', () => {
161
- test('should run the provided script and upload sourcemaps', () => __awaiter(void 0, void 0, void 0, function* () {
162
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
163
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
164
- // Uncomment these lines for debugging failing script
165
- // console.log(context.stdout.toString())
166
- // console.log(context.stderr.toString())
167
- expect(code).toBe(0);
168
- const output = context.stdout.toString();
169
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
170
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
171
- }));
172
- test('should run the provided script and upload sourcemaps when no path is provided', () => __awaiter(void 0, void 0, void 0, function* () {
173
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), {
174
- // This ensures we point to an existing file as the command is ran without any script path
175
- DATADOG_CI_REACT_NATIVE_PATH: './src/commands/react-native/__tests__/fixtures/react-native' });
176
- const { context, code } = yield runCLI();
177
- // Uncomment these lines for debugging failing script
178
- // console.log(context.stdout.toString())
179
- // console.log(context.stderr.toString())
180
- expect(code).toBe(0);
181
- const output = context.stdout.toString();
182
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
183
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
184
- }));
185
- test('should run the provided script, compose and upload sourcemaps when using hermes', () => __awaiter(void 0, void 0, void 0, function* () {
186
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION_BUILD_DIR: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps', UNLOCALIZED_RESOURCES_FOLDER_PATH: 'MyApp.app', USE_HERMES: 'true' });
187
- reactNativeVersionSpy.mockReturnValue('0.69.0');
188
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
189
- composeSourcemapsPath: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps/compose-sourcemaps.js',
190
- });
191
- // Uncomment these lines for debugging failing script
192
- // console.log(context.stdout.toString())
193
- // console.log(context.stderr.toString())
194
- expect(code).toBe(0);
195
- const output = context.stdout.toString();
196
- expect(output).toContain('Hermes detected, composing sourcemaps');
197
- expect(output).toContain('Successfully ran the compose script for ./src/commands/react-native/__tests__/fixtures/compose-sourcemaps/main.jsbundle.map ./src/commands/react-native/__tests__/fixtures/compose-sourcemaps/MyApp.app/main.jsbundle.map ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map');
198
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
199
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
200
- }));
201
- test('should set the USE_HERMES env variable for RN 0.70 projects using hermes', () => __awaiter(void 0, void 0, void 0, function* () {
202
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION_BUILD_DIR: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps', UNLOCALIZED_RESOURCES_FOLDER_PATH: 'MyApp.app', PODS_PODFILE_DIR_PATH: './src/commands/react-native/__tests__/fixtures/podfile-lock/with-hermes' });
203
- reactNativeVersionSpy.mockReturnValue('0.70.0');
204
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/echo_env_script.sh', {
205
- composeSourcemapsPath: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps/compose-sourcemaps.js',
206
- });
207
- // Uncomment these lines for debugging failing script
208
- // console.log(context.stdout.toString())
209
- // console.log(context.stderr.toString())
210
- expect(code).toBe(0);
211
- const output = context.stdout.toString();
212
- expect(output).toContain('USE_HERMES=true');
213
- expect(output).toContain('Hermes detected, composing sourcemaps');
214
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
215
- }));
216
- test('should not set the USE_HERMES env variable for RN 0.70 projects not using hermes', () => __awaiter(void 0, void 0, void 0, function* () {
217
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION_BUILD_DIR: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps', UNLOCALIZED_RESOURCES_FOLDER_PATH: 'MyApp.app', PODS_PODFILE_DIR_PATH: './src/commands/react-native/__tests__/fixtures/podfile-lock/without-hermes', USE_HERMES: 'false' });
218
- reactNativeVersionSpy.mockReturnValue('0.70.0');
219
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/echo_env_script.sh', {
220
- composeSourcemapsPath: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps/compose-sourcemaps.js',
221
- });
222
- // Uncomment these lines for debugging failing script
223
- // console.log(context.stdout.toString())
224
- // console.log(context.stderr.toString())
225
- expect(code).toBe(0);
226
- const output = context.stdout.toString();
227
- expect(output).not.toContain('USE_HERMES=true');
228
- expect(output).not.toContain('Hermes detected, composing sourcemaps');
229
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
230
- }));
231
- test('should not compose hermes sourcemaps for RN 0.71 projects', () => __awaiter(void 0, void 0, void 0, function* () {
232
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION_BUILD_DIR: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps', UNLOCALIZED_RESOURCES_FOLDER_PATH: 'MyApp.app', PODS_PODFILE_DIR_PATH: './src/commands/react-native/__tests__/fixtures/podfile-lock/with-hermes' });
233
- reactNativeVersionSpy.mockReturnValue('0.71.0');
234
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/echo_env_script.sh', {
235
- composeSourcemapsPath: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps/compose-sourcemaps.js',
236
- });
237
- // Uncomment these lines for debugging failing script
238
- // console.log(context.stdout.toString())
239
- // console.log(context.stderr.toString())
240
- expect(code).toBe(0);
241
- const output = context.stdout.toString();
242
- expect(output).not.toContain('Hermes detected, composing sourcemaps');
243
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
244
- }));
245
- test('should not bundle RN code when using hermes and building for simulator in debug mode', () => __awaiter(void 0, void 0, void 0, function* () {
246
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION_BUILD_DIR: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps', UNLOCALIZED_RESOURCES_FOLDER_PATH: 'MyApp.app', USE_HERMES: 'true', CONFIGURATION: 'Debug', PLATFORM_NAME: 'iphonesimulator' });
247
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
248
- composeSourcemapsPath: './src/commands/react-native/__tests__/fixtures/compose-sourcemaps/compose-sourcemaps.js',
249
- });
250
- // Uncomment these lines for debugging failing script
251
- // console.log(context.stdout.toString())
252
- // console.log(context.stderr.toString())
253
- expect(code).toBe(0);
254
- const output = context.stdout.toString();
255
- expect(output).toContain('Skipping bundling and sourcemaps upload.');
256
- expect(output).not.toContain('Hermes detected, composing sourcemaps');
257
- }));
258
- test('should not bundle nor upload sourcemaps when the build configuration is Debug and target is simulator', () => __awaiter(void 0, void 0, void 0, function* () {
259
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION: 'Debug', PLATFORM_NAME: 'iphonesimulator' });
260
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
261
- // Uncomment these lines for debugging failing script
262
- // console.log(context.stdout.toString())
263
- // console.log(context.stderr.toString())
264
- expect(code).toBe(0);
265
- const output = context.stdout.toString();
266
- expect(output).toContain('Skipping bundling and sourcemaps upload.');
267
- expect(output).not.toContain('Starting successful script');
268
- }));
269
- test('should bundle but not upload sourcemaps when the build configuration is Debug and target is phone', () => __awaiter(void 0, void 0, void 0, function* () {
270
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION: 'Debug', PLATFORM_NAME: 'iphoneos' });
271
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
272
- // Uncomment these lines for debugging failing script
273
- // console.log(context.stdout.toString())
274
- // console.log(context.stderr.toString())
275
- expect(code).toBe(0);
276
- const output = context.stdout.toString();
277
- expect(output).toContain('Starting successful script');
278
- expect(output).toContain('Build configuration Debug is not Release, skipping sourcemaps upload.');
279
- }));
280
- test('should bundle but not upload sourcemaps when the build configuration is Debug and user enforce bundling', () => __awaiter(void 0, void 0, void 0, function* () {
281
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION: 'Debug', PLATFORM_NAME: 'iphonesimulator', FORCE_BUNDLING: 'true' });
282
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
283
- // Uncomment these lines for debugging failing script
284
- // console.log(context.stdout.toString())
285
- // console.log(context.stderr.toString())
286
- expect(code).toBe(0);
287
- const output = context.stdout.toString();
288
- expect(output).toContain('Starting successful script');
289
- expect(output).toContain('Build configuration Debug is not Release, skipping sourcemaps upload.');
290
- }));
291
- test('should not bundle nor upload sourcemaps when user skips bundling', () => __awaiter(void 0, void 0, void 0, function* () {
292
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION: 'Release', SKIP_BUNDLING: 'true' });
293
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
294
- // Uncomment these lines for debugging failing script
295
- // console.log(context.stdout.toString())
296
- // console.log(context.stderr.toString())
297
- expect(code).toBe(0);
298
- const output = context.stdout.toString();
299
- expect(output).toContain('Skipping bundling and sourcemaps upload.');
300
- expect(output).not.toContain('Starting successful script');
301
- }));
302
- test('should run the provided script and upload sourcemaps when the build configuration is Debug with force option', () => __awaiter(void 0, void 0, void 0, function* () {
303
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { CONFIGURATION: 'Debug' });
304
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
305
- force: true,
306
- });
307
- // Uncomment these lines for debugging failing script
308
- // console.log(context.stdout.toString())
309
- // console.log(context.stderr.toString())
310
- expect(code).toBe(0);
311
- const output = context.stdout.toString();
312
- expect(output).toContain('Force upload for configuration Debug');
313
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
314
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
315
- }));
316
- test('should run the provided script and upload sourcemaps when a custom service is specified', () => __awaiter(void 0, void 0, void 0, function* () {
317
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
318
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
319
- service: 'com.custom',
320
- });
321
- // Uncomment these lines for debugging failing script
322
- // console.log(context.stdout.toString())
323
- // console.log(context.stderr.toString())
324
- expect(code).toBe(0);
325
- const output = context.stdout.toString();
326
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
327
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.custom');
328
- }));
329
- test.each([['PRODUCT_BUNDLE_IDENTIFIER'], ['CONFIGURATION']])('should provide a custom message when %s xcode environment variable is missing', (variable) => __awaiter(void 0, void 0, void 0, function* () {
330
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
331
- delete process.env[variable];
332
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
333
- // Uncomment these lines for debugging failing script
334
- // console.log(context.stdout.toString())
335
- // console.log(context.stderr.toString())
336
- expect(code).toBe(1);
337
- const output = context.stderr.toString();
338
- expect(output).toContain(`Environment variable ${variable} is missing for Datadog sourcemaps upload.`);
339
- }));
340
- test('should provide a clear error message when the release version cannot be found', () => __awaiter(void 0, void 0, void 0, function* () {
341
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
342
- delete process.env.MARKETING_VERSION;
343
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
344
- // Uncomment these lines for debugging failing script
345
- // console.log(context.stdout.toString())
346
- // console.log(context.stderr.toString())
347
- expect(code).toBe(1);
348
- const output = context.stderr.toString();
349
- expect(output).toContain(`Version could not be found.`);
350
- }));
351
- test('should provide a clear error message when the build version cannot be found', () => __awaiter(void 0, void 0, void 0, function* () {
352
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
353
- delete process.env.CURRENT_PROJECT_VERSION;
354
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
355
- // Uncomment these lines for debugging failing script
356
- // console.log(context.stdout.toString())
357
- // console.log(context.stderr.toString())
358
- expect(code).toBe(1);
359
- const output = context.stderr.toString();
360
- expect(output).toContain(`Build version could not be found.`);
361
- }));
362
- test('should get versions from plist file even if env variables are defined', () => __awaiter(void 0, void 0, void 0, function* () {
363
- process.env = Object.assign(Object.assign(Object.assign({}, process.env), basicEnvironment), { PROJECT_DIR: 'src/commands/react-native/__tests__', INFOPLIST_FILE: 'fixtures/info-plist/Info.plist' });
364
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
365
- // Uncomment these lines for debugging failing script
366
- // console.log(context.stdout.toString())
367
- // console.log(context.stderr.toString())
368
- expect(code).toBe(0);
369
- const output = context.stdout.toString();
370
- expect(output).toContain('version: 1.0.4 build: 12');
371
- }));
372
- test('should get versions from plist file through argument if env variables are not defined', () => __awaiter(void 0, void 0, void 0, function* () {
373
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
374
- delete process.env.CURRENT_PROJECT_VERSION;
375
- delete process.env.MARKETING_VERSION;
376
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
377
- infoPlistPath: 'src/commands/react-native/__tests__/fixtures/info-plist/Info.plist',
378
- });
379
- // Uncomment these lines for debugging failing script
380
- // console.log(context.stdout.toString())
381
- // console.log(context.stderr.toString())
382
- expect(code).toBe(0);
383
- const output = context.stdout.toString();
384
- expect(output).toContain('version: 1.0.4 build: 12');
385
- }));
386
- test('should provide a clear error message when the script path is incorrect', () => __awaiter(void 0, void 0, void 0, function* () {
387
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
388
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/non_existent.sh');
389
- // Uncomment these lines for debugging failing script
390
- // console.log(context.stdout.toString())
391
- // console.log(context.stderr.toString())
392
- expect(code).toBe(1);
393
- const output = context.stderr.toString();
394
- expect(output).toContain('Error running bundle script from datadog-ci xcode');
395
- expect(output).toContain('Error: spawn ./src/commands/react-native/__tests__/fixtures/bundle-script/non_existent.sh ENOENT');
396
- }));
397
- test('should forward the error message from the script when the script fails', () => __awaiter(void 0, void 0, void 0, function* () {
398
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
399
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/failing_script.sh');
400
- // Uncomment these lines for debugging failing script
401
- // console.log(context.stdout.toString())
402
- // console.log(context.stderr.toString())
403
- expect(code).toBe(1);
404
- const output = context.stdout.toString();
405
- expect(output).toContain('[bundle script]: Starting failing script');
406
- const errorOutput = context.stderr.toString();
407
- expect(errorOutput).toContain('Error running bundle script from datadog-ci xcode.');
408
- expect(errorOutput).toContain('[bundle script]: Custom error message from script');
409
- }));
410
- test('should provide a clear error message when no bundle file is present', () => __awaiter(void 0, void 0, void 0, function* () {
411
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
412
- delete process.env.CONFIGURATION_BUILD_DIR;
413
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
414
- // Uncomment these lines for debugging failing script
415
- // console.log(context.stdout.toString())
416
- // console.log(context.stderr.toString())
417
- expect(code).toBe(1);
418
- const errorOutput = context.stderr.toString();
419
- expect(errorOutput).toContain('No bundle file output has been specified');
420
- }));
421
- test('should provide a clear error message when no sourcemap file is present', () => __awaiter(void 0, void 0, void 0, function* () {
422
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
423
- delete process.env.SOURCEMAP_FILE;
424
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh');
425
- // Uncomment these lines for debugging failing script
426
- // console.log(context.stdout.toString())
427
- // console.log(context.stderr.toString())
428
- expect(code).toBe(1);
429
- const errorOutput = context.stderr.toString();
430
- expect(errorOutput).toContain('No sourcemap output has been specified');
431
- }));
432
- test('should forward arguments to upload command', () => __awaiter(void 0, void 0, void 0, function* () {
433
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
434
- const getRepositoryDataSpy = jest.spyOn(formatGitSourcemapsData, 'getRepositoryData');
435
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
436
- configPath: './src/commands/react-native/__tests__/fixtures/config/config-with-api-key.json',
437
- repositoryURL: 'https://example.com',
438
- });
439
- // Uncomment these lines for debugging failing script
440
- // console.log(context.stdout.toString())
441
- // console.log(context.stderr.toString())
442
- expect(code).toBe(0);
443
- const output = context.stdout.toString();
444
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
445
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
446
- expect(getRepositoryDataSpy).toHaveBeenCalledWith(expect.anything(), 'https://example.com');
447
- }));
448
- test('should disable git in upload command', () => __awaiter(void 0, void 0, void 0, function* () {
449
- process.env = Object.assign(Object.assign({}, process.env), basicEnvironment);
450
- const getRepositoryDataSpy = jest.spyOn(formatGitSourcemapsData, 'getRepositoryData');
451
- const { context, code } = yield runCLI('./src/commands/react-native/__tests__/fixtures/bundle-script/successful_script.sh', {
452
- disableGit: true,
453
- });
454
- // Uncomment these lines for debugging failing script
455
- // console.log(context.stdout.toString())
456
- // console.log(context.stderr.toString())
457
- expect(code).toBe(0);
458
- const output = context.stdout.toString();
459
- expect(output).toContain('Upload of ./src/commands/react-native/__tests__/fixtures/basic-ios/main.jsbundle.map for bundle main.jsbundle on platform ios');
460
- expect(output).toContain('version: 0.0.2 build: 000020 service: com.myapp.test');
461
- expect(getRepositoryDataSpy).not.toHaveBeenCalled();
462
- }));
463
- });
464
- });
465
- //# sourceMappingURL=xcode.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xcode.test.js","sourceRoot":"","sources":["../../../../src/commands/react-native/__tests__/xcode.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAA0C;AAE1C,yGAA0F;AAE1F,gDAAiC;AACjC,oCAAqC;AAErC,UAAU,CAAC,GAAG,EAAE;IACd,OAAO,OAAO,CAAC,GAAG,CAAC,aAAa,CAAA;IAChC,OAAO,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAA;IAC1C,OAAO,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAA;IAC1C,OAAO,OAAO,CAAC,GAAG,CAAC,eAAe,CAAA;IAClC,OAAO,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAA;IACtC,OAAO,OAAO,CAAC,GAAG,CAAC,cAAc,CAAA;IACjC,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAA;IACpC,OAAO,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAA;IACxC,OAAO,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAA;IAC5C,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW,CAAA;IAC9B,O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