2017-09-03 16:31:33 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-10-06 12:01:21 +03:00
|
|
|
exports[`do not write file with --write + formatted file (stderr) 1`] = `""`;
|
2017-10-02 19:08:34 +03:00
|
|
|
|
2017-10-06 12:01:21 +03:00
|
|
|
exports[`do not write file with --write + formatted file (stdout) 1`] = `
|
|
|
|
"formatted.js 0ms
|
2017-10-02 19:08:34 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`do not write file with --write + invalid file (stderr) 1`] = `
|
2017-12-02 01:39:10 +03:00
|
|
|
"[error] invalid.js: SyntaxError: Unexpected token, expected \\";\\" (1:6)
|
2017-10-14 04:17:01 +03:00
|
|
|
[error] > 1 | this is invalid!
|
|
|
|
[error] | ^
|
2017-09-03 16:31:33 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
exports[`do not write file with --write + invalid file (stdout) 1`] = `
|
2017-10-06 06:12:32 +03:00
|
|
|
"
|
2017-10-02 19:08:34 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-10-06 12:01:21 +03:00
|
|
|
exports[`write file with --write + unformatted file (stderr) 1`] = `""`;
|
2017-10-02 19:08:34 +03:00
|
|
|
|
2017-10-06 12:01:21 +03:00
|
|
|
exports[`write file with --write + unformatted file (stdout) 1`] = `
|
|
|
|
"unformatted.js 0ms
|
2017-10-02 19:08:34 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-10-06 12:01:21 +03:00
|
|
|
exports[`write file with --write + unformatted file (write) 1`] = `
|
2017-09-03 16:31:33 +03:00
|
|
|
Array [
|
|
|
|
Object {
|
2017-09-03 17:06:55 +03:00
|
|
|
"content": "var x = 1;
|
2017-09-03 16:31:33 +03:00
|
|
|
",
|
2017-10-06 12:01:21 +03:00
|
|
|
"filename": "unformatted.js",
|
2017-09-03 16:31:33 +03:00
|
|
|
},
|
|
|
|
]
|
|
|
|
`;
|