-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: These tests only make sense in classic mode, so I'm moving them to folders with the prefix `classic_only_`. When classic mode is not supported anymore these tests will be deleted. Reviewed By: jbrown215 Differential Revision: D25601278 fbshipit-source-id: cface29b9c7bb55c4b88f600b1ff1e6cca6b018d
- Loading branch information
1 parent
28f5aa8
commit 8efa4d5
Showing
28 changed files
with
41 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
[lints] | ||
|
||
[options] | ||
types_first=false | ||
no_flowlib=false | ||
|
||
[strict] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[ignore] | ||
|
||
[include] | ||
|
||
[libs] | ||
|
||
[lints] | ||
|
||
[options] | ||
no_flowlib=false | ||
types_first=false | ||
|
||
[strict] |
File renamed without changes.
1 change: 1 addition & 0 deletions
1
tests/classic_only_autofix_insert_type/classic_only_autofix_insert_type.exp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Found 0 errors |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
# Copyright (c) Facebook, Inc. and its affiliates. | ||
# | ||
# This source code is licensed under the MIT license found in the | ||
# LICENSE file in the root directory of this source tree. | ||
|
||
## Correct tests | ||
|
||
TEMP_DIR=tmp | ||
mkdir $TEMP_DIR | ||
|
||
do_file() { | ||
FILE="$1"; shift; | ||
echo "$FILE" "$@" | ||
cp "$FILE" "$TEMP_DIR/$FILE" | ||
assert_ok "$FLOW" autofix insert-type --strip-root --quiet --in-place --path="$TEMP_DIR/out.js" \ | ||
"$TEMP_DIR/$FILE" "$@" | ||
cat "$TEMP_DIR/out.js" | ||
rm "$TEMP_DIR/$FILE" | ||
assert_ok "$FLOW" force-recheck "$TEMP_DIR/out.js" | ||
assert_ok "$FLOW" status | ||
rm "$TEMP_DIR/out.js" | ||
} | ||
|
||
do_file "class-poly-0.js" 4 33 | ||
do_file "comments-0.js" 4 33 | ||
do_file "replacement-function.js" 7 47 |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
tests/type_destructors_merged_t/.flowconfig → ...nly_type_destructors_merged_t/.flowconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
[options] | ||
types_first=false | ||
all=true | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.