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

add Mocking timers and module #60

Closed
fengmk2 opened this issue Jun 7, 2024 · 5 comments
Closed

add Mocking timers and module #60

fengmk2 opened this issue Jun 7, 2024 · 5 comments
Assignees

Comments

@fengmk2
Copy link
Member

fengmk2 commented Jun 7, 2024

https://betterstack.com/community/guides/testing/nodejs-test-runner/

@fengmk2 fengmk2 self-assigned this Jun 7, 2024
@fengmk2
Copy link
Member Author

fengmk2 commented Jun 7, 2024

@fengmk2
Copy link
Member Author

fengmk2 commented Jun 7, 2024

支持 ts nodejs/help#3902 (comment)

node --test --require ts-node/register test/**/*.test.ts

@fengmk2
Copy link
Member Author

fengmk2 commented Jun 7, 2024

@fengmk2
Copy link
Member Author

fengmk2 commented Feb 5, 2025

@fengmk2 fengmk2 changed the title add Mocking timers add Mocking timers and module Feb 5, 2025
@fengmk2
Copy link
Member Author

fengmk2 commented Feb 5, 2025

直接用官方模块就好,不做 wrapper 了 https://nodejs.org/docs/latest/api/test.html#class-mocktimers

@fengmk2 fengmk2 closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant