File tree 4 files changed +4
-8
lines changed
4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,7 @@ export default class Test {
17
17
constructor ( title ?: string ) ;
18
18
it : ( title : string , fn ?: Function ) => void ;
19
19
xit : ( title : string , _fn ?: Function ) => void ;
20
- run : ( ) => Promise < TestResult [ ] | {
21
- title : string ;
22
- error : any ;
23
- passed : boolean ;
24
- } [ ] > ;
20
+ run : ( ) => Promise < TestResult [ ] > ;
25
21
before : ( fn : FixtureFn ) => void ;
26
22
after : ( fn : FixtureFn ) => void ;
27
23
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export class Test {
22
22
xit = ( title : string , _fn ?: Function ) => {
23
23
this . suite . push ( { title } ) ;
24
24
} ;
25
- run = async ( ) => {
25
+ run = async ( ) : Promise < TestResult [ ] > => {
26
26
this . results = [ ] ;
27
27
try {
28
28
await Promise . all ( this . _before . map ( ( fn ) => fn ( ) ) ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tiny-jest" ,
3
- "version" : " 1.1.1 " ,
3
+ "version" : " 1.1.2 " ,
4
4
"description" : " Minimalistic zero dependency Jest-like test library to run tests in browser, nodejs or deno." ,
5
5
"keywords" : [
6
6
" jest" ,
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default class Test {
22
22
xit = ( title : string , _fn ?: Function ) => {
23
23
this . suite . push ( { title } ) ;
24
24
} ;
25
- run = async ( ) => {
25
+ run = async ( ) : Promise < TestResult [ ] > => {
26
26
this . results = [ ] ;
27
27
try {
28
28
await Promise . all ( this . _before . map ( ( fn ) => fn ( ) ) ) ;
You can’t perform that action at this time.
0 commit comments