[go: up one dir, main page]

t6
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Install for Development

If T6 is only used during the testing phase of development, it can be installed as a devDependency instead of a dependency. The difference here is that when you pack up your package, or when other people install your package, it will contain all dependencies, but no devDependencies. To install T6 as a devDependency, use the following command in your project directory.

npm i -D t6

Getting Started

T6 contains a simple, lightweight assertion testing framework for JavaScript and TypeScript projects. If any one of the T6 tests fail, it will throw an exception and halt program execution. Exceptions can be caught using the standard try ... catch block.

T6 exports one namespace, T6, that includes several different test types, all of which can be simply derived from T6.isTrue(...). Each test type throws a unique exception message if failed. Custom exception messages are optional, but always recommended for clarity to explain why a test may have failed.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i t6

      Weekly Downloads

      2

      Version

      1.1.5

      License

      MIT

      Unpacked Size

      14.1 kB

      Total Files

      4

      Last publish

      Collaborators

      • nicfv