TS migration. #2288. (#2328)

* Added TS. Updated build and linting config. Added types.

* [ts-migrate][.] Rename files from JS/JSX to TS/TSX

Co-authored-by: ts-migrate <>

* [ts-migrate][.] Run TS Migrate

Co-authored-by: ts-migrate <>

* Corrected files mangled by ts-migrate.

* Updated lint config, minor linting.

* Re-enabled Husky.

* Updated tests and config.

* Reverted webpack devtool config.

* Removed obsolete snapshots.

* Added annotations snap.

* Updated tsconfig includes wrt linting.

* Removed ts-migrate.

Co-authored-by: Timmy Huang <tihuan@users.noreply.github.com>
This commit is contained in:
Mim Hastie
2021-07-26 13:18:17 -07:00
committed by GitHub
parent 7328cbdbd5
commit 934cc5c69b
206 changed files with 4719 additions and 2085 deletions

View File

@@ -79,10 +79,10 @@ See [developer guidelines](developer_guidelines.md)
```ts
{
"e2e": "jest --config __tests__/e2e/e2eJestConfig.json e2e/e2e.test.js",
"e2e": "jest --config __tests__/e2e/e2eJestConfig.json e2e/e2e.test.ts",
}
```
which tells `jest` to use `e2eJestConfig.json` as the config file to run e2e test file `e2e.test.js`
which tells `jest` to use `e2eJestConfig.json` as the config file to run e2e test file `e2e.test.ts`
1. [puppeteer.setup.js](../client/__tests__/e2e/puppeteer.setup.js) is for configuring `jest`, `browser`, and `page` objects at runtime