mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(ct): solid type checking (#22102)
This commit is contained in:
parent
e6148bb725
commit
98051c7db2
35
package-lock.json
generated
35
package-lock.json
generated
@ -5277,6 +5277,14 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/seroval": {
|
||||||
|
"version": "0.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/seroval/-/seroval-0.5.1.tgz",
|
||||||
|
"integrity": "sha512-ZfhQVB59hmIauJG5Ydynupy8KHyr5imGNtdDhbZG68Ufh1Ynkv9KOYOAABf71oVbQxJ8VkWnMHAjEHE7fWkH5g==",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/shebang-command": {
|
"node_modules/shebang-command": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -5366,11 +5374,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/solid-js": {
|
"node_modules/solid-js": {
|
||||||
"version": "1.6.10",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.6.10.tgz",
|
"resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.7.0.tgz",
|
||||||
"integrity": "sha512-Sf0e6PQCEFkFtbPq0L+93Ua81YQOefBEbvDJ0YXT92b6Lzw0k7UvzSd2l1BbYM+yzE3UmepU1tyMDc/3nIByjA==",
|
"integrity": "sha512-tLG68KWlVRgzYeAW003G3E70emZqTcqCKJR9QoGr0rcuiLIuKrlUoezT8jLME1YSl3Wfu35jzgeY10iLEY4YQQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"csstype": "^3.1.0"
|
"csstype": "^3.1.0",
|
||||||
|
"seroval": "^0.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/solid-refresh": {
|
"node_modules/solid-refresh": {
|
||||||
@ -6229,7 +6238,7 @@
|
|||||||
"playwright": "cli.js"
|
"playwright": "cli.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"solid-js": "^1.6.10"
|
"solid-js": "^1.7.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=14"
|
"node": ">=14"
|
||||||
@ -7173,7 +7182,7 @@
|
|||||||
"version": "file:packages/playwright-ct-solid",
|
"version": "file:packages/playwright-ct-solid",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@playwright/test": "1.33.0-next",
|
"@playwright/test": "1.33.0-next",
|
||||||
"solid-js": "^1.6.10",
|
"solid-js": "^1.7.0",
|
||||||
"vite": "^4.2.1",
|
"vite": "^4.2.1",
|
||||||
"vite-plugin-solid": "^2.6.1"
|
"vite-plugin-solid": "^2.6.1"
|
||||||
}
|
}
|
||||||
@ -9822,6 +9831,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"seroval": {
|
||||||
|
"version": "0.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/seroval/-/seroval-0.5.1.tgz",
|
||||||
|
"integrity": "sha512-ZfhQVB59hmIauJG5Ydynupy8KHyr5imGNtdDhbZG68Ufh1Ynkv9KOYOAABf71oVbQxJ8VkWnMHAjEHE7fWkH5g=="
|
||||||
|
},
|
||||||
"shebang-command": {
|
"shebang-command": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -9879,11 +9893,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"solid-js": {
|
"solid-js": {
|
||||||
"version": "1.6.10",
|
"version": "1.7.0",
|
||||||
"resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.6.10.tgz",
|
"resolved": "https://registry.npmjs.org/solid-js/-/solid-js-1.7.0.tgz",
|
||||||
"integrity": "sha512-Sf0e6PQCEFkFtbPq0L+93Ua81YQOefBEbvDJ0YXT92b6Lzw0k7UvzSd2l1BbYM+yzE3UmepU1tyMDc/3nIByjA==",
|
"integrity": "sha512-tLG68KWlVRgzYeAW003G3E70emZqTcqCKJR9QoGr0rcuiLIuKrlUoezT8jLME1YSl3Wfu35jzgeY10iLEY4YQQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"csstype": "^3.1.0"
|
"csstype": "^3.1.0",
|
||||||
|
"seroval": "^0.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"solid-refresh": {
|
"solid-refresh": {
|
||||||
|
|||||||
@ -31,7 +31,7 @@
|
|||||||
"@playwright/test": "1.33.0-next"
|
"@playwright/test": "1.33.0-next"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"solid-js": "^1.6.10"
|
"solid-js": "^1.7.0"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"playwright": "./cli.js"
|
"playwright": "./cli.js"
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
},
|
},
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@solidjs/router": "^0.5.0",
|
"@solidjs/router": "^0.8.2",
|
||||||
"solid-js": "^1.4.7"
|
"solid-js": "^1.4.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -12,7 +12,7 @@ import { createSignal } from "solid-js";
|
|||||||
const [remountCount, setRemountCount] = createSignal(_remountCount++);
|
const [remountCount, setRemountCount] = createSignal(_remountCount++);
|
||||||
return <div onClick={() => props.onClick?.('hello')}>
|
return <div onClick={() => props.onClick?.('hello')}>
|
||||||
<div data-testid="props">{props.count}</div>
|
<div data-testid="props">{props.count}</div>
|
||||||
<div data-testid="remount-count">{ remountCount }</div>
|
<div data-testid="remount-count">{remountCount()}</div>
|
||||||
{ props.children }
|
{ props.children }
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user