test: 调整 cron/dayjs nextTime 的 Vitest 为 sequential 并加入预热、优化含沙盒定时器测试#927
Merged
CodFrm merged 2 commits intoscriptscat:mainfrom Nov 8, 2025
Merged
Conversation
fa2b5ae to
b30e056
Compare
Collaborator
Author
|
@CodFrm 先让它跑一跑再做测试就没事了
|
7bcf90e to
4476c9f
Compare
4476c9f to
6ce3571
Compare
Member
我打包和test一起跑的时候失败了,分开跑又成功了,不知道是不是因为一起跑的原因 |
CodFrm
reviewed
Nov 8, 2025
| console.log(_this.setTimeoutForTest.prototype); | ||
| _this.setTimeoutForTest(resolve, 100); | ||
| // setTimeout 和 setTimeoutForTest 都測試吧 | ||
| const promise1 = new Promise((resolve) => { |
Collaborator
Author
There was a problem hiding this comment.
檢查其他時間發現這個100ms不用100ms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



概述 Descriptions
变更内容 Changes
截图 Screenshots