3.2.15 • Published 2 years ago
suite-slimmer v3.2.15
suite-slimmer

Streamlines JavaScript testing.
Packages
This is mostly intended for either Angular or NestJS projects, using the following packages:
Installation
npm install suite-slimmer --save-dev
Usage
Tests can also be written for non-Angular and non-NestJS projects with this package directly.
Creating a test
Instantiate a test suite, providing the class type being tested.
import { SlimTestSuite } from 'suite-slimmer'
new SlimTestSuite(MyClass)
.addProviders(new MyDependencyA(), new MyDependencyB())
.addTest('should create class', (cls) => {
expect(cls).to.be.truthy
})
.run()
On SlimTestSuite
, the following methods are available and chainable:
- addImports
- addDeclarations
- addProviders
- addMocks
- addTest
- beforeEach
- afterEach
- beforeAll
- afterAll
- run
Frameworks
The following test frameworks are supported:
- Jasmine
- Jest
- Mocha
Examples
See examples here.
3.2.13
2 years ago
3.2.12
2 years ago
3.2.15
2 years ago
3.2.14
2 years ago
3.2.11
2 years ago
3.2.10
2 years ago
3.2.6
3 years ago
3.2.5
3 years ago
3.2.4
3 years ago
3.2.3
3 years ago
3.2.9
3 years ago
3.2.8
3 years ago
3.2.7
3 years ago
3.2.2
3 years ago
3.2.1
3 years ago
3.2.0
3 years ago
3.1.0
3 years ago
3.0.0
3 years ago
2.0.0
3 years ago
1.0.0
3 years ago