Skip to content

Commit 7ba1555

Browse files
authored
chore: remove duplicated expect-webdriverio type (#799)
1 parent e617a83 commit 7ba1555

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

packages/visual-service/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@wdio/globals": "^9.9.1",
3030
"@wdio/logger": "^9.4.4",
3131
"@wdio/types": "^9.9.0",
32+
"expect-webdriverio": "^5.1.0",
3233
"webdriver-image-comparison": "workspace:*"
33-
},
34-
"devDependencies": {}
34+
}
3535
}

packages/visual-service/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,6 @@ declare global {
165165
options?: WdioCheckFullPageMethodOptions
166166
): R
167167
}
168-
// This is a workaround, copied this from the expect-webdriverio package
169-
// https://github.com/webdriverio/expect-webdriverio/blob/main/types/expect-webdriverio.d.ts#L444
170-
interface PartialMatcher {
171-
sample?: any
172-
$$typeof: symbol
173-
asymmetricMatch(...args: any[]): boolean
174-
toString(): string
175-
}
176168
}
177169
}
178170
export type { VisualServiceOptions }

packages/visual-service/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"compilerOptions": {
44
"rootDir": "./src",
55
"outDir": "./dist",
6-
"baseUrl": "."
6+
"baseUrl": ".",
7+
"types": ["expect-webdriverio"]
78
},
89
"include": ["./src/**/*"]
910
}

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)