forked from rexk/mocha-mix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
48 lines (46 loc) · 2.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
require('./lib/prepare-dom');
var MochaMix = require('./lib/mocha-mix');
var helpers = require('./lib/helpers');
var compilers = require('./lib/compilers');
var assert = require('./lib/assert');
var contexts = require('./lib/contexts');
var TestUtils = require('react/addons').addons.TestUtils;
module.exports = {
createMocks: MochaMix.createMocks,
registerMocks: MochaMix.registerMocks,
sandbox: MochaMix.sandbox,
mix: MochaMix.mix,
render: helpers.render,
renderComponent: helpers.renderComponent,
enableMockery: helpers.enableMockery,
disableMockery: helpers.disableMockery,
withContext: helpers.withContext,
stubComponent: helpers.stubComponent,
simulateEvent: helpers.simulateEvent,
simulateNativeEvent: helpers.simulateNativeEvent,
elementQuerySelector: helpers.elementQuerySelector,
elementQuerySelectorAll: helpers.elementQuerySelectorAll,
assertRender: assert.renderMatch,
assertNotRender: assert.renderNotMatch,
registerBabel: compilers.registerBabel,
disableStyles: compilers.disableStyles,
disableRawFiles: compilers.disableRawFiles,
enableJSXFiles: compilers.enableJSXFiles,
stubContexts: contexts,
// TestUtils alias
Simulate: TestUtils.Simulate,
renderIntoDocument: TestUtils.renderIntoDocument,
mockComponent: TestUtils.mockComponent,
isElement: TestUtils.isElement,
isElementOfType: TestUtils.isElementOfType,
isDOMComponent: TestUtils.isDOMComponent,
isCompositeComponent: TestUtils.isCompositeComponent,
isCompositeComponentWithType: TestUtils.isCompositeComponentWithType,
findAllInRenderedTree: TestUtils.findAllInRenderedTree,
scryRenderedDOMComponentsWithClass: TestUtils.scryRenderedDOMComponentsWithClass,
findRenderedDOMComponentWithClass: TestUtils.findRenderedDOMComponentWithClass,
scryRenderedDOMComponentsWithTag: TestUtils.scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithTag: TestUtils.findRenderedDOMComponentWithTag,
scryRenderedComponentsWithType: TestUtils.scryRenderedComponentsWithType,
findRenderedComponentWithType: TestUtils.findRenderedComponentWithType
};