chore(typedoc-plugin-appium): isolate e2e tests due to memory pressure in CI

This commit is contained in:
Christopher Hiller
2023-02-10 16:25:05 -08:00
parent 592f9adcb1
commit 70c98ea12f
2 changed files with 7 additions and 12 deletions

View File

@@ -32,34 +32,34 @@ class DocutilsReporter extends FancyReporter {
/**
* Mapping of log types (the name of the logging method called) to chalk fg colors
*/
static TYPE_COLOR_MAP = {
static readonly TYPE_COLOR_MAP = {
info: 'cyan',
success: 'green',
error: 'red',
warn: 'yellow',
} as const;
} satisfies {[k in LogType]?: typeof ForegroundColor};
/**
* Mapping of log levels to chalk fg colors
*/
static LEVEL_COLORS = {
static readonly LEVEL_COLORS = {
0: 'red',
1: 'yellow',
2: 'white',
3: 'green',
} as const;
} satisfies {[k in LogLevel]?: typeof ForegroundColor};
/**
* Mapping of log types to icons/symbols
*/
static TYPE_ICONS = {
static readonly TYPE_ICONS = {
info: logSymbols.info,
success: logSymbols.success,
error: logSymbols.error,
warn: logSymbols.warning,
debug: figures(''),
trace: figures(''),
} as const;
} satisfies {[k in LogType]?: string};
/**
* Default color to use if we can't find a color for the log type or level
@@ -191,8 +191,3 @@ function createLogProxy(logger: Consola): Consola {
* @see {createLogProxy}
*/
export default rootLogger;
// these are just type-sanity checks
<{[k in LogType]?: typeof ForegroundColor}>DocutilsReporter.TYPE_COLOR_MAP;
<{[k in LogLevel]?: typeof ForegroundColor}>DocutilsReporter.LEVEL_COLORS;
<{[k in LogType]?: string}>DocutilsReporter.TYPE_ICONS;

View File

@@ -26,7 +26,7 @@
"build": "cpy lib/theme/resources build",
"clean": "npx rimraf build/lib/theme/resources",
"test": "run-s test:unit",
"test:e2e": "mocha --timeout 20s \"test/e2e/**/*.e2e.spec.ts\"",
"test:e2e": "mocha --timeout 20s \"test/e2e/index.e2e.spec.ts\" && mocha --timeout 20s \"test/e2e/converter/builtin-external-driver.e2e.spec.ts\" && mocha --timeout 20s \"test/e2e/converter/builtin-method-map.e2e.spec.ts\" && mocha --timeout 20s \"test/e2e/converter/converter.e2e.spec.ts\" && mocha --timeout 20s \"test/e2e/converter/external.e2e.spec.ts\"",
"test:smoke": "node ./index.js",
"test:unit": "mocha --timeout 2s \"test/unit/**/*.spec.ts\""
},