This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(debugprint): convert debugprint to TypeScript (#5074)
- Loading branch information
Showing
2 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
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,21 @@ | ||
import * as util from 'util'; | ||
import {Logger} from '../logger'; | ||
import {Runner} from '../runner'; | ||
import {RunResults} from '../taskRunner'; | ||
|
||
const logger = new Logger('debugger'); | ||
|
||
/** | ||
* A debug framework which does not actually run any tests, just spits | ||
* out the list that would be run. | ||
* | ||
* @param {Runner} runner The current Protractor Runner. | ||
* @param {Array} specs Array of Directory Path Strings. | ||
* @return {Promise} Promise resolved with the test results | ||
*/ | ||
export const run = (runner: Runner, specs: Array<string>): Promise<RunResults> => { | ||
return new Promise(resolve => { | ||
logger.info(`Resolved spec files: ${util.inspect(specs)}`); | ||
resolve({failedCount: 0}); | ||
}); | ||
}; |