prettier/tests_integration/__tests__/__snapshots__/with-config-precedence.js.snap

128 lines
2.2 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CLI overrides are still applied when no config is found with --config-precedence file-override 1`] = `
"function f() {
console.log(\\"should have no semicolons\\")
}
"
`;
exports[`CLI overrides gets applied when no config exists with --config-precedence prefer-file 1`] = `
"function f() {
console.log(
\\"should have no semicolons\\"
);
}
"
`;
exports[`CLI overrides gets ignored when config exists with --config-precedence prefer-file 1`] = `
"function f() {
console.log(\\"should have tab width 8\\");
}
\\"use strict\\";
module.exports = {
tabWidth: 8
};
"
`;
exports[`CLI overrides take lower precedence with --config-precedence file-override 1`] = `
"function f() {
console.log(\\"should have tab width 8\\");
}
\\"use strict\\";
module.exports = {
tabWidth: 8
};
"
`;
exports[`CLI overrides take precedence with --config-precedence cli-override 1`] = `
"console.log(
\\"should have semi\\"
);
console.log(
\\"should not have semi\\"
)
console.log(
\\"should have semi\\"
);
function f() {
console.log(
\\"should have tab width 8\\"
);
}
\\"use strict\\";
module.exports = {
tabWidth: 8
};
function f() {
console.log(
\\"should have no semicolons\\"
)
}
function f() {
console.log(
\\"should have tab width 3\\"
);
}
function f() {
console.log.apply(
null,
[
'this file',
'should have trailing comma',
'and single quotes',
],
);
}
"
`;
exports[`CLI overrides take precedence without --config-precedence 1`] = `
"console.log(
\\"should have semi\\"
);
console.log(
\\"should not have semi\\"
)
console.log(
\\"should have semi\\"
);
function f() {
console.log(
\\"should have tab width 8\\"
);
}
\\"use strict\\";
module.exports = {
tabWidth: 8
};
function f() {
console.log(
\\"should have no semicolons\\"
)
}
function f() {
console.log(
\\"should have tab width 3\\"
);
}
function f() {
console.log.apply(
null,
[
'this file',
'should have trailing comma',
'and single quotes',
],
);
}
"
`;