Bowden Kelly
1a428e1fdb
Merge pull request #14071 from destroyerofbuilds/fix/mocha/IHookCallbackContext
...
fix(mocha): add index definition
2017-02-03 18:25:15 -08: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
Juan David Henao Zapata
c7f6012bae
Update mocha constructor params ( #13962 )
...
Actually mocha constructor support this new objects
2017-01-17 22:14:55 -08:00
Hutson Betts
61af453672
fix(mocha): add index definition
...
Add index definition to IHookCallbackContext to support Mocha's
built-in context shared between setup, tear-down, and test cases.
Context is Mocha's support for Shared Behaviors
(https://github.com/mochajs/mocha/wiki/Shared-Behaviours )
2017-01-17 14:36:35 -06:00
Andy
c0a3889ed8
Make mocha-node unused to prevent installing @types/node for browser users ( #13869 )
2017-01-09 14:06:56 -08:00
Andy
2f71174636
Restructure to support old versions ( #13811 )
...
* Restructure to support old versions
* Fix tests
2017-01-06 12:36:57 -08:00
Peter Burns
2402e987f0
Add this.currentTest to setup and teardown
2016-12-20 17:04:38 -08:00
Melvin Groenhoff
3c87910c0e
Add this parameter types to Mocha callbacks. ( #11905 )
...
* Add this parameter types to Mocha callbacks.
* Fix chai-string to not use mocha context for storing variables.
* Allow to inject into a mocha context.
2016-12-20 20:55:04 +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
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
Stefan Dobrev
7155ef2d2d
[mocha] Add global run function ( #12136 )
2016-10-28 23:15:24 +09:00
Ryan Cavanaugh
b488f3cb5f
Merge remote-tracking branch 'upstream/master' into merge_7_25
2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
e94e9a8630
Merge commit 'upstream/master~450' into merge_7_25
2016-07-26 13:40:56 -07:00
Cao Jiannan
a361a8ab3c
Mocha add promise ( #10067 )
...
* add promise to action function
* revert commment
* modify type of ActionFunction
* change MochaDone
* change type of error
* try to remove optional
* add optional back
* try to remove optional
2016-07-19 17:33:53 -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
Raghav Katyal
395c4e1639
Turning on consistent casing flag and fixing failures
2016-06-30 15:14:49 -07:00
Daniel
b1daff0be8
Add mocha's specify function ( #9691 )
2016-06-19 12:28:55 +09:00
Ryan Cavanaugh
612c172c52
Use correct test list
2016-05-10 12:28:03 -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
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
Michael Nahkies
d6dd320291
Fix implicit any error
2015-10-23 23:32:46 +13:00
Michael Nahkies
a387de1a85
Add support for descriptions on hooks
...
- Includes before, after, beforeEach and afterEach
2015-10-20 22:53:14 +13:00
John Vilk
ff9d48a659
Adding definition of mocha.throwError, with test to cover it.
...
See implementation in Mocha's source code here:
https://github.com/mochajs/mocha/blob/c4393c456839d6bf2cbb4abb1cd177010ee06458/support/browser-entry.js#L98
2015-10-15 16:03:27 -04:00
Masahiro Wakame
9cf502e3c1
Merge pull request #4709 from vvakame/mocha-node
...
separate mocha node.js definition
2015-06-27 11:23:52 +09:00
vvakame
098def61bc
separate mocha node.js definition
2015-06-23 21:38:32 +09:00
Mohsen Azimi
b53cbfb5b5
Add xit and xdescribe
...
In Mocha you can comment out tests by changing their `it` or `describe` blocks to `xit` or `xdescribe`. This change will add support for those functions.
2015-06-22 17:41:15 -07:00
Vadim Macagon
60d204c382
Extend Mocha typings to allow writing of custom reporters
2015-06-04 16:49:28 +07:00
Phips Peter
66d8808c98
Adding test for new mocha API
2015-05-12 11:57:21 -07:00
Phips Peter
372a2c4cd9
Updating the mocha type definitions
2015-05-12 11:56:55 -07:00
Bruce Mitchener
c7b467e42e
mocha.d.ts: Boolean should be boolean.
2015-03-25 21:07:30 +07:00
Jason Tremper
3a022a9a64
Fixes for PR #3313 review
2014-12-18 07:46:43 -05:00
Jason Tremper
19915b733f
Fixing MochaInstance.Run argument to take a function that has a number instead of an array.
2014-12-14 17:12:15 -05:00
Jason Tremper
44729fa526
Adding Mocha instance for "require('mocha')" used for testrunners
2014-12-14 16:55:15 -05:00
Bart van der Schoor
1d345f6c14
cleaned-up headers
2014-06-18 23:31:11 +02:00
otiai10
d1dbf0a217
Update mocha.d.ts: add context statement
2014-05-21 14:48:04 +09:00
SomaticIT
24287527f2
Update Test to remove global var as defined in Definitions
2014-02-05 21:34:50 +01:00
SomaticIT
8200340199
Update Mocha Definitions to 1.17.1
2014-02-05 21:33:54 +01:00
Antonio Laguna
3ca0a69d6c
Adding TDD style to Mocha definitions
2014-01-04 17:46:26 +00:00
Jeffery Grajkowski
798dbfbf8f
Converting ungeneric "Array" to "any[]"
...
TypeScript 0.9.5 beta does not allow generic type references without the type argument. This code will still compile for 0.9.1 users. Flight and Ember have further compile problems in 0.9.5 that I don't feel qualified to address as I'm not versed in those libraries.
2013-11-26 10:29:46 -08:00
Ashwin Ramaswamy
e47fd7152b
mocha's run callback is optional
2013-11-01 16:33:04 -04:00
akalman
4dafacebea
put done interface into a module.
2013-10-24 10:21:17 -07:00