Skip to content

Commit

Permalink
Fix webpack test config created by Yeoman's generator to include plug…
Browse files Browse the repository at this point in the history
…ins defined in base config and fix tests.
  • Loading branch information
dzwiedziu-nkg committed Mar 14, 2017
1 parent b9d7f14 commit 702f326
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cfg/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,7 @@ module.exports = {
})
]
};

// Add aliases and plugins defined in base.js
module.exports.resolve.alias = Object.assign({}, baseConfig.resolve.alias, module.exports.resolve.alias);
module.exports.plugins = baseConfig.plugins.concat(module.exports.plugins);
2 changes: 1 addition & 1 deletion test/components/MainTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ describe('MainComponent', function () {
});

it('should have its component name as default className', function () {
expect(this.MainComponent.props.className).to.equal('index');
expect(this.MainComponent.props.className).to.equal('container');
});
});

0 comments on commit 702f326

Please sign in to comment.