Skip to content

Commit

Permalink
Revert attempts to add generator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjsikes committed Sep 6, 2017
1 parent a9b6fc0 commit 78349d7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
7 changes: 1 addition & 6 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"presets": ["es2015", "stage-3"],
"only": [
"lib/**/*.js",
"bin/**/*.js",
"node_modules/yeoman-generator/**/*.js"
]
"presets": ["es2015", "stage-3"]
}
6 changes: 2 additions & 4 deletions lib/generate-loader/loader-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Generator = require('yeoman-generator');
* @class LoaderGenerator
* @extends {Generator}
*/
class LoaderGenerator extends Generator {
const LoaderGenerator = module.exports = class extends Generator {

/**
* Formats a string into webpack loader format
Expand Down Expand Up @@ -133,6 +133,4 @@ class LoaderGenerator extends Generator {
});
}
}
}

module.exports = LoaderGenerator;
};
6 changes: 2 additions & 4 deletions lib/generate-plugin/plugin-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Generator = require('yeoman-generator');
* @class PluginGenerator
* @extends {Generator}
*/
class PluginGenerator extends Generator {
const PluginGenerator = module.exports = class extends Generator {
prompting() {
const prompts = [
{
Expand Down Expand Up @@ -104,6 +104,4 @@ class PluginGenerator extends Generator {
});
}
}
}

module.exports = PluginGenerator;
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
},
"pre-commit": "lint:staged",
"jest": {
"testEnvironment": "node"
"testEnvironment": "node",
"transform": {}
}
}

0 comments on commit 78349d7

Please sign in to comment.