Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: every it should has self ctx #150

Merged
merged 1 commit into from
Jan 18, 2023
Merged

fix: every it should has self ctx #150

merged 1 commit into from
Jan 18, 2023

Conversation

killagu
Copy link
Contributor

@killagu killagu commented Jan 18, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Base: 82.88% // Head: 82.93% // Increases project coverage by +0.05% 🎉

Coverage data is based on head (47913e0) compared to base (9a5fcca).
Patch coverage: 86.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
+ Coverage   82.88%   82.93%   +0.05%     
==========================================
  Files          27       27              
  Lines        2465     2514      +49     
  Branches      409      423      +14     
==========================================
+ Hits         2043     2085      +42     
- Misses        422      429       +7     
Impacted Files Coverage Δ
lib/inject_context.js 89.79% <86.00%> (-4.09%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

}
return next(i + 1);
}
next(0).catch(e => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

仿佛看到早期的 koa 代码。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

差一点就要 require('async') 了。

if (!test) {
return done();
}
suite.tests = [ test ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suite.tests 里面的都是并行执行的对吧,修改之前?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

也是通过 next 这样的方式来顺序执行的。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fengmk2 fengmk2 merged commit bf33c1c into master Jan 18, 2023
@fengmk2 fengmk2 deleted the fix/it_ctx branch January 18, 2023 14:03
fengmk2 pushed a commit that referenced this pull request Jan 18, 2023
[skip ci]

## [5.9.3](v5.9.2...v5.9.3) (2023-01-18)

### Bug Fixes

* every it should has self ctx ([#150](#150)) ([bf33c1c](bf33c1c))
@github-actions
Copy link

🎉 This PR is included in version 5.9.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants