https://github.com/edwinhern/ts-data-structures
A personal project to learn and implement various data structures in TypeScript by creating classes and writing test files to validate them.
https://github.com/edwinhern/ts-data-structures
data-structures learning prettier typescript vitest vitest-ts
Last synced: 9 months ago
JSON representation
A personal project to learn and implement various data structures in TypeScript by creating classes and writing test files to validate them.
- Host: GitHub
- URL: https://github.com/edwinhern/ts-data-structures
- Owner: edwinhern
- Created: 2024-06-05T20:33:31.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-06T03:03:24.000Z (almost 2 years ago)
- Last Synced: 2025-03-15T00:38:10.265Z (about 1 year ago)
- Topics: data-structures, learning, prettier, typescript, vitest, vitest-ts
- Language: TypeScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ Data Structures in TypeScript
[](https://github.com/edwinhern/ts-data-structures/actions/workflows/check-style.yml)
[](https://github.com/edwinhern/ts-data-structures/actions/workflows/test.yml)
๐ Welcome to the documentation for the Data Structures in TypeScript project.
This project is my personal learning journey to implement various data structures in TypeScript by creating classes for each data structure and writing test files to validate them.
## โก Tech Stack
Here's what powers this project:
- โ๏ธ [TypeScript](https://www.typescriptlang.org/) - JavaScript with syntax for types.
- ๐งช [Vitest](https://vitest.dev/) - A Vite-native unit test framework.
- ๐จ [Prettier](https://prettier.io/) - An opinionated code formatter.
## ๐ Useful Links
Enhance your development workflow with these tools:
- ๐ [TypeScript Documentation](https://www.typescriptlang.org/docs/)
- ๐ [Vitest Documentation](https://vitest.dev/guide/)
- ๐๏ธ [Prettier Documentation](https://prettier.io/docs/en/index.html)
## ๐ Scripts
The following npm scripts are available:
- ๐งน `npm run clean`: Removes the coverage directory.
- ๐จ `npm run format`: Formats the code using Prettier.
- ๐ `npm run format:check`: Checks if the code is formatted according to Prettier rules.
- ๐งช `npm run test`: Runs all tests once using Vitest.
- ๐ต๏ธโโ๏ธ `npm run test:dev`: Runs tests in watch mode for development using Vitest.
- ๐ `npm run test:cov`: Runs tests with coverage report using Vitest.