Skip to content

Commit 8fe9b9a

Browse files
committed
chore(ci): skip error conditions, improve coverage
1 parent 2f22913 commit 8fe9b9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/module.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export default function NetlifyCmsModule(moduleOptions) {
6161
netlifyCompiler.plugin("done", async stats => {
6262
// Don't reload failed builds
6363
if (stats.hasErrors()) {
64+
/* istanbul ignore next */
6465
return;
6566
}
6667
debug(`Bundle built!`);

src/utils/yaml.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const toYAML = function(object) {
1212
const yaml = safeDump(object);
1313
return yaml;
1414
} catch (e) {
15+
/* istanbul ignore next */
1516
debug(e.message, e.name);
1617
return false;
1718
}
@@ -26,6 +27,7 @@ const loadYAMLFile = function(configFile) {
2627
});
2728
return contents;
2829
} catch (e) {
30+
/* istanbul ignore next */
2931
if (e.code !== "ENOENT") {
3032
debug(e.message, e.name);
3133
}

0 commit comments

Comments
 (0)