-
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 (#487)
* chore: re-write test-statuses to typescript * chore: re-write plugin-utils to typescript * chore: rename server utils and constants paths to typescript * chore: rename diff-modes and view-modes to typescript * chore: re-write view-modes and diff-modes to typescript * chore: re-write server-utils to typescript * chore: re-generate package-lock
- Loading branch information
Showing
56 changed files
with
6,422 additions
and
5,440 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
"use strict"; | ||
|
||
module.exports = { | ||
extension: ["js", "jsx", "ts", "tsx"], | ||
recursive: true, | ||
require: ["./test/ts-node", "./test/setup", "./test/assert-ext", "jsdom-global/register"], | ||
}; |
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,4 @@ | ||
export * from './diff-modes'; | ||
export * from './paths'; | ||
export * from './test-statuses'; | ||
export * from './view-modes'; |
This file was deleted.
Oops, something went wrong.
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,2 @@ | ||
export const IMAGES_PATH = 'images'; | ||
export const ERROR_DETAILS_PATH = 'error-details'; |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
export enum TestStatus { | ||
IDLE = 'idle', | ||
QUEUED = 'queued', | ||
RUNNING = 'running', | ||
SUCCESS = 'success', | ||
FAIL = 'fail', | ||
ERROR = 'error', | ||
SKIPPED = 'skipped', | ||
UPDATED = 'updated', | ||
} | ||
|
||
export const IDLE = TestStatus.IDLE; | ||
export const QUEUED = TestStatus.QUEUED; | ||
export const RUNNING = TestStatus.RUNNING; | ||
export const SUCCESS = TestStatus.SUCCESS; | ||
export const FAIL = TestStatus.FAIL; | ||
export const ERROR = TestStatus.ERROR; | ||
export const SKIPPED = TestStatus.SKIPPED; | ||
export const UPDATED = TestStatus.UPDATED; |
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
export enum ViewMode { | ||
ALL = 'all', | ||
PASSED = 'passed', | ||
FAILED = 'failed', | ||
RETRIED = 'retried', | ||
SKIPPED = 'skipped', | ||
} |
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.
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,7 @@ | ||
import {Suite} from './types'; | ||
|
||
export const getSuitePath = (suite: Suite): string[] => { | ||
return suite.root ? | ||
[] : | ||
([] as string[]).concat(getSuitePath(suite.parent as Suite)).concat(suite.title); | ||
}; |
Oops, something went wrong.