Skip to content

Commit 00c177d

Browse files
Improved export test, completely ignore emergency error catchment test coverage
1 parent a72efaa commit 00c177d

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/bundle-orchestrator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export class BundleOrchestrator extends Transform {
189189

190190
callback();
191191
}
192+
/* c8 ignore next 4 */
192193
catch (error) {
193-
/* c8 ignore next 3 */
194194
this.logger.error("_transform completed with error", { error });
195195
callback(new PluginError(PluginName, error));
196196
}

src/main.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import { BundleOrchestrator } from "@userfrosting/gulp-bundle-assets";
1+
import { BundleOrchestrator, MergeRawConfigs, ValidateRawConfig } from "@userfrosting/gulp-bundle-assets";
22
import BundleOrchestratorDefault from "@userfrosting/gulp-bundle-assets";
33
import test from "ava";
44

55
test("Validate exports", t => {
6-
t.assert(typeof BundleOrchestrator === "function", "Named export is wrong type");
6+
t.assert(typeof BundleOrchestrator === "function", "BundleOrchestrator named export is wrong type");
77
t.assert(typeof BundleOrchestratorDefault === "function", "Default export is wrong type");
8+
t.assert(typeof MergeRawConfigs === "function", "MergeRawConfigs named export is wrong type");
9+
t.assert(typeof ValidateRawConfig === "function", "ValidateRawConfig named export is wrong type");
810
});

0 commit comments

Comments
 (0)