drawdb icon indicating copy to clipboard operation
drawdb copied to clipboard

Add test environment, configuration, and unit tests for utils

Open akib22 opened this issue 2 months ago • 1 comments

Summary

This PR adds a testing environment and initial unit tests for the repository’s utility functions to improve reliability and make it easier for contributors to validate changes.

  • Add test configuration and tooling (test framework, setup files, and npm/yarn test scripts).
  • Add unit tests for utility functions (cache, fullscreen, utils).

How to run the tests locally

Install dependencies: npm install (or yarn) Run test: npm run test Run test with UI: npm run test:ui Generate coverage: npm run test:coverage

Coverage Report

image

Request for feedback

  • Do you prefer a different testing framework or directory structure for tests?
  • I'd appreciate any feedback on the testing strategy and am eager to incorporate your suggestions in upcoming test files

Related to

Issue #635

akib22 avatar Oct 09 '25 20:10 akib22

@akib22 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 09 '25 20:10 vercel[bot]