apify-test-tools 0.10.2-beta.4 → 0.10.2-beta.5

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 (90) hide show
  1. package/.github/cli/apify-test-tools.mjs +125 -127
  2. package/.github/scripts/run-with-apify-tokens.mjs +1 -1
  3. package/CHANGELOG.md +5 -0
  4. package/CONTRIBUTING.md +4 -1
  5. package/README.md +69 -71
  6. package/bin/affected-actors.ts +132 -91
  7. package/bin/build.ts +0 -2
  8. package/bin/diff-changes.ts +7 -6
  9. package/bin/diff-json-schema.ts +5 -6
  10. package/bin/git.ts +21 -55
  11. package/bin/main.ts +7 -97
  12. package/bin/slack.ts +14 -27
  13. package/bin/types.ts +6 -0
  14. package/dist/bin/affected-actors.d.ts +23 -22
  15. package/dist/bin/affected-actors.d.ts.map +1 -1
  16. package/dist/bin/affected-actors.js +108 -60
  17. package/dist/bin/affected-actors.js.map +1 -1
  18. package/dist/bin/build.d.ts +0 -1
  19. package/dist/bin/build.d.ts.map +1 -1
  20. package/dist/bin/build.js +0 -2
  21. package/dist/bin/build.js.map +1 -1
  22. package/dist/bin/diff-changes.d.ts +4 -3
  23. package/dist/bin/diff-changes.d.ts.map +1 -1
  24. package/dist/bin/diff-changes.js +4 -4
  25. package/dist/bin/diff-changes.js.map +1 -1
  26. package/dist/bin/diff-json-schema.d.ts +2 -2
  27. package/dist/bin/diff-json-schema.d.ts.map +1 -1
  28. package/dist/bin/diff-json-schema.js +1 -4
  29. package/dist/bin/diff-json-schema.js.map +1 -1
  30. package/dist/bin/git.d.ts +6 -9
  31. package/dist/bin/git.d.ts.map +1 -1
  32. package/dist/bin/git.js +20 -48
  33. package/dist/bin/git.js.map +1 -1
  34. package/dist/bin/main.js +7 -77
  35. package/dist/bin/main.js.map +1 -1
  36. package/dist/bin/slack.d.ts +2 -7
  37. package/dist/bin/slack.d.ts.map +1 -1
  38. package/dist/bin/slack.js +12 -18
  39. package/dist/bin/slack.js.map +1 -1
  40. package/dist/bin/types.d.ts +5 -0
  41. package/dist/bin/types.d.ts.map +1 -1
  42. package/dist/test/bundle/cli-bundle.test.js +14 -16
  43. package/dist/test/bundle/cli-bundle.test.js.map +1 -1
  44. package/dist/test/e2e/cli-bundle.e2e.test.js +22 -63
  45. package/dist/test/e2e/cli-bundle.e2e.test.js.map +1 -1
  46. package/dist/test/e2e/git-build-release.e2e.test.d.ts +2 -0
  47. package/dist/test/e2e/git-build-release.e2e.test.d.ts.map +1 -0
  48. package/dist/test/e2e/git-build-release.e2e.test.js +87 -0
  49. package/dist/test/e2e/git-build-release.e2e.test.js.map +1 -0
  50. package/dist/test/e2e/helpers.d.ts +37 -0
  51. package/dist/test/e2e/helpers.d.ts.map +1 -0
  52. package/dist/test/e2e/helpers.js +57 -0
  53. package/dist/test/e2e/helpers.js.map +1 -0
  54. package/dist/test/unit/bin/affected-actors-cli.test.d.ts +2 -0
  55. package/dist/test/unit/bin/affected-actors-cli.test.d.ts.map +1 -0
  56. package/dist/test/unit/bin/affected-actors-cli.test.js +161 -0
  57. package/dist/test/unit/bin/affected-actors-cli.test.js.map +1 -0
  58. package/dist/test/unit/bin/affected-actors.test.js +65 -78
  59. package/dist/test/unit/bin/affected-actors.test.js.map +1 -1
  60. package/dist/test/unit/bin/build-cli.test.js +5 -13
  61. package/dist/test/unit/bin/build-cli.test.js.map +1 -1
  62. package/dist/test/unit/bin/compiled-cli.d.ts +6 -0
  63. package/dist/test/unit/bin/compiled-cli.d.ts.map +1 -0
  64. package/dist/test/unit/bin/compiled-cli.js +16 -0
  65. package/dist/test/unit/bin/compiled-cli.js.map +1 -0
  66. package/dist/test/unit/bin/diff-changes.test.js +55 -55
  67. package/dist/test/unit/bin/diff-changes.test.js.map +1 -1
  68. package/dist/test/unit/bin/diff.test.js +25 -28
  69. package/dist/test/unit/bin/diff.test.js.map +1 -1
  70. package/dist/test/unit/bin/git.test.js +29 -97
  71. package/dist/test/unit/bin/git.test.js.map +1 -1
  72. package/dist/test/unit/bin/slack.test.js +6 -27
  73. package/dist/test/unit/bin/slack.test.js.map +1 -1
  74. package/dist/test/unit/should-built-and-test.test.js +18 -21
  75. package/dist/test/unit/should-built-and-test.test.js.map +1 -1
  76. package/dist/tsconfig.tsbuildinfo +1 -1
  77. package/package.json +1 -1
  78. package/test/bundle/cli-bundle.test.ts +14 -24
  79. package/test/e2e/cli-bundle.e2e.test.ts +39 -84
  80. package/test/e2e/git-build-release.e2e.test.ts +113 -0
  81. package/test/e2e/helpers.ts +82 -0
  82. package/test/unit/bin/affected-actors-cli.test.ts +193 -0
  83. package/test/unit/bin/affected-actors.test.ts +83 -85
  84. package/test/unit/bin/build-cli.test.ts +6 -12
  85. package/test/unit/bin/compiled-cli.ts +17 -0
  86. package/test/unit/bin/diff-changes.test.ts +55 -55
  87. package/test/unit/bin/diff.test.ts +25 -28
  88. package/test/unit/bin/git.test.ts +37 -120
  89. package/test/unit/bin/slack.test.ts +6 -30
  90. package/test/unit/should-built-and-test.test.ts +19 -22
