Skip to content

Commit

Permalink
Merge 27b279b into 7f3dd2b
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaredWilcurt committed Apr 21, 2020
2 parents 7f3dd2b + 27b279b commit 235b126
Show file tree
Hide file tree
Showing 16 changed files with 390 additions and 353 deletions.
686 changes: 351 additions & 335 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
},
"devDependencies": {
"@babel/preset-env": "^7.9.5",
"@vue/test-utils": "^1.0.0-beta.33",
"@lmiller1990/vue-test-utils-next": "next",
"@vue/compiler-sfc": "latest",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^25.4.0",
Expand All @@ -36,10 +37,10 @@
"eslint-plugin-jsdoc": "^24.0.0",
"eslint-plugin-vue": "^6.2.2",
"jest": "24.9.0",
"vue": "^2.6.11",
"typescript": "^3.8.3",
"vue": "next",
"vue-good-table": "^2.19.1",
"vue-jest": "^3.0.5",
"vue-template-compiler": "^2.6.11"
"vue-jest": "5.0.0-alpha.0"
},
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion tests/AllVNodeManipulations.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import AllVNodeManipulations from './components/AllVNodeManipulations.vue';

const shallowMount = mount;

describe('AllVNodeManipulations.vue', () => {
test('Attribute and input value shown', () => {
helpers.mockSettings({
Expand Down
4 changes: 3 additions & 1 deletion tests/AttributesToClear.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import AttributesToClear from './components/AttributesToClear.vue';

const shallowMount = mount;

describe('AttributesToClear.vue', () => {
test('Default snapshot', () => {
helpers.mockSettings({ removeDataTest: false });
Expand Down
4 changes: 3 additions & 1 deletion tests/Empty.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { mount, shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import Empty from './components/Empty.vue';

const shallowMount = mount;

describe('Empty.vue', () => {
beforeEach(() => {
helpers.mockSettings({});
Expand Down
4 changes: 3 additions & 1 deletion tests/InputValue.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import InputValue from './components/InputValue.vue';

const shallowMount = mount;

describe('InputValue.vue', () => {
test('Value shown in snapshot', () => {
helpers.mockSettings({ addInputValues: true });
Expand Down
4 changes: 3 additions & 1 deletion tests/List.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import List from './components/List.vue';

const shallowMount = mount;

describe('List.vue', () => {
test('Snapshot unchanged', () => {
helpers.mockSettings({});
Expand Down
4 changes: 3 additions & 1 deletion tests/ListSpaced.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import ListSpaced from './components/ListSpaced.vue';

const shallowMount = mount;

describe('ListSpaced.vue', () => {
test('Snapshot unchanged', () => {
helpers.mockSettings({});
Expand Down
4 changes: 3 additions & 1 deletion tests/ObjectAttribute.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import ObjectAttribute from './components/ObjectAttribute.vue';

const shallowMount = mount;

describe('ObjectAttribute.vue', () => {
test('Does not mutate original component wrapper', () => {
helpers.mockSettings({ stringifyObjects: true });
Expand Down
4 changes: 3 additions & 1 deletion tests/Parent.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { mount, shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import Parent from './components/Parent.vue';

const shallowMount = mount;

describe('Parent.vue', () => {
beforeEach(() => {
helpers.mockSettings({});
Expand Down
2 changes: 1 addition & 1 deletion tests/Recursive.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const helpers = require('./helpers.js');

import { mount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import Recursive from './components/Recursive.vue';

/*
Expand Down
2 changes: 1 addition & 1 deletion tests/ScopedStylesInDependency.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const helpers = require('./helpers.js');

import { mount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import ScopedStylesInDependency from './components/ScopedStylesInDependency.vue';

describe('ScopedStylesInDependency.vue', () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/SvgDemo.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const helpers = require('./helpers.js');

import { mount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import SvgDemo from './components/SvgDemo.vue';

describe('SvgDemo.vue', () => {
Expand Down
4 changes: 3 additions & 1 deletion tests/TestTokens.test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
const helpers = require('./helpers.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import TestTokens from './components/TestTokens.vue';

const shallowMount = mount;

describe('TestTokens.vue', () => {
test('Remove data-server-rendered, data-test, data-testid, data-test-id by default', () => {
helpers.mockSettings({});
Expand Down
2 changes: 1 addition & 1 deletion tests/Zoom.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const helpers = require('./helpers.js');

import { mount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';
import Zoom from './components/Zoom.vue';

describe('Zoom.vue', () => {
Expand Down
4 changes: 3 additions & 1 deletion tests/src/vnodeManipulation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const helpers = require('../helpers.js');
const loadOptions = require('../../src/loadOptions.js');
const vnodeManipulation = require('../../src/vnodeManipulation.js');

import { shallowMount } from '@vue/test-utils';
import { mount } from '@lmiller1990/vue-test-utils-next';

const shallowMount = mount;

describe('VnodeManipulation', () => {
test('Deep clone fails', () => {
Expand Down

0 comments on commit 235b126

Please sign in to comment.