@vue/test-utils
Advanced tools
Comparing version 1.0.0-beta.12 to 1.0.0-beta.13
{ | ||
"name": "@vue/test-utils", | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.13", | ||
"description": "Utilities for testing Vue components.", | ||
@@ -13,18 +13,3 @@ "main": "dist/vue-test-utils.js", | ||
"build": "node scripts/build.js", | ||
"build:test": "cross-env NODE_ENV=test node scripts/build.js", | ||
"coverage": "cross-env NODE_ENV=coverage nyc --reporter=lcov --reporter=text npm run test:unit", | ||
"docs": "cd docs && gitbook install && gitbook serve", | ||
"docs:deploy": "scripts/update-docs.sh", | ||
"docs:serve": "cd docs && gitbook serve", | ||
"flow": "flow check", | ||
"lint": "eslint --ext js,vue src test flow build --ignore-path .gitignore", | ||
"lint:docs": "eslint --ext js,vue,md docs --ignore-path .gitignore", | ||
"lint:fix": "npm run lint -- --fix", | ||
"test": "npm run lint && npm run lint:docs && npm run flow && npm run test:types && npm run test:unit && npm run test:unit:karma", | ||
"test:compat": "scripts/test-compat.sh", | ||
"test:unit": "npm run build:test && cross-env BABEL_ENV=test && mocha-webpack --webpack-config test/setup/webpack.test.config.js test/specs --recursive --require test/setup/mocha.setup.js", | ||
"test:unit:karma": "npm run build:test && cross-env BABEL_ENV=test TARGET=browser karma start test/setup/karma.conf.js --single-run", | ||
"test:types": "tsc -p types", | ||
"release": "bash scripts/release.sh", | ||
"release:note": "node scripts/gen-release-note.js" | ||
"build:test": "cross-env NODE_ENV=test node scripts/build.js" | ||
}, | ||
@@ -42,62 +27,13 @@ "repository": { | ||
"devDependencies": { | ||
"babel-core": "^6.26.0", | ||
"babel-eslint": "^7.2.3", | ||
"babel-loader": "^7.0.0", | ||
"babel-plugin-transform-decorators-legacy": "^1.3.4", | ||
"babel-polyfill": "^6.23.0", | ||
"babel-preset-env": "^1.6.0", | ||
"babel-preset-flow-vue": "^1.0.0", | ||
"babel-preset-stage-2": "^6.24.1", | ||
"chai": "^4.0.0", | ||
"chalk": "^2.1.0", | ||
"conventional-changelog": "^1.1.3", | ||
"cross-env": "^5.0.0", | ||
"css-loader": "^0.28.4", | ||
"eslint": "^3.19.0", | ||
"eslint-plugin-flowtype": "^2.34.0", | ||
"eslint-plugin-html": "^3.2.0", | ||
"eslint-plugin-markdown": "^1.0.0-beta.6", | ||
"eslint-plugin-vue": "^2.0.1", | ||
"eslint-plugin-vue-libs": "1.2.0", | ||
"flow-bin": "^0.61.0", | ||
"gitbook-cli": "^2.3.0", | ||
"gitbook-plugin-edit-link": "^2.0.2", | ||
"gitbook-plugin-github": "^3.0.0", | ||
"gitbook-plugin-theme-vuejs": "^1.1.0", | ||
"istanbul-instrumenter-loader": "^3.0.0", | ||
"jsdom": "^11.5.1", | ||
"jsdom-global": "^3.0.2", | ||
"karma": "^1.7.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-mocha": "^1.3.0", | ||
"karma-sinon-chai": "^1.3.1", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-spec-reporter": "^0.0.31", | ||
"karma-webpack": "^2.0.3", | ||
"mocha": "^3.5.0", | ||
"mocha-webpack": "^1.0.0-rc.1", | ||
"nyc": "^11.4.1", | ||
"rollup": "^0.43.0", | ||
"rollup-plugin-buble": "^0.15.0", | ||
"rollup-plugin-commonjs": "^8.2.0", | ||
"rollup": "^0.56.3", | ||
"rollup-plugin-buble": "^0.19.2", | ||
"rollup-plugin-commonjs": "^8.3.0", | ||
"rollup-plugin-flow-no-whitespace": "^1.0.0", | ||
"rollup-plugin-node-resolve": "^3.0.0", | ||
"shelljs": "^0.7.8", | ||
"sinon": "^2.3.2", | ||
"sinon-chai": "^2.10.0", | ||
"typescript": "^2.6.2", | ||
"vue": "^2.5.13", | ||
"vue-class-component": "^6.1.2", | ||
"vue-loader": "^13.6.2", | ||
"vue-router": "^3.0.1", | ||
"vue-server-renderer": "2.5.13", | ||
"vue-template-compiler": "^2.5.13", | ||
"vuetify": "^0.16.9", | ||
"vuex": "^3.0.1", | ||
"webpack": "^3.6.0", | ||
"webpack-node-externals": "^1.6.0" | ||
"rollup-plugin-node-resolve": "^3.0.3", | ||
"typescript": "^2.6.2" | ||
}, | ||
"peerDependencies": { | ||
"vue": "2.x", | ||
"vue-server-renderer": "2.x", | ||
"vue-template-compiler": "^2.x" | ||
@@ -107,10 +43,3 @@ }, | ||
"lodash": "^4.17.4" | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"dist/vue-test-utils.js" | ||
], | ||
"instrument": false, | ||
"sourceMap": false | ||
} | ||
} |
@@ -1,5 +0,5 @@ | ||
# vue-test-utils [![Build Status](https://circleci.com/gh/vuejs/vue-test-utils/tree/dev.png?style=shield)](https://circleci.com/gh/vuejs/vue-test-utils) | ||
# Vue Test Utils [![Build Status](https://circleci.com/gh/vuejs/vue-test-utils/tree/dev.png?style=shield)](https://circleci.com/gh/vuejs/vue-test-utils) | ||
## Currently in beta | ||
To use vue-test-utils beta: | ||
To use Vue Test Utils beta: | ||
``` | ||
@@ -15,7 +15,7 @@ // npm | ||
`vue-test-utils` is the official test library for [Vue.js](http://vuejs.org). It provides methods for unit testing Vue components. | ||
Vue Test Utils is the official test library for [Vue.js](http://vuejs.org). It provides methods for unit testing Vue components. | ||
## Documentation | ||
Refer to [documentation](https://vue-test-utils.vuejs.org/) | ||
Refer to the [documentation](https://vue-test-utils.vuejs.org/) | ||
@@ -37,16 +37,4 @@ ## Examples | ||
## Contribution | ||
Please make sure to read the [Contributing Guide](https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md) before making a pull request. If you have a Vue-related project/component/tool, add it with a pull-request to [this curated list](https://github.com/vuejs/awesome-vue)! | ||
## Changelog | ||
Details changes for each release are documented in the [release notes](https://github.com/vuejs/vue-test-utils/releases). | ||
## Stay In Touch | ||
For the latest releases and announcements, follow on Twitter: [@vuejs](https://twitter.com/vuejs) | ||
## License | ||
[MIT](http://opensource.org/licenses/MIT) |
@@ -48,2 +48,3 @@ import Vue, { VNodeData, ComponentOptions, FunctionalComponentOptions } from 'vue' | ||
exists (): boolean | ||
isVisible (): boolean | ||
visible (): boolean | ||
@@ -142,8 +143,4 @@ | ||
export declare function renderToString<V extends Vue> (component: VueClass<V>, options?: ThisTypedShallowOptions<V>): string | ||
export declare function renderToString<V extends Vue> (component: ComponentOptions<V>, options?: ThisTypedShallowOptions<V>): string | ||
export declare function renderToString (component: FunctionalComponentOptions, options?: ShallowOptions<Vue>): string | ||
export declare let TransitionStub: Component | string | true | ||
export declare let TransitionGroupStub: Component | string | true | ||
export declare let RouterLinkStub: VueClass<Vue> |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3
8
12197
2
394310
6
39