Граф коммитов

31 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 3f52cb7a1a
Bump @testing-library/jest-dom from 5.16.5 to 6.1.4 (#12461)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Durand <will+git@drnd.me>
2023-11-14 13:46:30 +01:00
renovate[bot] ab83fab6ef
Update jest monorepo to v28 (major) (#11787)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bob Silverberg <bob.silverberg@gmail.com>
2022-07-29 12:52:12 -04:00
Bob Silverberg f4df29e81b
Configure `yarn test` to hide most console messages and long error messages. (#11728) 2022-07-18 09:11:26 -04:00
Bob Silverberg b795360160
Add coverage for api/collections.js (#11637) 2022-06-30 08:15:55 -04:00
Bob Silverberg e44ec349ec
Remove enzyme! (#11625) 2022-06-28 14:11:36 -04:00
Bob Silverberg 401738b907
Migrate pages/TestAddon.js (#11611) 2022-06-23 07:33:59 -04:00
Tim Pillard d7146b512c
Babel improvements: reloaded (#11593)
* Update browserslist's caniuse-lite

$ npx browserslist@latest --update-db
- should be ran regularly
or:
- caniuse-lite added to devDependencies for renovate to pick up.

* Optimize babel configuration for bundle size & runtime performance

* Remove probably unused/unnecessary raf polyfill

* Use babel.config.js file over .babelrc to allow comments

* Cleanup dependencies

- Remove unused/deprecated babel-core dependency

- Remove unnecessary babel-jest dependency, use version provided by jest

- Remove object.values unnecessary dependency

- Move url-loader to devDependencies where it belongs

- Remove typescript dependency

* Upgrade babel dependencies & migrate to assumptions

* Use caret ranges for devDependencies, including Babel related ones

* Fix tests

* Fix lint errors

- misc lint errors
- bin/regenerate_font.js must be wrapped in a function as newest babel
  eslint parser fails to parse a return; statement outside of a function...
- add latest eslint-plugin-react devDependency, as without it, with newest
  babel eslint parser, the plugin fails to see propTypes static class properties.
2022-06-16 19:04:53 +02:00
Mathieu Pillard 5b2cb68064
Revert "Babel improvements (#11587)" (#11589)
This reverts commit dd0cb0f4fa.
2022-06-15 15:09:02 +02:00
Tim Pillard dd0cb0f4fa
Babel improvements (#11587)
* Update browserslist's caniuse-lite

$ npx browserslist@latest --update-db
- should be ran regularly
or:
- caniuse-lite added to devDependencies for renovate to pick up.

* Optimize babel configuration for bundle size & runtime performance

* Remove probably unused/unnecessary raf polyfill

* Use babel.config.js file over .babelrc to allow comments

* Cleanup dependencies

- Remove unused/deprecated babel-core dependency

- Remove unnecessary babel-jest dependency, use version provided by jest

- Remove object.values unnecessary dependency

- Move url-loader to devDependencies where it belongs

- Remove typescript dependency

* Upgrade babel dependencies & migrate to assumptions
2022-06-15 12:04:31 +02:00
Bob Silverberg 1a00e76827
Migrate /pages/TestCollection.js and /pages/TestCollectionEdit.js (#11402) 2022-04-19 12:09:51 -04:00
Bob Silverberg 64823c6d34
Migrate TestAddonMoreInfo from Enzyme (#11309) 2022-02-23 11:28:01 -05:00
renovate[bot] 0242b29090
Update dependency web-vitals to v2.0.1 (#10646)
* Update dependency web-vitals to v2.0.1

* Revert mocks for web-vitals now that the library has been patched

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mathieu Pillard <mpillard@mozilla.com>
2021-06-03 13:14:53 +02:00
renovate[bot] a80b0344cf
Update dependency web-vitals to v2 (#10640)
* Update dependency web-vitals to v2

* Mock performance.getEntriesByName() in tests

* Only patch the method in window.performance if the object is already present

* Update tests/setup.js

Co-authored-by: William Durand <will+git@drnd.me>

* Throw an error if mocked method was already there for the future, and mock to return a list

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Mathieu Pillard <mpillard@mozilla.com>
Co-authored-by: Mathieu Pillard <diox@users.noreply.github.com>
Co-authored-by: William Durand <will+git@drnd.me>
2021-06-02 15:42:34 +02:00
William Durand 02d9f3c1a2
Merge "amo" and "core" packages (1/2) (#9981) 2021-01-12 15:07:03 +01:00
Kumar McMillan 7a293e510b
Show compatible langpacks based on app version when possible (#6138) 2018-09-05 13:54:17 -05:00
greenkeeper[bot] a85b2bf7e9 Update eslint to the latest version 🚀 (#5379) 2018-08-17 19:05:49 -07:00
William Durand ea91d4aa1c
Prevent the test suite from ever calling a real API (#5778) 2018-07-30 21:00:24 +02:00
William Durand d9b067d4a5
Add Prettier (#5313) 2018-06-22 20:55:18 +02:00
William Durand 66b0d920b4
Use sinon.createSandbox() (#4945) 2018-05-07 17:17:24 +02:00
William Durand 7f319a5ed4
Upgrade to React 16 and Enzyme 3 2017-11-28 21:42:25 +01:00
Matthew Riley MacPherson da2c9e7296 chore: Use enzyme for all shallow rendering (fix #2539) 2017-06-09 16:52:03 +01:00
Matthew Riley MacPherson 4daae7c173 chore: Add Enzyme to tests (#1104) 2017-06-07 22:08:49 +01:00
Stuart Colville bdcb785859 Remove babel-polyfill from test setup 2017-05-25 19:33:13 +01:00
Stuart Colville dbcd60d263 Tune config 2017-05-25 18:35:40 +01:00
Stuart Colville e87aa3bf22 Convert before -> beforeAll, after -> afterAll 2017-05-25 18:35:40 +01:00
Stuart Colville 0723979787 Convert from assert to expect 2017-05-25 18:35:40 +01:00
Stuart Colville 4caa35aa2b Move getClientConfig setup to tests/setup 2017-05-25 18:35:40 +01:00
Stuart Colville ccbaa9aa60 Move and test middlewares 2017-05-25 18:35:40 +01:00
Stuart Colville 7c0105ac7d Remove all supertest tests 2017-05-25 18:35:40 +01:00
Stuart Colville 0ab2c05a27 Fix lint 2017-05-25 18:35:39 +01:00
Stuart Colville 5cea1cf9ba Setup Jest 2017-05-25 18:35:39 +01:00