Commit Graph

63 Commits

Author SHA1 Message Date
Simen Bekkhus 5a937d102d
chore: hoist functions higher if possible (#14812) 2023-12-30 01:06:15 +00:00
Simen Bekkhus 5ce83ac4bc
chore: use consistent type imports (#14662) 2023-10-30 13:37:25 +01:00
Simen Bekkhus d6baacfe74
feat: Refer to specific versions of Jest monorepo dependencies instead of range (#14553) 2023-09-20 12:52:18 +00:00
Simen Bekkhus 149383e258
fix(pretty-format): Handle empty string children in React same as `react-test-renderer` (#14470) 2023-09-19 13:16:01 +02:00
Simen Bekkhus 6ffa48d1cd
chore: upgrade TypeScript to v5 (#14155) 2023-05-24 15:42:50 +02:00
Paul O’Shannessy 6d2632adae
Update copyrights with Meta Platforms, restore original license in Jasmine fork (#13879) 2023-02-09 08:13:08 +01:00
Simen Bekkhus fc8562dcae
chore: add some missing dev dependencies (#13837) 2023-01-28 17:20:27 +01:00
Simen Bekkhus b9282e1972
chore: refresh lockfile (#13798) 2023-01-23 10:59:28 +01:00
Michal Kočárek e77128b128
feat: Allow mocking property value in tests (#13496) 2023-01-04 11:21:38 +01:00
Tom Mrazauskas 5da3402c70
chore(lint): use `jest/no-alias-methods` rule (#13371) 2022-10-03 17:00:53 +02:00
Tom Mrazauskas 8219820a87
chore(lint): use `jest/prefer-to-be` rule (#13369) 2022-10-03 14:07:11 +02:00
Tom Mrazauskas eafabf99e6
chore: replace `@types/jest` with a new private `@jest/test-globals` package (#13344) 2022-10-01 09:40:09 +02:00
Tom Mrazauskas c6b812da65
chore: remove lint exceptions for files in `examples` folder (#13346) 2022-10-01 08:01:13 +01:00
Bryan Mishkin 818b36b89a
chore: fix inconsistent workspace prefixes (#13217) 2022-09-08 11:29:38 +02:00
Simen Bekkhus 132e815f95
chore: update to TypeScript 4.8 (#13177) 2022-08-28 17:09:26 +02:00
Tom Mrazauskas f9718dea00
refactor(jest-mock)!: rework `Mocked*` utility types (#13123) 2022-08-12 11:43:47 +02:00
Simen Bekkhus 24ed3b5ecb
chore: use `jest.mocked` helper in more tests (#13117) 2022-08-11 10:34:17 +02:00
Tom Mrazauskas 0425de0a61
chore: bump `typescript` and related dependencies (#13017) 2022-07-13 13:33:57 +02:00
Tom Mrazauskas 6e6d4b4616
chore: bump `typescript` to v4.7.3 (#12909) 2022-06-04 17:13:47 +02:00
Tom Mrazauskas 3e38157ad5
chore: bump `typescript` to v4.7 (#12901) 2022-06-03 07:15:22 +02:00
Feng Yu ccecdaeaae
Enforce same version of a dependency (#12668) 2022-04-19 12:48:43 +02:00
Nicolas Charpentier e3c84b54d6
chore: update React examples to match with the new React guidelines (#12217) 2022-02-11 08:31:28 +01:00
Nicolas Charpentier 040a50b725
docs: use function components in React examples (#11329) 2021-04-23 07:20:24 +02:00
Simen Bekkhus 30b6cee924
chore: default to node test env rather than browser (#9874) 2020-11-04 17:47:02 +01:00
Chris Shepherd 1b8f70ae50
Update TypeScript example to show use of newer Jest types (#10399) 2020-10-30 11:06:32 +01:00
Simen Bekkhus 1c2011dbce
chore: verify all packages have the same engine requirement (#9871) 2020-04-23 20:19:29 +02:00
태완 4a559b7b76
chore: replace `findDOMNode()` in examples/typescript (#9300) 2020-02-13 22:08:47 +01:00
Simen Bekkhus c588c18595
chore: get rid of custom abstraction on top of execa in e2e tests (#8901) 2019-09-02 15:09:44 +02:00
Simen Bekkhus 5f7c3e4e12
Bump some dev dependency versions (#8044) 2019-03-04 18:55:52 +01:00
Simen Bekkhus e67c8183d2
chore: bump typescript eslint parser 2019-02-07 14:36:54 +01:00
Simen Bekkhus 006b0b9924
chore: add missing preset--env transform to typescript example
Fixes #7784
2019-02-03 14:54:10 +01:00
Simen Bekkhus 89b2f1b3ba
chore: upgrade to prettier 1.16 (#7658) 2019-01-22 15:41:18 +01:00
Michał Pierzchała 64b3a9b72b
chore(breaking): remove regenerator-runtime injection (#7595)
* feat: use @babel/plugin-transform-runtime instead of regenerator-runtime

* fix async example

* add changelog

* add babel/core and babel-jest to all examples

* fix native async test

* chore: dedupe lockfile

* remove babel from native transform test

* add test for async regenerator
2019-01-20 11:43:57 +01:00
Simen Bekkhus c7caa7ba59
handle typescript by default (#7533) 2018-12-19 14:34:34 +01:00
Simen Bekkhus 1818d84b2c
Migrate to Babel 7 (#7016) 2018-12-18 10:28:03 +01:00
Simen Bekkhus 993bc5c5f2
chore: upgrade prettier (#7336) 2018-11-19 15:46:34 +01:00
Terrence Wong 5b7c75d4c3 Add react testing library example (#7346)
* docs: add react-testing-library example

* chore: rename test files to match comments in docs

* docs: show react-testing-library example first then enzyme
2018-11-09 18:48:40 +00:00
Rubén Norte a91ea0ea2b
Add missing copyright headers and code of conduct (#7221)
* Add CODE_OF_CONDUCT.md

* Add Facebook copyright headers

* Replace inlined text with snapshot in detect open handles test
2018-10-23 17:57:23 +01:00
Michał Pierzchała d1ce3cd013 chore: upgrade deps (#6400)
* chore: upgrade deps

* upgrade more packages

* upgrade micromatch

* use jest-junit as a reporter

* downgrade slash to 1.0.0 for now

* revert fbjs incompatible eslint plugins

* Revert eslint

* bring back eslint update because fbjs published new version:

* revert rn react upgrade

* update eslint-plugin-babel peerDep
2018-06-21 20:06:35 +01:00
Raibima Putra 0d9e8b1098 Update typescript example to using ts-jest (#6260)
* Update typescript example to using ts-jest

* Fix failing ci builds

* Update changelog
2018-05-28 11:05:50 +01:00
Michał Pierzchała f0b12711bd Upgrade deps and include examples in workspaces (#6090)
* chore: bump deps

* remove snapshot that shouldn't be checked out

* include examples in workspaces

* mark examples as private

* move pretty-format dev deps to the package; remove enzyme from root pkg

* fix immutable entry
2018-04-30 10:00:08 +01:00
Rick Hanlon II 442e93d488 Update to React 16, handle React.Fragment better (#5816)
* Add React.Fragment to snapshots in unhandled cases

* Add test

* Upgrade to React 16

* Fix flow

* Convert to class component
2018-03-18 08:39:07 +00:00
Michał Pierzchała 78233cbe6f Use valid glob pattern instead of micromatch-specific (#5744)
* Use idiomatic glob pattern instead of micromatch-specific

* Use prettierignore
2018-03-08 12:54:51 +00:00
Michał Pierzchała 4523826a37 Setup for Circle 2 (#4149)
* Setup for Circle 2

* Try to reuse config

* Fix aliases and add browser build

* Adjust config

* Fix save-cache alias

* Add website/node_modules to alias cache

* Change browser docker

* Add working_directory

* add yarn-install-no-sudo

* Remove environment

* Actually skip react-native example on Node 4

* Declare transitive deps in corresponding package.json

* Install node 4 deps with yarn

* Setup import/no-extraneous-dependencies rule
2017-08-08 09:50:47 +01:00
Groo Gang 3f6422d450 Update the reference from `react-addons-test-utils` to `react-dom/test-utils` Fixes #4202 (#4204)
* Update checkbox_with_label.test.tsx

ReactTestUtils has been moved to react-dom/test-utils

* Add react, react-dom dependencies #4202
2017-08-07 07:44:17 +01:00
anraka 21a2b7aaee Consistent naming of files (#3798) 2017-06-23 12:00:04 -07:00
Forbes Lindesay c3bc4c016d Include jest types in typescript example (#3808) 2017-06-13 16:04:04 +01:00
Michał Pierzchała 8c2a65120a Prettier 1.2.2, refactor runCommand (#3352)
* Prettier 1.2.2, refactor runCommand

* Fix test-examples

* Run prettier on examples and scripts

* Fix integration_tests

* Disable esilnt's computed-property-spacing
2017-04-25 16:16:08 +01:00
Christoph Pojer 0650967244 Add all example dependencies to the top level. (#3313) 2017-04-18 11:01:08 -07:00
Rory Hunter 24645935ac Test glob support (#2359)
* Validate for deprecated fields first

The existing validation in jest-validate did not allow for fields
that will be replaced but still have an effect, owing to the order
in which the validation is carried out. Swap the order so that
the deprecation check comes first.

* Implement testGlob option

* Fixes from code review

* Rename testGlob to testMatch, and remove testMatch deprecation

* Forbid testMatch and testRegex being used together

* Update SearchSource.js

* Update messages.js
2017-02-01 14:28:17 +00:00