@@ -2,14 +2,13 @@ import type { MockInstance } from 'vitest';
2
2
  import { beforeEach, describe, expect, it, vi } from 'vitest';
3
3
 
4
4
  import {
5
- getBranchOnlyChangedFiles,
5
+ findCommitSha,
6
6
  getChangedFiles,
7
7
  getChangedFilesBetween,
8
8
  getCommits,
9
9
  getCommitsBetween,
10
10
  getCurrentBranch,
11
11
  getRepoName,
12
- hasMergeFromTarget,
13
12
  normalizeRepoUrl,
14
13
  parseBaseCommit,
15
14
  resolveCommitSha,
@@ -169,124 +168,6 @@ describe('getChangedFiles', () => {
169
168
  });
170
169
  });
171
170
 
172
- describe('hasMergeFromTarget', () => {
173
- const sourceBranch = 'feature-branch';
174
- const targetBranch = 'main';
175
- const mergeSha = 'f'.repeat(40);
176
- const branchParentSha = 'b'.repeat(40);
177
- const targetParentSha = 't'.repeat(40);
178
- const differentMergeBase = '0'.repeat(40);
179
-
180
- let gitCommandSpy: MockInstance;
181
-
182
- beforeEach(() => {
183
- gitCommandSpy = vi.spyOn(Utils, 'runGitCommand');
184
- });
185
-
186
- it('should return false when there are no merge commits on the branch', async () => {
187
- gitCommandSpy.mockImplementation(async (args: string[]) => {
188
- if (args.includes('--merges')) return '';
189
- return '';
190
- });
191
-
192
- await expect(hasMergeFromTarget(sourceBranch, targetBranch)).resolves.toBe(false);
193
- expect(gitCommandSpy).toHaveBeenCalledWith(
194
- ['log', '--merges', '--pretty=format:%H', `${targetBranch}..${sourceBranch}`],
195
- { operation: 'find merge commits on the source branch that are absent from the target branch' },
196
- );
197
- });
198
-
199
- it('should return true when a merge commit has a parent reachable from targetBranch', async () => {
200
- gitCommandSpy.mockImplementation(async (args: string[]) => {
201
- if (args.includes('--merges')) return mergeSha;
202
- if (args.includes('--pretty=format:%P')) return `${branchParentSha} ${targetParentSha}`;
203
- if (args[0] === 'merge-base' && args[1] === branchParentSha) return differentMergeBase;
204
- if (args[0] === 'merge-base' && args[1] === targetParentSha) return targetParentSha;
205
- return '';
206
- });
207
-
208
- await expect(hasMergeFromTarget(sourceBranch, targetBranch)).resolves.toBe(true);
209
- expect(gitCommandSpy).toHaveBeenCalledWith(['merge-base', targetParentSha, targetBranch], {
210
- operation: 'check whether a merge parent is reachable from the target branch',
211
- });
212
- });
213
-
214
- it('should return false when the merge commit parent is not reachable from targetBranch (unrelated branch merge)', async () => {
215
- const unrelatedSha = 'e'.repeat(40);
216
- gitCommandSpy.mockImplementation(async (args: string[]) => {
217
- if (args.includes('--merges')) return mergeSha;
218
- if (args.includes('--pretty=format:%P')) return `${branchParentSha} ${unrelatedSha}`;
219
- // merge-base returns something other than the parent — not an ancestor
220
- if (args[0] === 'merge-base') return differentMergeBase;
221
- return '';
222
- });
223
-
224
- await expect(hasMergeFromTarget(sourceBranch, targetBranch)).resolves.toBe(false);
225
- });
226
-
227
- it('continues after merge-base reports unrelated histories', async () => {
228
- gitCommandSpy.mockImplementation(async (args: string[]) => {
229
- if (args.includes('--merges')) return mergeSha;
230
- if (args.includes('--pretty=format:%P')) return `${branchParentSha} ${targetParentSha}`;
231
- if (args[0] === 'merge-base' && args[1] === branchParentSha) {
232
- throw new Utils.GitCommandError(args, Object.assign(new Error('no common ancestor'), { code: 1 }));
233
- }
234
- if (args[0] === 'merge-base' && args[1] === targetParentSha) return targetParentSha;
235
- return '';
236
- });
237
-
238
- await expect(hasMergeFromTarget(sourceBranch, targetBranch)).resolves.toBe(true);
239
- });
240
-
241
- it('propagates unexpected Git failures', async () => {
242
- gitCommandSpy.mockImplementation(
243
- async (args: string[], options?: Parameters<typeof Utils.runGitCommand>[1]) => {
244
- if (args.includes('--merges')) return mergeSha;
245
- if (args.includes('--pretty=format:%P')) return `${branchParentSha} ${targetParentSha}`;
246
- throw new Utils.GitCommandError(
247
- args,
248
- Object.assign(new Error('Git failed'), { code: 128 }),
249
- options?.operation,
250
- );
251
- },
252
- );
253
-
254
- await expect(hasMergeFromTarget(sourceBranch, targetBranch)).rejects.toThrow(
255
- 'Failed to check whether a merge parent is reachable from the target branch.\n' +
256
- 'Command: git "merge-base"',
257
- );
258
- });
259
- });
260
-
261
- describe('getBranchOnlyChangedFiles', () => {
262
- const sourceBranch = 'feature-branch';
263
- const targetBranch = 'main';
264
-
265
- let gitCommandSpy: MockInstance;
266
-
267
- beforeEach(() => {
268
- gitCommandSpy = vi.spyOn(Utils, 'runGitCommand');
269
- });
270
-
271
- it('should return files touched by non-merge commits', async () => {
272
- gitCommandSpy.mockResolvedValue('README.md\n\nactors/foo_bar/src/main.ts\n');
273
-
274
- const result = await getBranchOnlyChangedFiles(sourceBranch, targetBranch);
275
-
276
- expect(result).toStrictEqual(['README.md', 'actors/foo_bar/src/main.ts']);
277
- expect(gitCommandSpy).toHaveBeenCalledWith(
278
- ['log', '--no-merges', '--name-only', '--pretty=format:', `${targetBranch}..${sourceBranch}`],
279
- { operation: 'list files changed by non-merge commits on the source branch' },
280
- );
281
- });
282
-
283
- it('should return empty array when there are no non-merge commits', async () => {
284
- gitCommandSpy.mockResolvedValue('');
285
-
286
- await expect(getBranchOnlyChangedFiles(sourceBranch, targetBranch)).resolves.toStrictEqual([]);
287
- });
288
- });
289
-
290
171
  const VALID_SHA = 'a'.repeat(40);
