dillon1000/react

Commit

[tests] Revive Forget e2e tests

--- 

Revives e2e test infra from #587. 

- All React component-like functions are compiled. 

- `yarn jest` runs each e2e test twice (forget and no forget) 

Github Actions is already running `yarn test`, which includes all jest tests 

``` 

Run yarn test 

yarn run v1.22.19 

$ yarn workspaces run test 

> babel-plugin-react-forget 

$ yarn jest && yarn snap:build && yarn snap 

$ tsc && jest 

PASS main src/__tests__/Result-test.ts 

PASS main src/__tests__/DisjointSet-test.ts 

PASS e2e with forget src/__tests__/e2e/hello.e2e.js 

PASS e2e no forget src/__tests__/e2e/hello.e2e.js 

Test Suites: 
[4](https://github.com/facebook/react-forget/actions/runs/5732016200/job/15534129231?pr=1881#step:8:5) 
passed, 4 total 

Tests:       23 passed, 23 total 

Snapshots:   11 passed, 11 total 

Time:        
6.1[5](https://github.com/facebook/react-forget/actions/runs/5732016200/job/15534129231?pr=1881#step:8:6)3 
s 

```
Browse files
Changed paths6 files
First-parent comparison
M compiler/forget/packages/babel-plugin-react-forget/package.json ModifiedM compiler/forget/packages/babel-plugin-react-forget/scripts/jest/makeTransform.js ModifiedM compiler/forget/packages/babel-plugin-react-forget/scripts/jest/setupEnvE2E.js ModifiedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/e2e/expectLogs.js AddedA compiler/forget/packages/babel-plugin-react-forget/src/__tests__/e2e/hello.e2e.js AddedM compiler/forget/yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…