npm
@testing-library/preact-hooks
Simple and complete React hooks testing utilities that encourage good testing practices.
版本 1已同步 1文件 11 SRI 已生成
接入决策台 · 安全可信状态
先确认可用入口,再复制固定版本地址
入口文件、安全评分、扫描覆盖和风险项已合并到首屏,适合上线前快速判断能不能直接接入。
推荐接入
安全分
88
等待安全扫描
扫描覆盖
0%
0 / 11 文件
高危文件
0
0 条 critical
待复核
0
外联、混淆、敏感行为
推荐入口
暂无浏览器入口
SRI 待确认
SRI 缺失 0
当前版本 1.1.0
11 文件
11 JS / 0 CSS / 0 WASM
未发现阻断级风险
可在下方文件列表中查看原始构建产物
当前版本 11 个文件,1 个入口候选。未发现可疑外联域名。
快速接入
已按当前文件列表自动选择一个更适合浏览器接入的入口文件。完整用法可在下方生成器中切换文件。
暂无可直接接入的浏览器入口文件,可在文件列表中查看原始构建产物。
1版本
11文件
1.1.0最新
CDN 地址生成器
选择文件后直接复制 URL、Script、Module、CSS 或 WASM 示例。建议复制前先检测一次文件可用性。
文件类型
JS
文件大小
3.5 KB
SRI
已生成
CDN URL
适合放到构建配置、动态加载或手动拼接标签。
https://cdn.ptab.cn/cdn/testing-library__preact-hooks/1.1.0/lib/index.js
普通 Script
适合传统 HTML 页面和 UMD/global 构建。
<script src="https://cdn.ptab.cn/cdn/testing-library__preact-hooks/1.1.0/lib/index.js" integrity="sha256-Ez+VZLzEx+k3TOgXg4Jhwev/AfdcSoTw3MQdUno9xm4=" crossorigin="anonymous"></script>
ES Module
适合浏览器原生 module 文件,使用前建议确认该文件支持 ESM。
<script type="module">
import * as lib from "https://cdn.ptab.cn/cdn/testing-library__preact-hooks/1.1.0/lib/index.js";
console.log("module loaded", lib);
</script>版本与文件
当前版本 1.1.0,展示 11 / 11 个文件。
@testing-library/preact-hooks/1.1.0/lib/index.js
JS
3.5 KBSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/jest.config.js
JS
43 BSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/_types.js
JS
77 BSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/asyncUtils.js
JS
11.5 KBSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/cleanup.js
JS
3.5 KBSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/flush-microtasks.js
JS
2.0 KBSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/pure.js
JS
610 BSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/renderHook.js
JS
3.2 KBSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/resultContainer.js
JS
910 BSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/lib/TestComponent.js
JS
556 BSRI ready
未分级
0 请求@testing-library/preact-hooks/1.1.0/pure.js
JS
114 BSRI ready
未分级
0 请求| 文件 | 大小 | 类型 | SRI | 今日请求 | 操作 |
|---|---|---|---|---|---|
| @testing-library/preact-hooks/1.1.0/lib/index.js | 3.5 KB | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/jest.config.js | 43 B | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/_types.js | 77 B | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/asyncUtils.js | 11.5 KB | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/cleanup.js | 3.5 KB | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/flush-microtasks.js | 2.0 KB | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/pure.js | 610 B | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/renderHook.js | 3.2 KB | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/resultContainer.js | 910 B | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/lib/TestComponent.js | 556 B | JS | ready 未分级 | 0 | |
| @testing-library/preact-hooks/1.1.0/pure.js | 114 B | JS | ready 未分级 | 0 |
库评论
还没有评论。可以反馈这个库的接入体验、版本建议或兼容性问题。