291
172
  const VALID_JSON = JSON.stringify({ sha: VALID_SHA, author: 'test', date: 'now', message: 'msg' });
292
173
 
@@ -506,6 +387,22 @@ describe('getCommitsBetween', () => {
506
387
  });
507
388
  });
508
389
  });
390
+ describe('empty commit ranges', () => {
391
+ // Real git on this repository's own history: HEAD..HEAD has no commits
392
+ beforeEach(() => {
393
+ vi.restoreAllMocks();
394
+ });
395
+
396
+ it('getCommitsBetween returns no commits', async () => {
397
+ await expect(getCommitsBetween('HEAD', 'HEAD')).resolves.toStrictEqual([]);
398
+ });
399
+
400
+ it('getCommits fails clearly, since the commands built on it need at least one commit', async () => {
401
+ await expect(getCommits({ sourceBranch: 'HEAD', targetBranch: 'HEAD' })).rejects.toThrow(
402
+ 'HEAD has no commits that are not on HEAD.',
403
+ );
404
+ });
405
+ });
509
406
 
510
407
  describe('getChangedFilesBetween', () => {
511
408
  it('diffs the two endpoints directly', async () => {
@@ -531,3 +428,23 @@ describe('resolveCommitSha', () => {
531
428
  });
532
429
  });
533
430
  });
