Skip to content

Conversation

@cyfung1031
Copy link
Collaborator

概述 Descriptions

变更内容 Changes

截图 Screenshots

@cyfung1031
Copy link
Collaborator Author

@CodFrm

Screenshot 2025-11-08 at 12 35 10

正常了

@cyfung1031 cyfung1031 force-pushed the pr-fix-cron-/-dayjs---vitest-1 branch from fa2b5ae to b30e056 Compare November 8, 2025 03:38
@cyfung1031
Copy link
Collaborator Author

@CodFrm 先让它跑一跑再做测试就没事了

Screenshot 2025-11-08 at 12 39 53

@cyfung1031 cyfung1031 force-pushed the pr-fix-cron-/-dayjs---vitest-1 branch 2 times, most recently from 7bcf90e to 4476c9f Compare November 8, 2025 04:03
@CodFrm
Copy link
Member

CodFrm commented Nov 8, 2025

@CodFrm 先让它跑一跑再做测试就没事了

Screenshot 2025-11-08 at 12 39 53

我打包和test一起跑的时候失败了,分开跑又成功了,不知道是不是因为一起跑的原因

console.log(_this.setTimeoutForTest.prototype);
_this.setTimeoutForTest(resolve, 100);
// setTimeout 和 setTimeoutForTest 都測試吧
const promise1 = new Promise((resolve) => {
Copy link
Member

Choose a reason for hiding this comment

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

怎么把不相关的也修改了

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

檢查其他時間發現這個100ms不用100ms

@cyfung1031 cyfung1031 changed the title cron / dayjs 的 vitest 调整 test: 调整 cron/dayjs nextTime 的 Vitest 为 sequential 并加入预热、优化含沙盒定时器测试 Nov 8, 2025
@CodFrm CodFrm merged commit dbed242 into scriptscat:main Nov 8, 2025
3 checks passed
@cyfung1031 cyfung1031 deleted the pr-fix-cron-/-dayjs---vitest-1 branch December 21, 2025 09:45
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.

2 participants