-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: re-write some files to typescript - part 2 (#488)
* chore: rename sqlite-adapter to typescript * chore: re-write sqlite-adapter to typescript * chore: rename test-adapter to typescript * chore: rename worker to typescript * chore: re-write test-adapter and worker to typescript * chore: re-write database constants to typescript * chore: move error class to separate files and fix types in sqlite-adapter
- Loading branch information
Showing
19 changed files
with
623 additions
and
354 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
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,5 @@ | ||
export class DbNotInitializedError extends Error { | ||
constructor() { | ||
super('Database must be initialized before use'); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import {Suite} from './types'; | ||
import {Suite, TestResult} from './types'; | ||
|
||
export const getSuitePath = (suite: Suite): string[] => { | ||
return suite.root ? | ||
export const getSuitePath = (suite: TestResult | Suite): string[] => { | ||
return (suite as Suite).root ? | ||
[] : | ||
([] as string[]).concat(getSuitePath(suite.parent as Suite)).concat(suite.title); | ||
}; |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.