Add a test with same packageName and fileName (#7517)

This commit is contained in:
fisker Cheung authored and GitHub committed 2020-02-18 16:36:17 +02:00
1 parent ada3d08df5
commit bf6ceadb8b
3 files changed
+57 -9

No files matched your search

@@ -1,7 +1,7 @@
"use strict";
const prettier = require("prettier/local");
const concat = prettier.doc.builders.concat;
const { concat } = prettier.doc.builders;
module.exports = {
languages: [
@@ -18,7 +18,11 @@ module.exports = {
},
printers: {
bar: {
print: path => concat(["bar+", path.getValue().text])
print: path =>
concat([
"content from `prettier-plugin-bar` package + ",
path.getValue().text
])
}
},
defaultOptions: {