caolan / caolan/nodeunit

Setup and Teardown parameter changes type unexpectedly when run via NPM

未关闭
#149 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
1.9k
派生
359
PR 合并指标
30 天内没有已合并 PR

描述

## Summary

When running `nodeunit test/*-test.js` from the root of a project, the value of the parameter passed to `setUp()` and `tearDown()` is a function. When running the tests via `npm test` the type of the parameter is an object.
## nodeunit Version

0.6.4
## NPM Version

1.1.0-3
## Node.js Version

v0.6.9

贡献指南

这个仓库没有索引到贡献指南

调研方向

使用报告中的 Node.js 和 nodeunit 版本,将 `nodeunit test/*-test.js` 与 `npm test` 进行比较,以重现该问题。跟踪 `setUp()` 和 `tearDown()` 在每次调用中如何接收参数,然后添加或更新覆盖范围,以便在修正行为后参数类型保持一致。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript, node.js
领域
testing
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。