Skip to content

Commit

Permalink
Merge pull request #26 from afontcu/master
Browse files Browse the repository at this point in the history
Rename index file to simplify test imports
  • Loading branch information
dfcook authored May 31, 2019
2 parents e615376 + c552687 commit da9614a
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vue-testing-library",
"version": "0.16.0",
"description": "Simple and complete Vue DOM testing utilities that encourage good testing practices.",
"main": "npm/index.js",
"main": "npm/vue-testing-library.js",
"scripts": {
"lint": "eslint --ext .js,.vue .",
"lint:fix": "eslint --ext .js,.vue . --fix",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/__tests__/debug.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import HelloWorld from './components/HelloWorld'
import { cleanup, render } from '../../src'
import { cleanup, render } from 'vue-testing-library'

beforeEach(() => {
jest.spyOn(console, 'log').mockImplementation(() => {})
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/end-to-end.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, wait } from '../../src'
import { render, wait } from 'vue-testing-library'
import EndToEnd from './components/EndToEnd'

test('it waits for the data to be loaded', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/fetch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axiosMock from 'axios'
import { render, fireEvent } from '../../src'
import { render, fireEvent } from 'vue-testing-library'
import Fetch from './components/Fetch.vue'
import 'jest-dom/extend-expect'

Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/form.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, fireEvent } from '../../src'
import { render, fireEvent } from 'vue-testing-library'
import Login from './components/Login'

test('login form submits', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/integration-with-stubs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, cleanup } from '../../src'
import { render, cleanup } from 'vue-testing-library'
import Form from './components/Form'

afterEach(cleanup)
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/number-display.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import NumberDisplay from './components/NumberDisplay.vue'
import { render } from '../../src'
import { render } from 'vue-testing-library'
import 'jest-dom/extend-expect'

test('calling render with the same component but different props does not remount', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/router/programmatic-routing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from './components/App.vue'
import Home from './components/Home.vue'
import About from './components/About.vue'

import { render, fireEvent } from '../../../../src'
import { render, fireEvent } from 'vue-testing-library'

const routes = [
{ path: '/', component: Home },
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/simple-button.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { render, cleanup, fireEvent } from '../../src'
import { render, cleanup, fireEvent } from 'vue-testing-library'
import SimpleButton from './components/Button'

afterEach(cleanup)
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/stopwatch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import StopWatch from './components/StopWatch.vue'
import { render, wait, fireEvent } from '../../src'
import { render, wait, fireEvent } from 'vue-testing-library'
import 'jest-dom/extend-expect'

test('unmounts a component', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/validate-plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import VeeValidate from 'vee-validate'
import 'jest-dom/extend-expect'

import { render, fireEvent } from '../../src'
import { render, fireEvent } from 'vue-testing-library'
import Validate from './components/Validate'

test('can validate using plugin', async () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/vue-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import App from './components/Router/App.vue'
import Home from './components/Router/Home.vue'
import About from './components/Router/About.vue'

import { render, fireEvent } from '../../src'
import { render, fireEvent } from 'vue-testing-library'

const routes = [
{ path: '/', component: Home },
Expand Down
2 changes: 1 addition & 1 deletion tests/__tests__/vuex.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'jest-dom/extend-expect'

import VuexTest from './components/VuexTest'
import { render, fireEvent } from '../../src'
import { render, fireEvent } from 'vue-testing-library'

const store = {
state: {
Expand Down

0 comments on commit da9614a

Please sign in to comment.