@crowdin/app-project-module
Version:
Module that generates for you all common endpoints for serving standalone Crowdin App
14 lines (13 loc) • 544 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runAllTests = void 0;
const integration_1 = require("./integration");
const runAllTests = ({ getAppConfig, testSuiteConfig, }) => {
if (!testSuiteConfig) {
throw new Error('Please provide a valid tests configuration');
}
if (testSuiteConfig.projectIntegration) {
(0, integration_1.runProjectIntegrationTests)({ getAppConfig, integrationTestConfig: testSuiteConfig.projectIntegration });
}
};
exports.runAllTests = runAllTests;