DiceDB / dice

DiceDB is an in-memory, real-time, and reactive database with Redis and SQL support optimized for modern hardware and building real-time applications.
https://dicedb.io/
Other
5.43k stars 700 forks source link

Unit tests for `playground-web` repository #893

Open lucifercr07 opened 2 hours ago

lucifercr07 commented 2 hours ago

Description

DiceDB Playground is an interactive platform that allows users to experiment with DiceDB commands in a live environment, similar to the Go Playground. Users will be able to submit and execute commands directly through a web interface. The initial implementation will focus on enabling users to search for and trigger commands.
For more details about DiceDB playground you can check here.

We need to implement unit tests for the playground-web repository, which contains the Next.js frontend for the Playground project. Unit tests should cover core components and utilities to ensure the application's stability and proper functionality.

Note: Implementation will be part of DiceDB playground frontend repo.

Tasks

  1. Set up a testing framework in the playground-web repo(e.g., Jest).
  2. Create test files for key components and utilities in the playground-web project. Example:
    • CLI
    • Playground
    • Search (There are other files in repository, please make sure to cover as extensibly as possible.)
  3. Tests should cover:
    • Rendering of core components.
    • Correct behavior of functions, props, and state.
    • Edge cases for components or helper functions.
  4. Ensure that the tests are integrated into the CI/CD pipeline (e.g., GitHub Actions) to run automatically on pull requests and commits.
vpsinghg commented 2 hours ago

@lucifercr07 I can pick this up.

lucifercr07 commented 2 hours ago

@vpsinghg assigned, thanks for contributing.