Commit Graph
26 Commits
Author SHA1 Message Date
Daniel BradleyandMohamed Hegazy e60ae2a05c Fix parameter name of toBeCloseTo (#19826)
The second argument passed in is not the amount that the number should be within, but is actually the number of significant digits to check. 

Reference: https://github.com/facebook/jest/blob/master/docs/en/ExpectAPI.md#tobeclosetonumber-numdigits
2017-09-25 16:50:09 -07:00
firsttris d061c94a0d bump jest version to 21.1 2017-09-21 06:51:30 +02:00
firsttris 02323b5357 jest: added restoreAllMocks 2017-09-20 19:49:04 +02:00
firsttris 6c121d8c2f jest: added restoreAllMocks 2017-09-20 19:45:34 +02:00
AndyandGitHub d74806eb3d Add lint disables for no-unnecessary-generics (#19508) 2017-09-01 08:34:37 -07:00
Silvio GinterandAndy b641de08ea [@types/jest] Fix tsc rejects constructor arguments for Mock<T>, as it works like intended (#19268)
* Fix tsc rejects constructor arguments for Mock<T>, as it works like intended

* apply code format
2017-08-23 07:33:19 -07:00
AndyandGitHub 924fafffc0 Fix remaining lint errors (#19166) 2017-08-20 15:37:53 -07:00
AndyandGitHub 5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
IkaandMohamed Hegazy 00e167da06 fix(jest): add missing arguments for jest.doMock() (#18830) 2017-08-14 11:14:15 -07:00
Neil GentlemanandSheetal Nandi 23ebc3e63e [jest] add timeout parameter to lifecycle methods (#18556) 2017-08-02 13:04:06 -07:00
AndyandGitHub af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
IkaandAndy 2b52c98aea feat(jest): add types for implementing custom interfaces (#18034)
* refactor(jest): enable tslint

* feat(jest): use global-modifying-module format

* feat(jest): add types for implementing custom interfaces

* fix(jest): should use interface instead of class, since it does not exist in jest environment

* docs(jest): fix typo

* revert: feat(jest): use global-modifying-module format

This reverts commit 99f7db4eac4530423f9de99f0553dbbc5043fc1d.

* docs(jest): fix typo

* feat(jest): update TS version to 2.2

* fix(jest): flow's Maybe type
2017-07-17 11:12:12 -07:00
Dan DascalescuandGitHub 114f6f2787 toMatchObject can also match arrays
https://github.com/facebook/jest/pull/3994
2017-07-08 15:42:07 -07:00
Allan Lukwago 8fe04c5e3c [Jest] @param for timeout 2017-06-21 07:55:44 +03:00
Allan Lukwago ce62b6f1ba [Jest] add timeout option to It interface 2017-06-18 12:14:17 +03:00
slavasitnikovandGitHub 6d1aa9f59f Merge branch 'master' into jest-toBeNaN 2017-06-16 11:59:18 +03:00
Mine StarksandGitHub d3d1cb1d0a Merge pull request #16645 from garbles/master
Add resolves and rejects to Jest Matchers interface
2017-06-15 15:57:16 -07:00
AndyandGitHub 1ee9a51f35 Avoid unnecessary /// <reference types="node" /> in tests (#17226) 2017-06-15 14:53:16 -07:00
zorak c9366a2155 [jest] Bump version 2017-06-15 11:49:58 +03:00
zorak 8d17972c7b [jest] Add toBeNaN matcher 2017-06-15 11:33:09 +03:00
eug48andAndy da66e73945 jest: added addSnapshotSerializer (#16334)
based on flow typings at https://github.com/facebook/jest/blob/e56103cf142d2e87542ddfb6bd892bcee262c0e6/types/PrettyFormat.js
2017-06-01 08:11:18 -07:00
Gabe Scholz 649f8e44f1 PR Fixes:
- Fix Jest version
- Add hasAssertions()
2017-05-29 16:17:51 -07:00
Gabe Scholz dd14b49658 Ensure that typings for resolves and rejects return type Matchers<Promise<void>> 2017-05-23 12:01:10 -07:00
Gabe Scholz 9d9aad622f Add resolves and rejects matchers from Jest 20 2017-05-19 12:01:16 -07:00
Hendrik SchaeidtandMohamed Hegazy 4425d3444e jest: add missing defintion for jasmine default timeout interval (#16314) 2017-05-04 11:53:01 -07:00
Andy Hanson 354cec620d Move all packages to a types directory 2017-03-24 14:27:52 -07:00