Skip to content

Commit 076b641

Browse files
committed
Update packages to latest version and fix failing tests
1 parent 9c196e0 commit 076b641

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-testing-library",
3-
"version": "0.5.4",
3+
"version": "0.6.3",
44
"description": "Simple and complete Vue DOM testing utilities that encourage good testing practices.",
55
"main": "npm/index.js",
66
"scripts": {
@@ -70,7 +70,7 @@
7070
"coverageDirectory": "./coverage",
7171
"collectCoverageFrom": [
7272
"**/src/**/*.js",
73-
"!**/__tests__/**",
73+
"!**/tests/__tests__/**",
7474
"!**/node_modules/**"
7575
],
7676
"testPathIgnorePatterns": [

src/index.js

Lines changed: 2 additions & 3 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 { getQueriesForElement } from 'dom-testing-library'
3+
import { getQueriesForElement, fireEvent, wait, waitForElement } from 'dom-testing-library'
44

55
function render (TestComponent, { props = null, store = null, routes = null } = {}, configurationCb) {
66
const localVue = createLocalVue()
@@ -41,5 +41,4 @@ function render (TestComponent, { props = null, store = null, routes = null } =
4141
}
4242
}
4343

44-
export * from 'dom-testing-library'
45-
export { render, Simulate }
44+
export { render, Simulate, fireEvent, wait, waitForElement }
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1-
<template functional>
1+
<template>
22
<div data-testid="location-display">{{ $route.fullPath }}</div>
33
</template>
4+
5+
<script>
6+
export default {
7+
8+
}
9+
</script>
10+

0 commit comments

Comments
 (0)