431
+
432
+ describe('findCommitSha', () => {
433
+ // Real git on this repository's own history, since what matters is how git answers
434
+ beforeEach(() => {
435
+ vi.restoreAllMocks();
436
+ });
437
+
438
+ it('resolves a ref in the local history to its commit', async () => {
439
+ await expect(findCommitSha('HEAD')).resolves.toMatch(/^[0-9a-f]{40}$/);
440
+ });
441
+
442
+ it('returns undefined for a commit missing from the local history', async () => {
443
+ await expect(findCommitSha('d'.repeat(40))).resolves.toBeUndefined();
444
+ });
445
+
446
+ it('rethrows other git failures', async () => {
447
+ vi.spyOn(Utils, 'runGitCommand').mockRejectedValue(new Error('not a git repository'));
448
+ await expect(findCommitSha('HEAD')).rejects.toThrow('not a git repository');
449
+ });
450
+ });
@@ -1,7 +1,7 @@
1
1
  import { WebClient } from '@slack/web-api';
2
2
  import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
3
3
 
4
- import { announceRelease, notifyToSlack } from '../../../bin/slack.js';
4
+ import { notifyToSlack } from '../../../bin/slack.js';
5
5
 
6
6
  vi.mock('@slack/web-api', () => ({ WebClient: vi.fn() }));
7
7
 
@@ -11,11 +11,10 @@ const authTest = vi.fn();
11
11
 
12
12
  const notify = async (overrides: Partial<Parameters<typeof notifyToSlack>[0]> = {}) =>
