Skip to content

Commit 5f475cc

Browse files
author
Markus Oberlehner
committed
Update dependencies
- Change Babel config file to being a JavaScript file instead of JSON. See: babel/babel#7784 - Remove vue-test-utils `update()` calls because they are not necessary anymore. See: vuejs/vue-test-utils#474
1 parent 70adb3e commit 5f475cc

9 files changed

+1786
-1628
lines changed

.babelrc

-17
This file was deleted.

babel.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
`@babel/preset-env`,
5+
{
6+
modules: false,
7+
},
8+
],
9+
],
10+
env: {
11+
test: {
12+
presets: [
13+
`@babel/preset-env`,
14+
],
15+
},
16+
},
17+
};

package-lock.json

+1,762-1,599
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
},
3030
"devDependencies": {
3131
"@avalanche/eslint-config": "^2.0.0",
32-
"@babel/core": "^7.0.0-beta.40",
33-
"@babel/preset-env": "^7.0.0-beta.40",
32+
"@babel/core": "^7.0.0-beta.46",
33+
"@babel/preset-env": "^7.0.0-beta.46",
3434
"@vue/test-utils": "^1.0.0-beta.12",
3535
"babel-core": "^7.0.0-bridge.0",
36-
"babel-jest": "^22.4.1",
36+
"babel-jest": "^22.4.3",
3737
"coveralls": "^3.0.0",
38-
"eslint": "^4.18.2",
38+
"eslint": "^4.19.1",
3939
"eslint-plugin-compat": "^2.2.0",
40-
"eslint-plugin-import": "^2.9.0",
40+
"eslint-plugin-import": "^2.11.0",
4141
"eslint-plugin-markdown": "^1.0.0-beta.6",
42-
"jest": "^22.4.2",
43-
"rollup": "^0.56.5",
42+
"jest": "^22.4.3",
43+
"rollup": "^0.58.2",
4444
"rollup-plugin-babel": "^4.0.0-beta.0",
4545
"uglify-es": "^3.3.9",
4646
"vue": "^2.5.16",

test/module-namespaced.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ describe(`Component initialized with namespaced Vuex module.`, () => {
5353

5454
test(`It should update field values when the store is updated.`, () => {
5555
store.state.fooModule.foo = `foo`;
56-
wrapper.update();
5756

5857
expect(wrapper.element.value).toBe(`foo`);
5958
});

test/module.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ describe(`Component initialized with Vuex module.`, () => {
4747

4848
test(`It should update field values when the store is updated.`, () => {
4949
store.state.fooModule.foo = `foo`;
50-
wrapper.update();
5150

5251
expect(wrapper.element.value).toBe(`foo`);
5352
});

test/multi-row.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ describe(`Component initialized with multi row setup.`, () => {
5858
test(`It should update field values when the store is updated.`, () => {
5959
store.state.users[0].name = `New Name`;
6060
store.state.users[1].email = `[email protected]`;
61-
wrapper.update();
6261

6362
expect(wrapper.find(`input`).element.value).toBe(`New Name`);
6463
expect(wrapper.find(`div:nth-child(2) input:nth-child(2)`).element.value).toBe(`[email protected]`);

test/nested-store.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ describe(`Component initialized with customized getter and mutation functions.`,
5252

5353
test(`It should update field values when the store is updated.`, () => {
5454
store.state.form.foo.foo = `foo`;
55-
wrapper.update();
5655

5756
expect(wrapper.element.value).toBe(`foo`);
5857
});

test/packaged.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ localVue.use(Vuex);
7676
store.state.foo = `foo`;
7777
store.state.bar.bar = `bar`;
7878
store.state.baz[0].foo.baz = `baz`;
79-
wrapper.update();
8079

8180
expect(wrapper.find(`#foo`).element.value).toBe(`foo`);
8281
expect(wrapper.find(`#bar`).element.value).toBe(`bar`);

0 commit comments

Comments
 (0)