prettier/tests_integration/__tests__/__snapshots__/file-info.js.snap

122 lines
4.3 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`extracts file-info for a file in not_node_modules (stderr) 1`] = `""`;
exports[`extracts file-info for a file in not_node_modules (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"babylon\\" }
"
`;
exports[`extracts file-info for a file in not_node_modules (write) 1`] = `Array []`;
exports[`extracts file-info for a js file (stderr) 1`] = `""`;
exports[`extracts file-info for a js file (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"babylon\\" }
"
`;
exports[`extracts file-info for a js file (write) 1`] = `Array []`;
exports[`extracts file-info for a known markdown file with no extension (stderr) 1`] = `""`;
exports[`extracts file-info for a known markdown file with no extension (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"markdown\\" }
"
`;
exports[`extracts file-info for a known markdown file with no extension (write) 1`] = `Array []`;
exports[`extracts file-info for a markdown file (stderr) 1`] = `""`;
exports[`extracts file-info for a markdown file (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"markdown\\" }
"
`;
exports[`extracts file-info for a markdown file (write) 1`] = `Array []`;
exports[`extracts file-info with ignored=false for a file in node_modules when --with-node-modules provided (stderr) 1`] = `""`;
exports[`extracts file-info with ignored=false for a file in node_modules when --with-node-modules provided (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"babylon\\" }
"
`;
exports[`extracts file-info with ignored=false for a file in node_modules when --with-node-modules provided (write) 1`] = `Array []`;
exports[`extracts file-info with ignored=true for a file in .prettierignore (stderr) 1`] = `""`;
exports[`extracts file-info with ignored=true for a file in .prettierignore (stdout) 1`] = `
"{ \\"ignored\\": true, \\"inferredParser\\": \\"babylon\\" }
"
`;
exports[`extracts file-info with ignored=true for a file in .prettierignore (write) 1`] = `Array []`;
exports[`extracts file-info with ignored=true for a file in a hand-picked .prettierignore (stderr) 1`] = `""`;
exports[`extracts file-info with ignored=true for a file in a hand-picked .prettierignore (stdout) 1`] = `
"{ \\"ignored\\": true, \\"inferredParser\\": \\"babylon\\" }
"
`;
exports[`extracts file-info with ignored=true for a file in a hand-picked .prettierignore (write) 1`] = `Array []`;
exports[`extracts file-info with inferredParser=foo when a plugin is hand-picked (stderr) 1`] = `""`;
exports[`extracts file-info with inferredParser=foo when a plugin is hand-picked (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"foo\\" }
"
`;
exports[`extracts file-info with inferredParser=foo when a plugin is hand-picked (write) 1`] = `Array []`;
exports[`extracts file-info with inferredParser=foo when plugins are autoloaded (stderr) 1`] = `""`;
exports[`extracts file-info with inferredParser=foo when plugins are autoloaded (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"foo\\" }
"
`;
exports[`extracts file-info with inferredParser=foo when plugins are autoloaded (write) 1`] = `Array []`;
exports[`extracts file-info with inferredParser=foo when plugins are loaded with --plugin-search-dir (stderr) 1`] = `""`;
exports[`extracts file-info with inferredParser=foo when plugins are loaded with --plugin-search-dir (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": \\"foo\\" }
"
`;
exports[`extracts file-info with inferredParser=foo when plugins are loaded with --plugin-search-dir (write) 1`] = `Array []`;
exports[`extracts file-info with inferredParser=null for file.foo (stderr) 1`] = `""`;
exports[`extracts file-info with inferredParser=null for file.foo (stdout) 1`] = `
"{ \\"ignored\\": false, \\"inferredParser\\": null }
"
`;
exports[`extracts file-info with inferredParser=null for file.foo (write) 1`] = `Array []`;
exports[`extracts file-info with with ignored=true for a file in node_modules (stderr) 1`] = `""`;
exports[`extracts file-info with with ignored=true for a file in node_modules (stdout) 1`] = `
"{ \\"ignored\\": true, \\"inferredParser\\": \\"babylon\\" }
"
`;
exports[`extracts file-info with with ignored=true for a file in node_modules (write) 1`] = `Array []`;