[tests] delete stale .expect files

--- 

Looks like we delete `.js` files but missed `.expect` files. Jest probably 
didn't catch this because the basename of the fixtures had duplicates (in 
rule-of-hooks)
This commit is contained in:
Mofei Zhang
2023-05-17 14:39:28 -04:00
parent 0b697d1903
commit 7ba638ef8d
4 changed files with 0 additions and 92 deletions
@@ -1,21 +0,0 @@
## Input
```javascript
function Component(props) {
if (props.cond) {
return null;
}
return useHook();
}
```
## Error
```
[ReactForget] InvalidInput: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning) (5:5)
```
@@ -1,26 +0,0 @@
## Input
```javascript
function Component(props) {
let i = 0;
for (let x = 0; useHook(x) < 10; useHook(i), x++) {
i += useHook(x);
}
return i;
}
```
## Error
```
[ReactForget] InvalidInput: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning) (3:3)
[ReactForget] InvalidInput: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning) (4:4)
[ReactForget] InvalidInput: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning) (3:3)
```
@@ -1,23 +0,0 @@
## Input
```javascript
function Component(props) {
let x = null;
if (props.cond) {
} else {
x = useHook();
}
return x;
}
```
## Error
```
[ReactForget] InvalidInput: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning) (5:5)
```
@@ -1,22 +0,0 @@
## Input
```javascript
function Component(props) {
let x = null;
if (props.cond) {
x = useHook();
}
return x;
}
```
## Error
```
[ReactForget] InvalidInput: Hooks must always be called in a consistent order, and may not be called conditionally. See the Rules of Hooks (https://react.dev/warnings/invalid-hook-call-warning) (4:4)
```