@luhanxin/core
v3.0.0
Published
Core types and result models for the Luhanxin automation toolkit
Maintainers
Readme
@luhanxin/core
公共类型、配置类型和测试结果模型,供 Luhanxin Web Automation 的其他包复用。
Install
pnpm add @luhanxin/coreUsage
import {Artifact, TestSummary} from '@luhanxin/core';
const artifact: Artifact = {
type: 'json',
path: 'test-results/result.json',
mimeType: 'application/json'
};
const summary: Pick<TestSummary, 'total' | 'passed' | 'failed'> = {
total: 1,
passed: 1,
failed: 0
};API
主要导出:
VERSIONBrowserLaunchOptionsPageOptionsArtifactTestErrorTestResultTestSummary
Scripts
pnpm build # build dist/ via tsup
pnpm dev # watch-rebuild
pnpm typecheck # tsc --noEmitOutput formats
esm + cjs. Configured in tsup.config.*.
