test: mock function changing the filesystem

This commit is contained in:
Jonathan Camara 2022-04-29 12:28:53 -05:00
parent 1a3ca02724
commit aff1a4ef8f
No known key found for this signature in database
GPG key ID: E87744B8CC664ACD

View file

@ -94,6 +94,8 @@ describe('Setup Terraform', () => {
.fn()
.mockReturnValueOnce('file.zip');
io.mv = jest.fn();
tc.extractZip = jest
.fn()
.mockReturnValueOnce('file');