diff --git a/lib/exports-for-compare-action.ts b/lib/exports-for-compare-action.ts index 03bcd3ca..5f3caeac 100644 --- a/lib/exports-for-compare-action.ts +++ b/lib/exports-for-compare-action.ts @@ -1,5 +1,7 @@ /** - * Undocumented private API for Github CI action eslint-remote-tester-compare-action + * Undocumented private API for Github CI actions: + * - `eslint-remote-tester-compare-action` + * - `eslint-remote-tester-run-action` */ export { RESULT_PARSER_TO_COMPARE_TEMPLATE, @@ -13,4 +15,5 @@ export { } from '@file-client/file-constants'; export { default as validateConfig } from '@config/validator'; +export { loadConfig } from '@config/load'; export { Config, ConfigToValidate } from '@config/types'; diff --git a/test/integration/integration.action-exports.test.ts b/test/integration/integration.action-exports.test.ts index 501e057e..46979ed2 100644 --- a/test/integration/integration.action-exports.test.ts +++ b/test/integration/integration.action-exports.test.ts @@ -47,15 +47,22 @@ test('exports validateConfig', async () => { console.log = consolelog; }); +test('exports loadConfig', async () => { + expect(actionExports.loadConfig).toBeInstanceOf(Function); +}); + test('exports typings', () => { expect(fs.readFileSync('dist/exports-for-compare-action.d.ts', 'utf8')) .toMatchInlineSnapshot(` "/** - * Undocumented private API for Github CI action eslint-remote-tester-compare-action + * Undocumented private API for Github CI actions: + * - \`eslint-remote-tester-compare-action\` + * - \`eslint-remote-tester-run-action\` */ export { RESULT_PARSER_TO_COMPARE_TEMPLATE, Result, ComparisonResults, } from './file-client/result-templates'; export { RESULT_COMPARISON_CACHE, RESULTS_COMPARISON_CACHE_LOCATION, } from './file-client/file-constants'; export { default as validateConfig } from './config/validator'; + export { loadConfig } from './config/load'; export { Config, ConfigToValidate } from './config/types'; //# sourceMappingURL=exports-for-compare-action.d.ts.map" `);