@markpthomas/data-structures
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Data Structures

JavaScript lacks many useful data structures, such as Linked Lists, Heaps, and LRUs. This library implements such structures, including making them easily extendable for those that want further customization.

Documentation

See the Project Wiki for topics like:

  • Complete product description
  • Demos
  • How-to articles
  • API documentation
  • Algorithms, diagrams, and other development documentation

Testing

There is one type of test run (unit), which is run in two different environments (default, and dev). Dev environments run tests from within a running container.

Unit tests for a given file are located in a separate testing file at the same directory location as the tested file.

Test files are designated by the following format {fileTested}.[u]spec.ts.

Unit Tests

Unit tests should mock any and all calls to database repos or calls to other services. Unit tests are typically designated by u, if designated at all.

Filename:
{fileTested}.spec.ts

Commands:

  • yarn test:u - Runs all unit tests directly
  • yarn test:u:dev - Runs all unit tests within a container environment
  • make run_unit_tests - Runs all unit tests within a container environment

Readme

Keywords

none

Package Sidebar

Install

npm i @markpthomas/data-structures

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

2.13 MB

Total Files

64

Last publish

Collaborators

  • markpthomas