Skip to content

Commit

Permalink
Update dev dependencies (#332)
Browse files Browse the repository at this point in the history
* Update dev dependencies

* Update webpack and remove tests that have no effect with webpack 2
  • Loading branch information
danez committed Nov 18, 2016
1 parent 78a7ae6 commit 8ed32d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 59 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
"webpack": "1 || ^2.1.0-beta"
},
"devDependencies": {
"ava": "^0.16.0",
"ava": "^0.17.0",
"babel-cli": "^6.18.0",
"babel-core": "^6.0.0",
"babel-eslint": "^7.1.0",
"babel-plugin-istanbul": "^2.0.3",
"babel-plugin-istanbul": "^3.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-latest": "^6.16.0",
"codecov": "^1.0.1",
"cross-env": "^2.0.0",
"eslint": "^3.8.1",
"eslint-config-babel": "^2.0.1",
"eslint-plugin-babel": "^3.3.0",
"eslint-config-babel": "^3.0.0",
"eslint-plugin-babel": "^4.0.0",
"eslint-plugin-flowtype": "^2.25.0",
"nyc": "^8.3.2",
"nyc": "^9.0.0",
"rimraf": "^2.4.3",
"webpack": "2.1.0-beta.22"
"webpack": "^2.1.0-beta.22"
},
"scripts": {
"build": "babel src/ --out-dir lib/",
Expand Down
53 changes: 0 additions & 53 deletions test/options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,56 +61,3 @@ test.cb("should interpret options given to the loader", (t) => {
});
});
});

test.cb("should interpret options given globally", (t) => {
const config = assign({}, globalConfig, {
output: {
path: t.context.directory,
},
babel: {
presets: ["es2015"],
}
});

webpack(config, (err) => {
t.is(err, null);

fs.readdir(outputDir, (err, files) => {
t.is(err, null);
t.true(files.length > 0);

t.end();
});
});
});

test.cb("should give priority to loader options", (t) => {
const config = assign({}, globalConfig, {
output: {
path: t.context.directory,
},
babel: {
presets: [],
},
module: {
loaders: [
{
test: /\.jsx?/,
loader: babelLoader + "?presets[]=es2015",
exclude: /node_modules/,
},
],
},
});

webpack(config, (err) => {
t.is(err, null);

fs.readdir(outputDir, (err, files) => {
t.is(err, null);
t.true(files.length > 0);

t.end();
});
});
});

0 comments on commit 8ed32d9

Please sign in to comment.