Skip to content

Commit de0dab0

Browse files
authored
chore: add missing c8 ignore stop markers (#263)
1 parent a00cad8 commit de0dab0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ async function yamlLoader(_, content) {
8585
`'yaml' is required for the YAML configuration files. Make sure it is installed\nError: ${e.message}`
8686
)
8787
}
88+
/* c8 ignore stop */
8889
}
89-
return yaml.parse(content);
90+
return yaml.parse(content)
9091
}
9192

9293
/** @return {import('lilconfig').Options} */

src/req.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@ async function req(name, rootFile = __filename) {
2525
/* c8 ignore start */
2626
throw err
2727
}
28+
/* c8 ignore stop */
2829
}
2930

3031
if (tsx === undefined) {
3132
try {
3233
tsx = await import('tsx/cjs/api')
3334
} catch (error) {
35+
/* c8 ignore start */
3436
importError.push(error)
3537
}
38+
/* c8 ignore stop */
3639
}
3740

3841
if (tsx) {
3942
let loaded = tsx.require(name, rootFile)
4043
return loaded && '__esModule' in loaded ? loaded.default : loaded
44+
/* c8 ignore start */
4145
}
4246

4347
if (jiti === undefined) {
@@ -57,6 +61,7 @@ async function req(name, rootFile = __filename) {
5761
.map(error => error.message)
5862
.join('\n')}`
5963
)
64+
/* c8 ignore stop */
6065
}
6166

6267
module.exports = req

0 commit comments

Comments
 (0)