Skip to content

Commit 6e03ee9

Browse files
chore(deps): update dependency eslint-plugin-jest to v27 (#2327)
Co-authored-by: Matt Seddon <[email protected]>
1 parent 6dbb756 commit 6e03ee9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+423
-381
lines changed

extension/src/cli/dvc/executor.test.ts

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('CliExecutor', () => {
8080
const output = await dvcExecutor.add(cwd, relPath)
8181
expect(output).toStrictEqual(stdout)
8282

83-
expect(mockedCreateProcess).toBeCalledWith({
83+
expect(mockedCreateProcess).toHaveBeenCalledWith({
8484
args: ['add', relPath],
8585
cwd,
8686
env: mockedEnv,
@@ -98,7 +98,7 @@ describe('CliExecutor', () => {
9898
const output = await dvcExecutor.checkout(fsPath)
9999
expect(output).toStrictEqual(stdout)
100100

101-
expect(mockedCreateProcess).toBeCalledWith({
101+
expect(mockedCreateProcess).toHaveBeenCalledWith({
102102
args: ['checkout'],
103103
cwd: fsPath,
104104
env: mockedEnv,
@@ -114,7 +114,7 @@ describe('CliExecutor', () => {
114114
const output = await dvcExecutor.checkout(fsPath, Flag.FORCE)
115115
expect(output).toStrictEqual(stdout)
116116

117-
expect(mockedCreateProcess).toBeCalledWith({
117+
expect(mockedCreateProcess).toHaveBeenCalledWith({
118118
args: ['checkout', '-f'],
119119
cwd: fsPath,
120120
env: mockedEnv,
@@ -133,7 +133,7 @@ describe('CliExecutor', () => {
133133
const output = await dvcExecutor.checkout(cwd, relPath)
134134
expect(output).toStrictEqual(stdout)
135135

136-
expect(mockedCreateProcess).toBeCalledWith({
136+
expect(mockedCreateProcess).toHaveBeenCalledWith({
137137
args: ['checkout', relPath],
138138
cwd,
139139
env: mockedEnv,
@@ -152,7 +152,7 @@ describe('CliExecutor', () => {
152152
const output = await dvcExecutor.checkout(cwd, relPath, Flag.FORCE)
153153
expect(output).toStrictEqual(stdout)
154154

155-
expect(mockedCreateProcess).toBeCalledWith({
155+
expect(mockedCreateProcess).toHaveBeenCalledWith({
156156
args: ['checkout', relPath, '-f'],
157157
cwd,
158158
env: mockedEnv,
@@ -170,7 +170,7 @@ describe('CliExecutor', () => {
170170
const output = await dvcExecutor.commit(cwd)
171171
expect(output).toStrictEqual(stdout)
172172

173-
expect(mockedCreateProcess).toBeCalledWith({
173+
expect(mockedCreateProcess).toHaveBeenCalledWith({
174174
args: ['commit'],
175175
cwd,
176176
env: mockedEnv,
@@ -186,7 +186,7 @@ describe('CliExecutor', () => {
186186
const output = await dvcExecutor.commit(cwd, Flag.FORCE)
187187
expect(output).toStrictEqual(stdout)
188188

189-
expect(mockedCreateProcess).toBeCalledWith({
189+
expect(mockedCreateProcess).toHaveBeenCalledWith({
190190
args: ['commit', '-f'],
191191
cwd,
192192
env: mockedEnv,
@@ -208,7 +208,7 @@ describe('CliExecutor', () => {
208208
const output = await dvcExecutor.commit(cwd, relPath)
209209
expect(output).toStrictEqual(stdout)
210210

211-
expect(mockedCreateProcess).toBeCalledWith({
211+
expect(mockedCreateProcess).toHaveBeenCalledWith({
212212
args: ['commit', relPath],
213213
cwd,
214214
env: mockedEnv,
@@ -230,7 +230,7 @@ describe('CliExecutor', () => {
230230
const output = await dvcExecutor.commit(cwd, relPath, Flag.FORCE)
231231
expect(output).toStrictEqual(stdout)
232232

233-
expect(mockedCreateProcess).toBeCalledWith({
233+
expect(mockedCreateProcess).toHaveBeenCalledWith({
234234
args: ['commit', relPath, '-f'],
235235
cwd,
236236
env: mockedEnv,
@@ -248,7 +248,7 @@ describe('CliExecutor', () => {
248248
const output = await dvcExecutor.experimentApply(cwd, 'exp-test')
249249
expect(output).toStrictEqual(stdout)
250250

251-
expect(mockedCreateProcess).toBeCalledWith({
251+
expect(mockedCreateProcess).toHaveBeenCalledWith({
252252
args: ['exp', 'apply', 'exp-test'],
253253
cwd,
254254
env: mockedEnv,
@@ -273,7 +273,7 @@ describe('CliExecutor', () => {
273273
)
274274
expect(output).toStrictEqual(stdout)
275275

276-
expect(mockedCreateProcess).toBeCalledWith({
276+
expect(mockedCreateProcess).toHaveBeenCalledWith({
277277
args: ['exp', 'branch', 'exp-0898f', 'some-branch'],
278278
cwd,
279279
env: mockedEnv,
@@ -298,7 +298,7 @@ describe('CliExecutor', () => {
298298
)
299299
expect(output).toStrictEqual(stdout)
300300

301-
expect(mockedCreateProcess).toBeCalledWith({
301+
expect(mockedCreateProcess).toHaveBeenCalledWith({
302302
args: ['exp', 'gc', '-f', '--workspace', '--queued'],
303303
cwd,
304304
env: mockedEnv,
@@ -316,7 +316,7 @@ describe('CliExecutor', () => {
316316
const output = await dvcExecutor.experimentRemove(cwd, 'exp-dfd12')
317317
expect(output).toStrictEqual(stdout)
318318

319-
expect(mockedCreateProcess).toBeCalledWith({
319+
expect(mockedCreateProcess).toHaveBeenCalledWith({
320320
args: ['exp', 'remove', 'exp-dfd12'],
321321
cwd,
322322
env: mockedEnv,
@@ -334,7 +334,7 @@ describe('CliExecutor', () => {
334334
const output = await dvcExecutor.experimentRemoveQueue(cwd)
335335
expect(output).toStrictEqual(stdout)
336336

337-
expect(mockedCreateProcess).toBeCalledWith({
337+
expect(mockedCreateProcess).toHaveBeenCalledWith({
338338
args: ['exp', 'remove', '--queue'],
339339
cwd,
340340
env: mockedEnv,
@@ -352,7 +352,7 @@ describe('CliExecutor', () => {
352352
const output = await dvcExecutor.experimentRunQueue(cwd)
353353
expect(output).toStrictEqual(stdout)
354354

355-
expect(mockedCreateProcess).toBeCalledWith({
355+
expect(mockedCreateProcess).toHaveBeenCalledWith({
356356
args: ['exp', 'run', '--queue'],
357357
cwd,
358358
env: mockedEnv,
@@ -387,7 +387,7 @@ describe('CliExecutor', () => {
387387
const output = await dvcExecutor.init(fsPath)
388388
expect(output).toStrictEqual(stdout)
389389

390-
expect(mockedCreateProcess).toBeCalledWith({
390+
expect(mockedCreateProcess).toHaveBeenCalledWith({
391391
args: ['init', '--subdir'],
392392
cwd: fsPath,
393393
env: mockedEnv,
@@ -411,7 +411,7 @@ describe('CliExecutor', () => {
411411
const output = await dvcExecutor.move(cwd, target, destination)
412412
expect(output).toStrictEqual(stdout)
413413

414-
expect(mockedCreateProcess).toBeCalledWith({
414+
expect(mockedCreateProcess).toHaveBeenCalledWith({
415415
args: ['move', target, destination],
416416
cwd,
417417
env: mockedEnv,
@@ -430,7 +430,7 @@ describe('CliExecutor', () => {
430430
const output = await dvcExecutor.pull(cwd)
431431
expect(output).toStrictEqual(stdout)
432432

433-
expect(mockedCreateProcess).toBeCalledWith({
433+
expect(mockedCreateProcess).toHaveBeenCalledWith({
434434
args: ['pull'],
435435
cwd,
436436
env: mockedEnv,
@@ -447,7 +447,7 @@ describe('CliExecutor', () => {
447447
const output = await dvcExecutor.pull(cwd, Flag.FORCE)
448448
expect(output).toStrictEqual(stdout)
449449

450-
expect(mockedCreateProcess).toBeCalledWith({
450+
expect(mockedCreateProcess).toHaveBeenCalledWith({
451451
args: ['pull', '-f'],
452452
cwd,
453453
env: mockedEnv,
@@ -465,7 +465,7 @@ describe('CliExecutor', () => {
465465
const output = await dvcExecutor.pull(cwd, relPath)
466466
expect(output).toStrictEqual(stdout)
467467

468-
expect(mockedCreateProcess).toBeCalledWith({
468+
expect(mockedCreateProcess).toHaveBeenCalledWith({
469469
args: ['pull', relPath],
470470
cwd,
471471
env: mockedEnv,
@@ -483,7 +483,7 @@ describe('CliExecutor', () => {
483483
const output = await dvcExecutor.pull(cwd, relPath, Flag.FORCE)
484484
expect(output).toStrictEqual(stdout)
485485

486-
expect(mockedCreateProcess).toBeCalledWith({
486+
expect(mockedCreateProcess).toHaveBeenCalledWith({
487487
args: ['pull', relPath, '-f'],
488488
cwd,
489489
env: mockedEnv,
@@ -502,7 +502,7 @@ describe('CliExecutor', () => {
502502
const output = await dvcExecutor.push(cwd)
503503
expect(output).toStrictEqual(stdout)
504504

505-
expect(mockedCreateProcess).toBeCalledWith({
505+
expect(mockedCreateProcess).toHaveBeenCalledWith({
506506
args: ['push'],
507507
cwd,
508508
env: mockedEnv,
@@ -518,7 +518,7 @@ describe('CliExecutor', () => {
518518
const output = await dvcExecutor.push(cwd, Flag.FORCE)
519519
expect(output).toStrictEqual(stdout)
520520

521-
expect(mockedCreateProcess).toBeCalledWith({
521+
expect(mockedCreateProcess).toHaveBeenCalledWith({
522522
args: ['push', '-f'],
523523
cwd,
524524
env: mockedEnv,
@@ -536,7 +536,7 @@ describe('CliExecutor', () => {
536536
const output = await dvcExecutor.push(cwd, relPath)
537537
expect(output).toStrictEqual(stdout)
538538

539-
expect(mockedCreateProcess).toBeCalledWith({
539+
expect(mockedCreateProcess).toHaveBeenCalledWith({
540540
args: ['push', relPath],
541541
cwd,
542542
env: mockedEnv,
@@ -554,7 +554,7 @@ describe('CliExecutor', () => {
554554
const output = await dvcExecutor.push(cwd, relPath, Flag.FORCE)
555555
expect(output).toStrictEqual(stdout)
556556

557-
expect(mockedCreateProcess).toBeCalledWith({
557+
expect(mockedCreateProcess).toHaveBeenCalledWith({
558558
args: ['push', relPath, '-f'],
559559
cwd,
560560
env: mockedEnv,
@@ -575,15 +575,15 @@ describe('CliExecutor', () => {
575575
const output = await dvcExecutor.remove(cwd, relPath)
576576
expect(output).toStrictEqual(stdout)
577577

578-
expect(mockedCreateProcess).toBeCalledWith({
578+
expect(mockedCreateProcess).toHaveBeenCalledWith({
579579
args: ['remove', relPath],
580580
cwd,
581581
env: mockedEnv,
582582
executable: 'dvc'
583583
})
584584

585-
expect(mockedSetContextValue).toBeCalledTimes(2)
586-
expect(mockedSetContextValue).toBeCalledWith(
585+
expect(mockedSetContextValue).toHaveBeenCalledTimes(2)
586+
expect(mockedSetContextValue).toHaveBeenCalledWith(
587587
'dvc.scm.command.running',
588588
true
589589
)

extension/src/cli/dvc/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ describe('executeDvcProcess', () => {
8282

8383
await cli.executeDvcProcess(cwd, ...args)
8484

85-
expect(mockedCreateProcess).toBeCalledWith({
85+
expect(mockedCreateProcess).toHaveBeenCalledWith({
8686
args,
8787
cwd,
8888
env: { ...processEnv, DVCLIVE_OPEN: 'false', DVC_NO_ANALYTICS: 'true' },
@@ -121,7 +121,7 @@ describe('executeDvcProcess', () => {
121121

122122
await expect(cli.executeDvcProcess(cwd, ...args)).rejects.toThrow()
123123

124-
expect(mockedCreateProcess).toBeCalledWith({
124+
expect(mockedCreateProcess).toHaveBeenCalledWith({
125125
args,
126126
cwd,
127127
env: {

extension/src/cli/dvc/reader.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('CliReader', () => {
7171

7272
const cliOutput = await dvcReader.expShow(cwd)
7373
expect(cliOutput).toStrictEqual(expShowFixture)
74-
expect(mockedCreateProcess).toBeCalledWith({
74+
expect(mockedCreateProcess).toHaveBeenCalledWith({
7575
args: ['exp', 'show', JSON_FLAG],
7676
cwd,
7777
env: mockedEnv,
@@ -132,7 +132,7 @@ describe('CliReader', () => {
132132

133133
expect(statusOutput).toStrictEqual(cliOutput)
134134

135-
expect(mockedCreateProcess).toBeCalledWith({
135+
expect(mockedCreateProcess).toHaveBeenCalledWith({
136136
args: ['data', 'status', '--granular', '--unchanged', JSON_FLAG],
137137
cwd,
138138
env: mockedEnv,
@@ -159,7 +159,7 @@ describe('CliReader', () => {
159159

160160
const plots = await dvcReader.plotsDiff(cwd, 'HEAD')
161161
expect(plots).toStrictEqual(plotsDiffFixture)
162-
expect(mockedCreateProcess).toBeCalledWith({
162+
expect(mockedCreateProcess).toHaveBeenCalledWith({
163163
args: [
164164
'plots',
165165
'diff',
@@ -183,7 +183,7 @@ describe('CliReader', () => {
183183
mockedCreateProcess.mockReturnValueOnce(getMockedProcess(stdout))
184184
const relativeRoot = await dvcReader.root(cwd)
185185
expect(relativeRoot).toStrictEqual(stdout)
186-
expect(mockedCreateProcess).toBeCalledWith({
186+
expect(mockedCreateProcess).toHaveBeenCalledWith({
187187
args: ['root'],
188188
cwd,
189189
env: mockedEnv,
@@ -201,7 +201,7 @@ describe('CliReader', () => {
201201

202202
const relativeRoot = await dvcReader.root(cwd)
203203
expect(relativeRoot).toBeUndefined()
204-
expect(mockedCreateProcess).toBeCalledWith({
204+
expect(mockedCreateProcess).toHaveBeenCalledWith({
205205
args: ['root'],
206206
cwd,
207207
env: mockedEnv,
@@ -218,7 +218,7 @@ describe('CliReader', () => {
218218
const output = await dvcReader.version(cwd)
219219

220220
expect(output).toStrictEqual(stdout)
221-
expect(mockedCreateProcess).toBeCalledWith({
221+
expect(mockedCreateProcess).toHaveBeenCalledWith({
222222
args: ['--version'],
223223
cwd,
224224
env: mockedEnv,

0 commit comments

Comments
 (0)