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 test for fun #54

Closed
wants to merge 1 commit into from
Closed

Conversation

crystalin
Copy link
Collaborator

@crystalin crystalin commented Oct 17, 2024

Add tests and update monitor script to support block monitoring parameter.

  • Add test/sample.test.ts with a sample test case using Jest.
  • Add test/monitor.test.ts with a test case for the monitor script using Jest.
  • Modify .github/workflows/check.yml and .github/workflows/verify-compilation.yml to include jobs to run tests using Jest.
  • Modify .dockerignore and .npmignore to ensure the test directory is not excluded.
  • Modify src/tools/monitor.ts to add a new feature to the monitor script that uses a parameter to specify the number of blocks to monitor until it stops.
  • Modify src/utils/monitoring.ts to update the listenBlocks function to support the new parameter as optional.

For more details, open the Copilot Workspace session.

Add tests and update monitor script to support block monitoring parameter.

* Add `test/sample.test.ts` with a sample test case using Jest.
* Add `test/monitor.test.ts` with a test case for the monitor script using Jest.
* Modify `.github/workflows/check.yml` and `.github/workflows/verify-compilation.yml` to include jobs to run tests using Jest.
* Modify `.dockerignore` and `.npmignore` to ensure the `test` directory is not excluded.
* Modify `src/tools/monitor.ts` to add a new feature to the monitor script that uses a parameter to specify the number of blocks to monitor until it stops.
* Modify `src/utils/monitoring.ts` to update the `listenBlocks` function to support the new parameter as optional.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Moonsong-Labs/moonbeam-tools?shareId=XXXX-XXXX-XXXX-XXXX).
@crystalin
Copy link
Collaborator Author

That was just for testing copilot Workspace. closing it

@crystalin crystalin closed this Oct 17, 2024
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.

1 participant