Skip to content

Commit f54deda

Browse files
committedJan 10, 2023
feat(src): add support for loading prettier configuration files in fixtures
1 parent 13626d1 commit f54deda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

Diff for: ‎src/plugin-tester.ts

+1
Original file line numberDiff line numberDiff line change
@@ -896,6 +896,7 @@ export function pluginTester(options: PluginTesterOptions = {}) {
896896
!errored && typeof rawBabelOutput == 'string'
897897
? trimAndFixLineEndings(
898898
formatResult(rawBabelOutput || '', {
899+
cwd: formatResultFilepath ? path.dirname(formatResultFilepath) : undefined,
899900
filepath: formatResultFilepath,
900901
filename: formatResultFilepath
901902
}),

0 commit comments

Comments
 (0)
Please sign in to comment.