Skip to content

Commit 479e213

Browse files
committed
Export waitForElement from dom-testing-library
1 parent 91c9a8f commit 479e213

File tree

3 files changed

+61
-85
lines changed

3 files changed

+61
-85
lines changed

package-lock.json

Lines changed: 51 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,34 +27,34 @@
2727
"author": "Daniel Cook",
2828
"license": "MIT",
2929
"dependencies": {
30-
"@vue/test-utils": "^1.0.0-beta.13",
30+
"@vue/test-utils": "^1.0.0-beta.15",
3131
"dom-testing-library": "^1.10.0",
3232
"vue": "^2.5.16",
3333
"vue-template-compiler": "^2.5.16"
3434
},
3535
"devDependencies": {
3636
"axios": "^0.18.0",
3737
"babel-cli": "^6.26.0",
38-
"babel-core": "^6.26.0",
39-
"babel-eslint": "^8.2.2",
38+
"babel-core": "^6.26.3",
39+
"babel-eslint": "^8.2.3",
4040
"babel-jest": "^23.0.0-alpha.0",
4141
"babel-plugin-transform-object-rest-spread": "^6.26.0",
4242
"babel-plugin-transform-runtime": "^6.23.0",
4343
"babel-preset-env": "^1.6.1",
4444
"babel-preset-es2015": "^6.24.1",
45-
"coveralls": "^3.0.0",
45+
"coveralls": "^3.0.1",
4646
"eslint": "^4.19.1",
4747
"eslint-config-standard": "^11.0.0",
4848
"eslint-plugin-import": "^2.11.0",
4949
"eslint-plugin-node": "^6.0.1",
5050
"eslint-plugin-promise": "^3.7.0",
51-
"eslint-plugin-standard": "^3.0.1",
52-
"eslint-plugin-vue": "^4.4.0",
51+
"eslint-plugin-standard": "^3.1.0",
52+
"eslint-plugin-vue": "^4.5.0",
5353
"jest": "^22.4.3",
5454
"jest-in-case": "^1.0.2",
5555
"jest-serializer-vue": "^1.0.0",
56-
"vee-validate": "^2.0.6",
57-
"vue-jest": "^2.4.1",
56+
"vee-validate": "^2.0.9",
57+
"vue-jest": "^2.5.0",
5858
"vue-router": "^3.0.1",
5959
"vuex": "^3.0.1"
6060
},

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createLocalVue, mount } from '@vue/test-utils'
22
import Simulate from './Simulate'
3-
import { bindElementToQueries, fireEvent, wait } from 'dom-testing-library'
3+
import { bindElementToQueries, fireEvent, wait, waitForElement } from 'dom-testing-library'
44

55
function render (TestComponent, { props = null, store = null, routes = null } = {}, configurationCb) {
66
const localVue = createLocalVue()
@@ -43,4 +43,4 @@ function render (TestComponent, { props = null, store = null, routes = null } =
4343
}
4444
}
4545

46-
export { render, wait, fireEvent, Simulate }
46+
export { render, wait, waitForElement, fireEvent, Simulate }

0 commit comments

Comments
 (0)