Skip to content

Commit 4464a17

Browse files
committed
[Tests] move helpers in to test/_helpers dir
1 parent 22f368f commit 4464a17

File tree

6 files changed

+5
-5
lines changed

6 files changed

+5
-5
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ module.exports = function karma(config) {
6363
],
6464

6565
exclude: [
66-
'test/_*.{jsx,js}',
66+
'test/_helpers/index.jsx',
6767
],
6868

6969
browsers: [

test/ReactWrapper-spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PropTypes from 'prop-types';
55
import { expect } from 'chai';
66
import sinon from 'sinon';
77
import { batchedUpdates } from '../src/react-compat';
8-
import { createClass } from './react-compat';
8+
import { createClass } from './_helpers/react-compat';
99

1010
import {
1111
describeWithDOM,

test/ShallowWrapper-spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33
import { expect } from 'chai';
44
import sinon from 'sinon';
55

6-
import { createClass } from './react-compat';
6+
import { createClass } from './_helpers/react-compat';
77
import { shallow, render, ShallowWrapper } from '../src/';
88
import { describeIf, itIf, itWithData, generateEmptyRenderData } from './_helpers';
99
import { ITERATOR_SYMBOL, withSetStateAllowed } from '../src/Utils';
File renamed without changes.

test/react-compat.js renamed to test/_helpers/react-compat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import/prefer-default-export: 0,
55
*/
66

7-
import { REACT155 } from '../src/version';
7+
import { REACT155 } from '../../src/version';
88

99
let createClass;
1010

test/staticRender-spec.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { expect } from 'chai';
44
import { describeWithDOM, describeIf } from './_helpers';
55
import { render } from '../src/';
66
import { REACT013 } from '../src/version';
7-
import { createClass } from './react-compat';
7+
import { createClass } from './_helpers/react-compat';
88

99
describeWithDOM('render', () => {
1010
describeIf(!REACT013, 'context', () => {

0 commit comments

Comments
 (0)