-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
116 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
declare module 'spock-react/hooks-types' { | ||
import { IFeature, ISummary } from 'spock-react-types'; | ||
|
||
export interface IMarkdown { | ||
filePath: string; | ||
} | ||
|
||
export interface ISpec { | ||
className: string; | ||
statistics: { | ||
runs: string; | ||
passed: string; | ||
failed: string; | ||
featureFailures: string; | ||
successRate: string; | ||
duration: string; | ||
}; | ||
title: string; | ||
narrative: string; | ||
headers: string[]; | ||
tags: any; | ||
see: any[]; | ||
features: IFeature[]; | ||
generator: string; | ||
} | ||
|
||
export interface IGetSpec { | ||
fileName: string; | ||
} | ||
|
||
export interface IGenerateSearchEntries { | ||
summary?: ISummary; | ||
} | ||
|
||
export interface IActiveLink { | ||
activeLink: string; | ||
setActiveLink: (newLink: string) => void; | ||
} | ||
|
||
export interface IActiveAnchor { | ||
activeAnchor: string; | ||
setActiveAnchor: (newAnchor: string) => void; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
declare module 'spock-react-types' { | ||
export interface IExecutedFeatures { | ||
id: string; | ||
extraInfo: any[]; | ||
} | ||
|
||
export interface ISpecification { | ||
className: string; | ||
title: string; | ||
narrative: string; | ||
featureCount: string; | ||
failures: string; | ||
errors: string; | ||
skipped: string; | ||
successRate: string; | ||
duration: string; | ||
executedFeatures: IExecutedFeatures[]; | ||
ignoredFeatures: any[]; | ||
} | ||
|
||
export interface ISummary { | ||
generator: string; | ||
project: string; | ||
version: string; | ||
created: string; | ||
statistics: { | ||
runs: string; | ||
passed: string; | ||
failed: string; | ||
featureFailures: string; | ||
successRate: string; | ||
duration: string; | ||
}; | ||
specifications: ISpecification[]; | ||
} | ||
|
||
interface IBlock { | ||
kind: string; | ||
text: string; | ||
code: string[]; | ||
} | ||
|
||
export interface IFeature { | ||
id: string; | ||
result: string; | ||
duration: string; | ||
iterations: { | ||
tags: any; | ||
see: any[]; | ||
extraInfo: any[]; | ||
}; | ||
blocks: IBlock[]; | ||
problems: any[]; | ||
} | ||
} |