File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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 } */
Original file line number Diff line number Diff 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
6267module . exports = req
You can’t perform that action at this time.
0 commit comments