Commit Graph

30 Commits

Author SHA1 Message Date
fisker Cheung 4e7d916ec6
chore: update ESLint to v9 (#15531) 2025-03-05 14:49:46 +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
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
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
Bryan Mishkin 818b36b89a
chore: fix inconsistent workspace prefixes (#13217) 2022-09-08 11:29:38 +02:00
Feng Yu ccecdaeaae
Enforce same version of a dependency (#12668) 2022-04-19 12:48:43 +02:00
Simen Bekkhus a20bd2c31e
chore: activate `prefer-template` eslint rule (#12513) 2022-02-28 11:31:57 +01:00
Simen Bekkhus 30b6cee924
chore: default to node test env rather than browser (#9874) 2020-11-04 17:47:02 +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 1818d84b2c
Migrate to Babel 7 (#7016) 2018-12-18 10:28:03 +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
anraka 21a2b7aaee Consistent naming of files (#3798) 2017-06-23 12:00:04 -07:00
Dmitrii Abramov 33c2980304 s/jasmine.any/expect.any/ (#3683) 2017-05-29 14:11:14 -07:00
Leonardo Souza 6cf16f19ed Update fetchCurrentUser-test.js (#3582)
Changing current example (jQuery test) for simplify the understanding

The motivation for this change is why the output for current example (in verbose mode) is very strange
2017-05-16 15:08:53 +01:00
mpontus 9b157c3a7c Audit @flow and "use strict" (#3451)
* Remove 'use strict' from all files

* 'use strict' removed from pacakges' sources
* Strict mode is now enabled automatically by babel
* 'use strict' check removed from dangerfile
* Updated contributing guidelines

* Enable @flow for most files

* Commit yarn.lock

* Revert removal of "use strict" in test and mock files

* Improve annotations for ReportDispatcher

* Replace "void 0" with "undefined"

* Update babel-plugin-transform-strict-mode to match transitive deps
2017-05-12 11:01:23 +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
Eric Nakagawa 3fc7e9251a Updated examples to use updated Babel 'env' preset (#3303)
* Updating to use Babel env

Updating getting started

Updating enzyme to use babel 'env'

Updating jquery example to use babel 'env'

Updated manual_mocks example to use babel 'env'

Updated react test to use babel 'env'

Updated react-native to use babel 'env'

Update to use babel 'env'

Removed yarn.lock files

* * version

* * version

* * version

* * version

* Update .babelrc
2017-04-17 08:57:51 -07:00
Christoph Pojer e5d5a55b53 Use eslint-plugin-jest inside of Jest. (#2509) 2017-01-05 16:28:49 +00:00
Michał Pierzchała 8fc57da6c7 Rename jest-cli to jest in examples (#2379) 2016-12-20 16:27:29 +00:00
Christoph Pojer cd8976ec50 Enable sort-keys. (#2085) 2016-11-14 17:01:33 +09:00
cpojer fed449c226 Changelog, get rid of `describe` in docs, fix thrown error printing, update new default error messages. 2016-08-31 19:02:14 +01:00
Christoph Pojer 3bbf32a239 New defaults for Jest. (#1511) 2016-08-30 11:07:15 +01:00
auptic 099eef2dc0 spelling errors (#1219)
inner instead of 'inter'
we'd expect it to instead of we'd it expect
2016-06-30 10:02:17 +09:00
Raymond Zhou 07168315fd Rename `tutorial` folder to `jquery`.
Summary:
For https://github.com/facebook/jest/pull/1094#issuecomment-223046579
Closes https://github.com/facebook/jest/pull/1098

Differential Revision: D3372687

fbshipit-source-id: 6d969ac09d4f16e5c94261f96410e303dda55d25
2016-06-01 11:45:51 -07:00
cpojer 81d6697617 New documentation and updated website and examples.
Summary:This gets Jest ready for 0.9.0.

What's new?
* Slightly refreshed look, based on the Relay website.
* New summary of what Jest is on the website.
* New Getting Started guide, with babel support and key feature explanation.
* Added a troubleshooting section.
* Updated all examples in the documentation.
* Added all new APIs to the API docs, updated everything to use `jest.fn()` instead of `jest.genMockFn()`.
* Removed the webpack alias and coffeescript guides. Neither of them are really supported or useful at this point. We can bring back a guide later on proper webpack integration if someone in the community takes this on. The webpack-alias feature is handled by the `moduleNameMapper` API.
* Added a link to the `Failed to get metadata` error in Jest.

See http://cpojer.github.io/jest/ for a preview.

In a follow-up I'll add a section on async testing for Promises and some more info about automocking.
Closes https://github.com/facebook/jest/pull/763

Reviewed By: yungsters

Differential Revision: D3005361

fb-gh-sync-id: f8e634cf4a311764f311f8b5849781b53975e686
shipit-source-id: f8e634cf4a311764f311f8b5849781b53975e686
2016-03-03 14:20:34 -08:00
cpojer 741f4a8de1 Cleanup and update examples in preparation for 0.9.0. 2016-02-25 17:14:18 +09:00
Tom Occhino 686bbaff13 Fix typo in displayUser-test.js
I assume 'invoke' was missing (or fire, or something else?) and s/it's/its/.
2014-05-16 09:35:36 -04:00
jeffmo 88a94d5d1b FIRST! 2014-05-14 09:42:01 -07:00