13
13
  notifyToSlack({
14
- repository: 'owner/repo',
14
+ repoUrl: 'git@github.com:owner/repo',
15
15
  changedFiles: ['src/main.ts'],
16
16
  changelog: '- Fixed a bug',
17
17
  commits: [{ sha: '1', author: 'Test<test@example.com>', date: '', message: 'fix: bug' }],
18
- author: 'Test<test@example.com>',
19
18
  dryRun: true,
20
19
  releaseSlackChannel: '#releases',
21
20
  reportSlackChannel: '#notif',
@@ -62,43 +61,20 @@ describe('notifyToSlack', () => {
62
61
  expect(authTest).not.toHaveBeenCalled();
63
62
  expect(postMessage).toHaveBeenCalledTimes(2);
64
63
  });
65
- });
66
-
67
- describe('announceRelease', () => {
68
- const commit = (author: string, message: string) => ({ sha: '1', author, date: '', message });
69
-
70
- beforeEach(() => {
71
- vi.stubEnv(TOKEN_ENV_VAR, 'token');
72
- vi.mocked(WebClient).mockImplementation(function () {
73
- return { chat: { postMessage }, auth: { test: authTest } };
74
- } as never);
75
- });
76
-
77
- afterEach(() => {
78
- vi.unstubAllEnvs();
79
- vi.clearAllMocks();
80
- });
81
64
 
82
65
  it('should announce nothing, and need no token, when there are no new commits', async () => {
83
66
  vi.stubEnv(TOKEN_ENV_VAR, '');
84
- await announceRelease({
85
- commits: [],
86
- changedFiles: [],
87
- changelog: null,
88
- dryRun: false,
89
- reportSlackChannel: '#notif',
90
- });
67
+ await notify({ commits: [], dryRun: false });
91
68
  expect(WebClient).not.toHaveBeenCalled();
92
69
  });
93
70
 
94
71
  it('should announce the release by the author of the newest commit, named after the repository', async () => {
95
- await announceRelease({
72
+ const commit = (author: string, message: string) => ({ sha: '1', author, date: '', message });
73
+ await notify({
96
74
  commits: [commit('Old<old@example.com>', 'fix: older'), commit('New<new@example.com>', 'feat: newer')],
97
- changedFiles: ['src/main.ts'],
98
- changelog: '- Added foo',
99
75
  repoUrl: 'git@github.com:owner/my-repo',
100
76
  dryRun: false,
101
- reportSlackChannel: '#notif',
77
+ releaseSlackChannel: undefined,
102
78
  });
103
79
  expect(postMessage).toHaveBeenCalledWith({
104
80
  channel: '#notif',
@@ -5,7 +5,7 @@ import path from 'node:path';
5
5
  import { afterAll, describe, expect, test } from 'vitest';
6
6
 
7
7
  import { getChangedActors } from '../../bin/diff-changes.js';
8
- import type { ActorConfig, Commit } from '../../bin/types.js';
8
+ import type { ActorConfig } from '../../bin/types.js';
9
9
  import { ExistingDir, ExistingFile, RelativeDir, RelativeFile } from '../../bin/utils/path/repo-relative.js';
10
10
 
11
11
  const originalCwd = process.cwd();
@@ -72,10 +72,7 @@ describe('Should build and test parser', () => {
72
72
  ),
73
73
  ];
74
74
 
75
- const commits: Commit[] = [
76
- { sha: 'Commit1', author: '', date: '', message: '' },
77
- { sha: 'Commit3', author: '', date: '', message: '' },
78
- ];
75
+ const range = { fromRef: 'Commit0', toRef: 'Commit3' };
79
76
 
80
77
  test('Ignores dev-only readme', async () => {
81
78
  const FILES = ['README.md', 'code/README.md', 'shared/README.md'];
@@ -84,7 +81,7 @@ describe('Should build and test parser', () => {
84
81
  actorConfigs: ACTOR_CONFIGS,
85
82
  isLatest: false,
86
83
  filepathsChanged: FILES,
87
- commits,
84
+ range,
88
85
  });
89
86
 
90
87
  expect(actorsChanged).toEqual([]);
@@ -97,7 +94,7 @@ describe('Should build and test parser', () => {
97
94
  actorConfigs: ACTOR_CONFIGS,
98
95
  isLatest: false,
99
96
  filepathsChanged: FILES,
100
- commits,
97
+ range,
101
98
  });
102
99
 
103
100
  expect(actorsChanged).toEqual([]);
@@ -110,7 +107,7 @@ describe('Should build and test parser', () => {
110
107
  actorConfigs: ACTOR_CONFIGS,
111
108
  isLatest: false,
112
109
  filepathsChanged: FILES,
113
- commits,
110
+ range,
114
111
  });
115
112
 
116
113
  expect(actorsChanged).toEqual(ACTOR_CONFIGS.slice(0, 2));
@@ -123,7 +120,7 @@ describe('Should build and test parser', () => {
123
120
  actorConfigs: ACTOR_CONFIGS,
124
121
  isLatest: false,
125
122
  filepathsChanged: FILES,
126
- commits,
123
+ range,
127
124
  });
128
125
  expect(actorsChangedNotLatest).toEqual([]);
129
126
 
@@ -131,7 +128,7 @@ describe('Should build and test parser', () => {
131
128
  actorConfigs: ACTOR_CONFIGS,
132
129
  isLatest: true,
133
130
  filepathsChanged: FILES,
134
- commits,
131
+ range,
135
132
  });
136
133
  expect(actorsChangedLatest).toEqual(ACTOR_CONFIGS);
137
134
  });
@@ -143,7 +140,7 @@ describe('Should build and test parser', () => {
143
140
  actorConfigs: ACTOR_CONFIGS,
144
141
  isLatest: true,
145
142
  filepathsChanged: FILES,
146
- commits,
143
+ range,
147
144
  });
148
145
 
149
146
  expect(actorsChanged).toEqual([ACTOR_CONFIGS[0]]);
@@ -156,7 +153,7 @@ describe('Should build and test parser', () => {
156
153
  actorConfigs: ACTOR_CONFIGS,
157
154
  isLatest: false,
158
155
  filepathsChanged: FILES,
159
- commits,
156
+ range,
160
157
  });
161
158
 
162
159
  expect(actorsChanged).toEqual(ACTOR_CONFIGS.slice(0, 2));
@@ -172,7 +169,7 @@ describe('Should build and test parser', () => {
172
169
  actorConfigs: ACTOR_CONFIGS,
173
170
  isLatest: false,
174
171
  filepathsChanged: FILES,
175
- commits,
172
+ range,
176
173
  });
177
174
 
178
175
  expect(actorsChanged).toEqual([ACTOR_CONFIGS[0], ACTOR_CONFIGS[2]]);
@@ -185,7 +182,7 @@ describe('Should build and test parser', () => {
185
182
  actorConfigs: ACTOR_CONFIGS,
186
183
  isLatest: true,
187
184
  filepathsChanged: FILES,
188
- commits,
185
+ range,
189
186
  });
190
187
 
191
188
  expect(actorsChanged).toEqual(ACTOR_CONFIGS.slice(0, 2));
@@ -202,7 +199,7 @@ describe('Should build and test parser', () => {
202
199
  actorConfigs: ACTOR_CONFIGS,
203
200
  isLatest: false,
204
201
  filepathsChanged: FILES,
205
- commits,
202
+ range,
206
203
  });
207
204
 
208
205
  expect(actorsChanged).toEqual(ACTOR_CONFIGS);
@@ -218,7 +215,7 @@ describe('Should build and test parser', () => {
218
215
  actorConfigs: ACTOR_CONFIGS,
219
216
  isLatest: false,
220
217
  filepathsChanged: FILES,
221
- commits,
218
+ range,
222
219
  });
223
220
 
224
221
  expect(actorsChanged).toEqual([]);
@@ -231,7 +228,7 @@ describe('Should build and test parser', () => {
231
228
  actorConfigs: ACTOR_CONFIGS,
232
229
  isLatest: false,
233
230
  filepathsChanged: FILES,
234
- commits,
231
+ range,
235
232
  });
236
233
 
237
234
  expect(actorsChanged).toEqual([ACTOR_CONFIGS[0]]);
@@ -244,7 +241,7 @@ describe('Should build and test parser', () => {
244
241
  actorConfigs: ACTOR_CONFIGS,
245
242
  isLatest: true,
246
243
  filepathsChanged: FILES,
247
- commits,
244
+ range,
248
245
  });
249
246
 
250
247
  expect(actorsChanged).toEqual([ACTOR_CONFIGS[0]]);
@@ -257,7 +254,7 @@ describe('Should build and test parser', () => {
257
254
  actorConfigs: ACTOR_CONFIGS,
258
255
  isLatest: false,
259
256
  filepathsChanged: FILES,
260
- commits,
257
+ range,
261
258
  });
262
259
 
263
260
  expect(actorsChanged).toEqual([ACTOR_CONFIGS[0]]);
@@ -273,7 +270,7 @@ describe('Should build and test parser', () => {
273
270
  actorConfigs: ACTOR_CONFIGS,
274
271
  isLatest: false,
275
272
  filepathsChanged: FILES,
276
- commits,
273
+ range,
277
274
  });
278
275
 
279
276
  expect(actorsChanged).toEqual(ACTOR_CONFIGS.slice(0, 2));
@@ -286,7 +283,7 @@ describe('Should build and test parser', () => {
286
283
  actorConfigs: ACTOR_CONFIGS,
287
284
  isLatest: false,
288
285
  filepathsChanged: FILES,
289
- commits,
286
+ range,
290
287
  });
291
288
 
292
289
  expect(actorsChanged).toEqual([ACTOR_CONFIGS[2]]);
@@ -345,7 +342,7 @@ describe('Should build and test parser', () => {
345
342
  actorConfigs: ACTOR_CONFIGS_GOOGLE_MAPS,
346
343
  isLatest: false,
347
344
  filepathsChanged: FILES,
348
- commits,
345
+ range,
349
346
  });
350
347
 
351
348
  expect(actorsChanged).toEqual(ACTOR_CONFIGS_GOOGLE_MAPS.slice(0, 8));