85 lines
3.1 KiB
Plaintext
85 lines
3.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence cli-override (stdout) 1`] = `
|
|
"let x: keyof Y = foo<typeof X>()
|
|
"
|
|
`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence cli-override (write) 1`] = `[]`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence file-override (stdout) 1`] = `
|
|
"let x: keyof Y = foo<typeof X>();
|
|
"
|
|
`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence file-override (write) 1`] = `[]`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence prefer-file (stdout) 1`] = `
|
|
"let x: keyof Y = foo<typeof X>();
|
|
"
|
|
`;
|
|
|
|
exports[`CLI --stdin-filepath works with --config-precedence prefer-file (write) 1`] = `[]`;
|
|
|
|
exports[`CLI overrides are still applied when no config is found with --config-precedence file-override (stderr) 1`] = `""`;
|
|
|
|
exports[`CLI overrides are still applied when no config is found with --config-precedence file-override (stdout) 1`] = `
|
|
"function noConfigJs() {
|
|
console.log("no-config/file.js should have no semicolons")
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`CLI overrides are still applied when no config is found with --config-precedence file-override (write) 1`] = `[]`;
|
|
|
|
exports[`CLI overrides gets applied when no config exists with --config-precedence prefer-file (stderr) 1`] = `""`;
|
|
|
|
exports[`CLI overrides gets applied when no config exists with --config-precedence prefer-file (stdout) 1`] = `
|
|
"function noConfigJs() {
|
|
console.log(
|
|
"no-config/file.js should have no semicolons"
|
|
);
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`CLI overrides gets applied when no config exists with --config-precedence prefer-file (write) 1`] = `[]`;
|
|
|
|
exports[`CLI overrides gets ignored when config exists with --config-precedence prefer-file (stderr) 1`] = `""`;
|
|
|
|
exports[`CLI overrides gets ignored when config exists with --config-precedence prefer-file (stdout) 1`] = `
|
|
"function js() {
|
|
console.log("js/file.js should have tab width 8 (1 if CLI)");
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`CLI overrides gets ignored when config exists with --config-precedence prefer-file (write) 1`] = `[]`;
|
|
|
|
exports[`CLI validate options with --config-precedence cli-override (stderr) 1`] = `
|
|
"[error] Invalid printWidth value. Expected an integer, but received 0.5.
|
|
"
|
|
`;
|
|
|
|
exports[`CLI validate options with --config-precedence cli-override (stdout) 1`] = `""`;
|
|
|
|
exports[`CLI validate options with --config-precedence cli-override (write) 1`] = `[]`;
|
|
|
|
exports[`CLI validate options with --config-precedence file-override (stderr) 1`] = `
|
|
"[error] Invalid printWidth value. Expected an integer, but received 0.5.
|
|
"
|
|
`;
|
|
|
|
exports[`CLI validate options with --config-precedence file-override (stdout) 1`] = `""`;
|
|
|
|
exports[`CLI validate options with --config-precedence file-override (write) 1`] = `[]`;
|
|
|
|
exports[`CLI validate options with --config-precedence prefer-file (stderr) 1`] = `
|
|
"[error] Invalid printWidth value. Expected an integer, but received 0.5.
|
|
"
|
|
`;
|
|
|
|
exports[`CLI validate options with --config-precedence prefer-file (stdout) 1`] = `""`;
|
|
|
|
exports[`CLI validate options with --config-precedence prefer-file (write) 1`] = `[]`;
|