MCPcopy
hub / github.com/vuejs/vue-test-utils

github.com/vuejs/vue-test-utils @v1.3.6 sqlite

repository ↗ · DeepWiki ↗ · release v1.3.6 ↗
438 symbols 1,590 edges 149 files 34 documented · 8%
README

Vue Test Utils Build Status

Component testing utils for Vue 2.

Packages

This repository provides the following two packages:

You can install these packages by the following command.

npm install --save-dev @vue/test-utils@1
npm install --save-dev @vue/server-test-utils@1

Peer Dependencies

You need to install vue-template-compiler which is used to compile components. It should be the same version as the version of Vue you are using.

npm install --save-dev vue-template-compiler

Documentation

Refer to the documentation

Questions

For questions and support please use the Discord chat room or the official forum. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the issue reporting requirements before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

Changelog

Changes for each release are documented in the release notes.

Stay In Touch

For the latest releases and announcements, follow on Twitter: @vuejs

License

MIT

Extension points exported contracts — how you extend this code

BaseWrapper (Interface)
* Base class of Wrapper and WrapperArray * It has common methods on both Wrapper and WrapperArray [7 implementers]
packages/test-utils/types/index.d.ts
BaseWrapper (Interface)
(no doc) [3 implementers]
flow/wrapper.flow.js
MountOptions (Interface)
(no doc)
packages/server-test-utils/types/index.d.ts
WrapperArray (Interface)
(no doc) [3 implementers]
packages/test-utils/types/index.d.ts
VueTestUtilsConfigOptions (Interface)
(no doc)
packages/server-test-utils/types/index.d.ts
Wrapper (Interface)
(no doc) [1 implementers]
packages/test-utils/types/index.d.ts
Normal (Interface)
(no doc)
packages/server-test-utils/types/test/resources.ts
WrapperOptions (Interface)
(no doc)
packages/test-utils/types/index.d.ts

Core symbols most depended-on inside this repo

find
called by 219
flow/wrapper.flow.js
findAll
called by 135
flow/wrapper.flow.js
throwError
called by 110
packages/shared/util.js
html
called by 98
flow/wrapper.flow.js
describeWithShallowAndMount
called by 72
test/resources/utils.js
shallowMount
called by 54
packages/test-utils/src/shallow-mount.js
createLocalVue
called by 53
packages/test-utils/src/create-local-vue.js
exists
called by 52
packages/test-utils/types/index.d.ts

Shape

Function 249
Method 162
Class 14
Interface 13

Languages

TypeScript100%

Modules by API surface

packages/test-utils/src/wrapper.js42 symbols
packages/test-utils/types/index.d.ts39 symbols
packages/test-utils/src/error-wrapper.js37 symbols
packages/test-utils/src/wrapper-array.js31 symbols
flow/wrapper.flow.js28 symbols
packages/shared/validators.js15 symbols
packages/create-instance/create-component-stubs.js13 symbols
packages/shared/util.js12 symbols
test/specs/mount.spec.js10 symbols
packages/create-instance/patch-create-element.js9 symbols
test/specs/wrapper/setData.spec.js7 symbols
packages/test-utils/src/find.js6 symbols

Dependencies from manifests, versioned

@babel/core7.0.0 · 1×
@babel/plugin-proposal-class-properties7.0.0 · 1×
@babel/plugin-proposal-decorators7.0.0 · 1×
@babel/plugin-syntax-flow7.0.0 · 1×
@babel/plugin-syntax-jsx7.0.0 · 1×
@babel/plugin-transform-flow-strip-types7.0.0 · 1×
@babel/preset-env7.0.0 · 1×
@commitlint/cli8.2.0 · 1×
@commitlint/config-conventional8.2.0 · 1×
@rollup/plugin-buble0.21.3 · 1×
@rollup/plugin-commonjs14.0.0 · 1×
@rollup/plugin-json4.1.0 · 1×

For agents

$ claude mcp add vue-test-utils \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact