mirror of
https://github.com/react-webpack-generators/generator-react-webpack.git
synced 2025-12-08 18:01:59 +00:00
Use provided 'components' alias within app files
This commit is contained in:
parent
12e16a61a4
commit
cbef965577
@ -9,7 +9,7 @@ describe('<%= classedName %>', function () {
|
|||||||
container.id = 'content';
|
container.id = 'content';
|
||||||
document.body.appendChild(container);
|
document.body.appendChild(container);
|
||||||
|
|
||||||
<%= scriptAppName %> = require('../../../src/scripts/components/<%= scriptAppName %>.js');
|
<%= scriptAppName %> = require('components/<%= scriptAppName %>.js');
|
||||||
component = React.createElement(<%= scriptAppName %>);
|
component = React.createElement(<%= scriptAppName %>);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ describe('<%= classedName %>', function () {
|
|||||||
var <%= classedName %>, component;
|
var <%= classedName %>, component;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
<%= classedName %> = require('../../../src/scripts/components/<%= classedFileName %>.js');
|
<%= classedName %> = require('components/<%= classedFileName %>.js');
|
||||||
component = React.createElement(<%= classedName %>);
|
component = React.createElement(<%= classedName %>);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@ -4,7 +4,7 @@ describe('main', function () {
|
|||||||
var main, component;
|
var main, component;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
main = require('../../../src/scripts/components/main.jsx');
|
main = require('components/main.jsx');
|
||||||
component = main();
|
component = main();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user