Testing Utilities for Helping You to Write Better TypeScript Programs
npm install tstest



Helps you write better TypeScript programs

tstest is a mature full-featured TypeScript testing tool that helps you write better programs.
The tstest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries.
NOTICE: All the features listed below, is NOT YET IMPLENMENTED.
TO DO:
1. Detailed info on failing assert statements (no need to remember self.assert* names);
1. Auto-discovery of test modules and functions;
1. Modular fixtures for managing small or parametrized long-lived test resources;
1. Can run unittest (including trial) and nose test suites out of the box;
1. JavaScript, TypeScript, Google Apps Script (untested);
1. Rich plugin architecture, with over n+ external plugins and thriving community;
1. Out-of-the-Box Dual Browser/Node.js environment testing support;
This module is highly inspired by pytest
1. test for containerization testings
1. sinon for mocking everything you need
1. AssertEqual for check TypeScript typings
1. testSchedulerRunner for RxJS marble testing
* Testing Python Applications with Pytest
* Typescript Dependency Injection and Decorators
* Decorators with TypeScript
* TypeScript > Decorators #2249
* error TS1206: Decorators are not valid here? #3661
* TypeScript-Handbook > Decorators
* Prototype for a Metadata Reflection API for ECMAScript
* Function Expression Decorators (ECMA-262 Proposal)
* Javascript Decorators
#### Online Tools
* AST Online Explorer
* TypeScript AST Viewer Online
#### Articles & Projects
* TypeScript > Using the Compiler API
* TypeScript Compiler Internals · TypeScript Deep Dive
* TypeScript Compiler API wrapper for static analysis and code manipulation
1. add testScheduleRunner helper function to tstest module for testing RxJS marble diagrams.
1. upgrade tap to v16. (fix tapjs/node-tap#791).
Release v1.0 of tstest
1. Upgrade to tap to replace blue-tape (wechayt/wechaty#2223)
1. Remove sinon-test
1. Enable ES Modules
1. Add AssertEqual for typing tests
1. Publish as a testing toolset wrapper for convenience:
1. blue-tap
1. sinon
1. @types/blue-tap
1. @types/sinon
1. Received the NPM package name: tstest from David Auffret.
1. Scratched a tstest logo.
1. Linked to pytest.
Thanks to David Auffret who owned the tstest name of NPM module. He is so kind and nice that passed this name over to me with the help of support from NPM after my request.
``shell
$ npm deprecate tstest@0.0 'tstest had been republished as a test framework from v0.1'
...
``
Huan LI (李卓桓), Microsoft Regional Director,

- Code & Docs © 2019 Huan LI zixia@zixia.net
- Code released under the Apache-2.0 License
- Docs released under Creative Commons