Skip to content

Commit 6057481

Browse files
authored
Merge pull request #60 from stbestichhh/patch/1.0.4
Patch/1.0.4
2 parents 5ceb172 + c6e6588 commit 6057481

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## Unreleased
8+
## Patch 1.0.4
99
### Added:
1010
* Data decorators for tests
1111
* Optimized mocks registry and test running
1212
* Spy functionality
13+
* Timeout for tests
14+
15+
### Changed:
16+
* Optimized test registry
17+
* Optimized mock registry
1318

1419
## Patch 1.0.3
1520
### Added:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ $ npx stest
9797
|-------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
9898
| `@Test(description?: string)` | Define a class as a test suite |
9999
| `@Case(description?: string)` | Define method as a test case |
100+
| `@Case({ description?: string, timeout?: number })` | Define method as a test case with custom timeout time |
100101
| `@DataSet(...dataSets: any[][])` | Define data sets for multiple running one test case with different data |
101102
| `@DataTable(dataTable: { inputs: any[], expected: any }[])` | Define data table for multiple running one test case with different data. **Data table prevents running tests with data sets.** |
102103
| `@AfterAll(description?: string)` | Force method to run after all test cases |

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Version | Supported |
66
|---------|--------------------|
7+
| 1.0.4 | :white_check_mark: |
78
| 1.0.3 | :white_check_mark: |
89
| 1.0.2 | :white_check_mark: |
910
| 1.0.1 | :x: |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stlib/testing",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Testing framework for TypeScript Node.js applications",
55
"main": "stutil.ts",
66
"types": "stutil.d.ts",

stutil.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ interface IDataTable {
7272
readonly expected: any;
7373
}
7474

75-
export function Case(caseDescription?: string): MethodDecorator;
75+
export function Case(options?: string | { description?: string; timeout?: number }): MethodDecorator;
7676
export function DataSet(...dataSets: any[][]): MethodDecorator;
7777
export function DataTable(dataTable: IDataTable[]): MethodDecorator;
7878
export function Test(testName?: string): ClassDecorator;

0 commit comments

Comments
 (0)