commit
e2dafb4f28
|
@ -23,9 +23,7 @@
|
|||
"setupFiles": [
|
||||
"<rootDir>/tests_config/run_spec.js"
|
||||
],
|
||||
"testRegex": [
|
||||
"jsfmt\\.spec\\.js$"
|
||||
],
|
||||
"testRegex": "jsfmt\\.spec\\.js$",
|
||||
"testPathIgnorePatterns": [
|
||||
"tests/new_react",
|
||||
"tests/more_react"
|
||||
|
|
|
@ -23,7 +23,7 @@ function run_spec(dirname) {
|
|||
const path = dirname + '/' + filename;
|
||||
|
||||
if (!RUN_AST_TESTS) {
|
||||
const source = read(path);
|
||||
const source = read(path).replace(/\r\n/g, '\n');
|
||||
const output = prettyprint(source, path);
|
||||
test(filename, () => {
|
||||
expect(source + '~'.repeat(80) + '\n' + output).toMatchSnapshot();
|
||||
|
|
Loading…
Reference in New Issue