Skip to content

Commit c5a9d93

Browse files
authored
Adding type definition (#30)
* Update setWindowSize.js fix unit tests * fix: some typos and adding type definitions * fix: some typos and adding type definitions
1 parent a67cbe3 commit c5a9d93

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

hooks/setSharedCookies.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ module.exports = function() {
2727
}
2828
event.dispatcher.on(event.test.finished, () => {
2929
cookies = null;
30-
});
30+
});
3131
});
32-
32+
3333
function detectBrowserHelper(helperConfig) {
3434
if (!helperConfig) return false;
3535
for (const helper of browserHelpers) {

hooks/setWindowSize.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ module.exports = function(width, height) {
1919
if (!cfg.helpers.Playwright.browser || cfg.helpers.Playwright.browser === 'chromium') {
2020
const args = ['--no-sandbox', `--window-size=${width},${height}`];
2121
cfg.helpers.Playwright.chromium = merge(
22-
cfg.helpers.Playwright.chromium || {},
23-
{ args, defaultViewport: null, } // disables viewport emualtion. See https://github.com/Codeception/CodeceptJS/issues/1209#issuecomment-522487793
22+
cfg.helpers.Playwright.chromium || {},
23+
{ args, defaultViewport: null, } // disables viewport emulation. See https://github.com/Codeception/CodeceptJS/issues/1209#issuecomment-522487793
2424
);
2525
}
2626
cfg.helpers.Playwright.windowSize = `${width}x${height}`;

index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '@codeceptjs/configure';

0 commit comments

Comments
 (0)