Skip to content

Commit 164d9e2

Browse files
authored
Merge pull request #2 from mikstime/mikstime-patch-1
fix: Linter and Typescript
2 parents 8692901 + 400fbc0 commit 164d9e2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/commands.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ Cypress.Commands.add(
162162
},
163163
log: false,
164164
})
165-
.then(() => cy.task(TASK.processImgPath, { path: imgPath }).then(newImgPath => imgPath = newImgPath))
166-
.then(() => imgPath);
165+
.then(() => cy.task(TASK.processImgPath, { path: imgPath }).then(newImgPath => imgPath = newImgPath));
167166
})
168167
.then((imgPath) =>
169168
cy

src/task.hook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export const compareImagesTask = async (
183183
export const doesFileExistTask = ({ path }: { path: string }) =>
184184
fs.existsSync(path);
185185

186-
export const processImgPath = ({ path }) => path;
186+
export const processImgPath = ({ path: string }) => path;
187187

188188
/* c8 ignore start */
189189
export const initTaskHook = (config: Cypress.PluginConfigOptions) => ({

0 commit comments

Comments
 (0)