Alexey Svetliakov
1ace18d67a
Fix mocked type
2017-01-31 23:53:42 +01:00
orta
9964163a15
Add more comments to Jest, and bump version to 18.1.0
2017-01-30 15:09:05 -05:00
Daniel Rosenwasser
db7dd61f3f
Merge pull request #13852 from asvetliakov/jest-update
...
Jest update
2017-01-30 10:42:50 -08:00
Gregor MacDougall
7a05f51b8d
Correct Jest toBeCloseTo signature
...
In Jest .toBeCloseTo's second parameter is optional with a default of 5.
See:
https://facebook.github.io/jest/docs/api.html#tobeclosetonumber-numdigits
This updates the type definition to make this parameter optional as
well.
2017-01-27 21:53:38 -05:00
Alexey Svetliakov
2ad8a85892
Wildcard in path
2017-01-26 18:46:02 +01:00
Alexey Svetliakov
1ed54727eb
Fix tsconfig for jest v16
2017-01-26 18:45:28 +01:00
Alexey Svetliakov
bb0a14e75e
Removed redunant intersection
2017-01-26 18:18:04 +01:00
Alexey Svetliakov
09a0be6faf
Keep old typings for v16
2017-01-26 18:12:23 +01:00
Andy
ae4fe7b6de
Use "lib" in tsconfigs instead of "target". ( #13968 )
...
* Use "lib" in tsconfigs instead of "target".
Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.
* Update new-package and readme
* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Alexey Svetliakov
004db1e2c6
Added mockReset()
2017-01-13 05:09:16 +01:00
Matthew McNew
f6f3ac389a
Include Mock<T>.mockReset() ( #13966 )
...
https://facebook.github.io/jest/docs/api.html#mockfnmockreset
2017-01-12 09:28:02 -08:00
Alexey Svetliakov
654c2b4e11
Fix Mocked type
2017-01-11 06:36:08 +01:00
Alexey Svetliakov
3e757ce662
Infer type for jest.fn() for subtypes of object
2017-01-09 20:26:28 +01:00
Alexey Svetliakov
f2581e2b98
Added one more example for jest.Mocked
2017-01-09 06:59:08 +01:00
Alexey Svetliakov
b4fc6f27dc
Jest update
2017-01-09 06:06:27 +01:00
Elger van Boxtel
ecbeaa15c0
added jest matcher toMatchObject ( #13635 )
...
according to https://facebook.github.io/jest/docs/api.html#tomatchobjectobject
2016-12-30 09:39:03 -08:00
Fedor Nezhivoi
541073e5c8
[jest] add type definition for toHaveBeenLastCalledWith ( #13038 )
2016-12-20 21:14:57 +09:00
Andy
a4bd9fa3c1
Add "noImplicitThis" to all tsconfig.json ( #13446 )
...
* Add "noImplicitThis" to all tsconfig.json
* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Paul van Brenk
4869902fc7
Merge pull request #11899 from beckend/jest-it-callback-strictNullChecks-fix
...
[types-2.0] jest - It optional callback fix
2016-11-30 14:22:35 -08:00
Kanchalai Tanglertsampan
1200f753d6
Merge branch 'master' into types-2.0
...
# Conflicts:
# .gitignore
# ajv/ajv.d.ts
# angular-material/angular-material.d.ts
# angular-protractor/angular-protractor.d.ts
# angularjs/angular-tests.ts
# angularjs/angular.d.ts
# aws-sdk/aws-sdk.d.ts
# electron-devtools-installer/electron-devtools-installer-tests.ts
# electron-json-storage/electron-json-storage-tests.ts
# electron-notifications/electron-notifications.d.ts
# electron-notify/electron-notify.d.ts
# electron-window-state/electron-window-state.d.ts
# electron/electron-prebuilt.d.ts
# enzyme/enzyme.d.ts
# eventemitter3/eventemitter3-tests.ts
# eventemitter3/eventemitter3.d.ts
# graphql/graphql.d.ts
# highcharts/highcharts.d.ts
# immutable/immutable.d.ts
# inquirer/inquirer.d.ts
# jasmine/jasmine.d.ts
# joi/joi.d.ts
# jquery.dataTables/jquery.dataTables-tests.ts
# jquery.dataTables/jquery.dataTables.d.ts
# kafka-node/kafka-node.d.ts
# kefir/kefir.d.ts
# kendo-ui/kendo-ui.d.ts
# koa/koa.d.ts
# leaflet/leaflet.d.ts
# lodash/lodash.d.ts
# mapbox-gl/mapbox-gl.d.ts
# material-ui/material-ui.d.ts
# menubar/menubar.d.ts
# mongodb/mongodb.d.ts
# needle/needle-tests.ts
# needle/needle.d.ts
# noble/noble.d.ts
# node/node.d.ts
# pegjs/pegjs.d.ts
# pixi.js/pixi.js.d.ts
# polymer/polymer.d.ts
# quill/quill-tests.ts
# quill/quill.d.ts
# react-bootstrap/react-bootstrap.d.ts
# react-fa/react-fa-tests.tsx
# react-fa/react-fa.d.ts
# react-native/react-native.d.ts
# react-select/react-select.d.ts
# react/react.d.ts
# threejs/three-vrcontrols.d.ts
# threejs/three-vreffect.d.ts
# toastr/toastr.d.ts
# validator/validator.d.ts
# webpack/webpack.d.ts
# winston/winston.d.ts
2016-11-09 17:20:41 -08:00
Ivo Stratev
e6413e382d
updating jest to 16.0.0 ( #12066 )
2016-10-25 22:10:17 +09:00
beckend
08374625aa
fix optional callback
2016-10-11 12:16:03 +02:00
Andy Hanson
91d1d6d60f
Merge remote-tracking branch 'origin/master' into merge_21sep
2016-09-21 09:45:05 -07:00
Andy Hanson
b02b9903cc
Merge commit 'origin/master~100' into merge_21sep
2016-09-21 08:13:15 -07:00
NoHomey
26bb1f5bc5
Updating jest.d.ts to be close to what @jwbay requested
2016-09-19 17:14:45 +03:00
NoHomey
22a0c3a9a6
[jest] updating definition to match latest API reference
2016-09-15 18:22:20 +03:00
ShMcK
0a51f69a36
Add toThrowError test matcher ( #11171 )
...
Add `toThrowError` test docs.
See Jest Docs [toThrowError](https://facebook.github.io/jest/docs/api.html#tothrowerror-error ).
2016-09-14 21:13:51 +09:00
Caleb Meredith
c0d81d137d
add test alias to Jest
2016-09-08 20:56:56 -04:00
Ryan Cavanaugh
b488f3cb5f
Merge remote-tracking branch 'upstream/master' into merge_7_25
2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
a5f4d50ccc
Fix tsconfig files for new option name / behavior.
...
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
miter
a14e3e7bca
adding jest.disableAutomock() definition
2016-07-06 12:18:12 +10:00
Raghav Katyal
395c4e1639
Turning on consistent casing flag and fixing failures
2016-06-30 15:14:49 -07:00
Ryan Cavanaugh
bfd400a8f8
Add noEmit to all config files
2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
e808e8e062
Remove unneeded references
2016-05-10 12:22:25 -07:00
Ryan Cavanaugh
50387d4046
Change relative reference paths to types references. Errors incoming...
2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38
Rename all entry points to index.d.ts and explicitify all file lists
2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5
Add typesRoot to all config files
2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be
Turn off strict null checks
2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a
Add tsconfig.json files
2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
e7c111c4b7
Merge remote-tracking branch 'upstream/master' into types2.0
...
Add tsconfig files everywhere
# Conflicts:
# azure-mobile-services-client/AzureMobileServicesClient.d.ts
# bookshelf/bookshelf.d.ts
# hapi/hapi.d.ts
# helmet/helmet.d.ts
# mongodb/mongodb.d.ts
# nock/nock.d.ts
# react-bootstrap/react-bootstrap.d.ts
# react-helmet/react-helmet.d.ts
# restify/restify.d.ts
# sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
pafflique
ed7feb8223
jest.mock should accept optional factory ( #9079 )
...
https://facebook.github.io/jest/docs/api.html#jest-mock-modulename-factory
2016-04-25 23:11:05 +09:00
Masahiro Wakame
23f84821c7
Merge pull request #8545 from suniala/jest-0.9
...
Update jest type definitions to 0.9.0
2016-03-19 12:36:28 +09:00
vvakame
7de6c3dd94
Merge branch 'master' into rename-repo-url
2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4
replace internal module to namespace
2016-03-17 02:18:10 +09:00
vvakame
56295f5058
replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped
2016-03-17 00:55:26 +09:00
Mikko Suniala
1fad2ff3a1
Update jest type definitions to 0.9.0
...
Add new functions and remove functions that have been dropped.
From api documentation regarding unmock/dontMock:
Note: this method was previously called dontMock. When using
babel-jest, calls to unmock will automatically be hoisted to the top
of the code block. You can use dontMock if you want to explicitly
avoid this behavior.
2016-03-15 08:59:45 +02:00
Scott K
72314845b9
update jest.d.ts by fixing typo
2016-02-24 10:38:51 -06:00
Ali Taheri
19a046ce14
[jest] improved typings.
2015-11-01 11:09:06 +03:30
Aleksei Barbarosh
aa3f2581c7
Update function scope.
...
Add missed function toBeDefined.
2015-10-16 21:03:08 +03:00
Kirill
8530097130
Fixed typo in Matchers.toBeGreaterThan
2015-01-26 14:28:24 +02:00