Skip to content

test(index): add integration tests for runAction entry point#21

Open
luojiyin1987 wants to merge 2 commits into
mainfrom
test/index-coverage
Open

test(index): add integration tests for runAction entry point#21
luojiyin1987 wants to merge 2 commits into
mainfrom
test/index-coverage

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

改动

  • src/index.ts:导出 runAction,添加 require.main === module 守卫防止 import 时自动执行
  • src/lint-md-action.ts:简化 basePath 赋值逻辑
  • __tests__/index.spec.ts:新增 4 个集成测试覆盖 runAction 入口函数

覆盖率提升index.ts 从 0% → 80%

Signed-off-by: luojiyin <luojiyin@hotmail.com>
Signed-off-by: luojiyin <luojiyin@hotmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant