@vue/test-utils
Advanced tools
Comparing version 2.4.5 to 2.4.6
@@ -68,3 +68,3 @@ import { Component, ComponentOptions, Directive, Plugin, AppConfig, VNode, VNodeProps, FunctionalComponent, ComponentInternalInstance, Ref } from 'vue'; | ||
*/ | ||
attachTo?: HTMLElement | string; | ||
attachTo?: Element | string; | ||
} | ||
@@ -71,0 +71,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { DeepRef, GlobalMountOptions, RefSelector, Stub, Stubs } from './types'; | ||
import { GlobalMountOptions, RefSelector, Stub, Stubs } from './types'; | ||
import { Component, ComponentOptions, ComponentPublicInstance, ConcreteComponent, Directive, FunctionalComponent } from 'vue'; | ||
@@ -28,11 +28,1 @@ export declare function mergeGlobalProperties(mountGlobal?: GlobalMountOptions): Required<GlobalMountOptions>; | ||
export declare const getGlobalThis: () => any; | ||
/** | ||
* Checks if the given value is a DeepRef. | ||
* | ||
* For both arrays and objects, it will recursively check | ||
* if any of their values is a Ref. | ||
* | ||
* @param {DeepRef<T> | unknown} r - The value to check. | ||
* @returns {boolean} Returns true if the value is a DeepRef, false otherwise. | ||
*/ | ||
export declare const isDeepRef: <T>(r: DeepRef<T> | unknown) => r is DeepRef<T>; |
@@ -21,3 +21,3 @@ import { App, ComponentPublicInstance } from 'vue'; | ||
private attachNativeEventListener; | ||
get element(): Element; | ||
get element(): T['$el']; | ||
get vm(): T; | ||
@@ -24,0 +24,0 @@ props(): T['$props']; |
{ | ||
"name": "@vue/test-utils", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"license": "MIT", | ||
@@ -36,12 +36,12 @@ "main": "dist/vue-test-utils.cjs.js", | ||
"@types/js-beautify": "1.14.3", | ||
"@types/node": "20.11.27", | ||
"@typescript-eslint/eslint-plugin": "7.2.0", | ||
"@typescript-eslint/parser": "7.2.0", | ||
"@types/node": "20.12.8", | ||
"@typescript-eslint/eslint-plugin": "7.8.0", | ||
"@typescript-eslint/parser": "7.8.0", | ||
"@vitejs/plugin-vue": "5.0.4", | ||
"@vitejs/plugin-vue-jsx": "3.1.0", | ||
"@vitest/coverage-v8": "1.3.1", | ||
"@vue/compat": "3.4.21", | ||
"@vue/compiler-dom": "3.4.21", | ||
"@vue/compiler-sfc": "3.4.21", | ||
"@vue/server-renderer": "3.4.21", | ||
"@vitest/coverage-v8": "1.5.3", | ||
"@vue/compat": "3.4.26", | ||
"@vue/compiler-dom": "3.4.26", | ||
"@vue/compiler-sfc": "3.4.26", | ||
"@vue/server-renderer": "3.4.26", | ||
"eslint": "8.57.0", | ||
@@ -55,14 +55,15 @@ "eslint-config-prettier": "9.1.0", | ||
"prettier": "3.2.5", | ||
"reflect-metadata": "0.2.1", | ||
"rollup": "4.13.0", | ||
"reflect-metadata": "0.2.2", | ||
"rollup": "4.17.2", | ||
"tslib": "2.6.2", | ||
"typescript": "5.4.2", | ||
"unplugin-vue-components": "0.26.0", | ||
"vite": "5.1.6", | ||
"vitepress": "1.0.0-rc.45", | ||
"vitest": "1.3.1", | ||
"vue": "3.4.21", | ||
"typescript": "5.4.5", | ||
"unplugin-vue-components": "0.27.0", | ||
"vite": "5.2.10", | ||
"vitepress": "1.1.4", | ||
"vitepress-translation-helper": "0.2.1", | ||
"vitest": "1.5.3", | ||
"vue": "3.4.26", | ||
"vue-class-component": "8.0.0-rc.1", | ||
"vue-router": "4.3.0", | ||
"vue-tsc": "2.0.6", | ||
"vue-router": "4.3.2", | ||
"vue-tsc": "2.0.16", | ||
"vuex": "4.1.0" | ||
@@ -92,3 +93,2 @@ }, | ||
"homepage": "https://github.com/vuejs/test-utils", | ||
"packageManager": "pnpm@8.15.4", | ||
"scripts": { | ||
@@ -105,4 +105,7 @@ "test": "vitest", | ||
"docs:build": "vitepress build docs", | ||
"docs:translation:compare": "v-translation compare --status-file=docs/.vitepress/translation-status.json --path={docs/index.md,docs/guide,docs/installation,docs/migration}", | ||
"docs:translation:update": "v-translation update --status-file=docs/.vitepress/translation-status.json", | ||
"docs:translation:status": "v-translation status --status-file=docs/.vitepress/translation-status.json", | ||
"vue-tsc": "vue-tsc --noEmit -p tsconfig.volar.json" | ||
} | ||
} |
@@ -27,1 +27,18 @@ # Vue Test Utils | ||
Get started by running `pnpm install`. You can run the tests with `pnpm test`. That's it! | ||
## Contributing Docs | ||
All the documentation files can be found in `packages/docs`. It contains the English markdown files while translation(s) are stored in their corresponding `<lang>` sub-folder(s): | ||
- [`fr`](https://github.com/vuejs/test-utils/tree/main/packages/docs/fr): French translation. | ||
Besides that, the `.vitepress` sub-folder contains the config and theme, including the i18n information. | ||
- `pnpm docs:dev`: Start the docs dev server. | ||
- `pnpm docs:build`: Build the docs. | ||
To add or maintain the translations, we follow the [Vue Ecosystem Translation Guidelines](https://github.com/vuejs-translations/guidelines/blob/main/README_ECOSYSTEM.md). | ||
- `pnpm docs:translation:status [<lang>]`: Show the translation status for your language. If you don't specify a language, it will show the status for all languages. | ||
- `pnpm docs:translation:compare <lang>`: Compare the docs with the latest checkpoint for your language. | ||
- `pnpm docs:translation:update <lang> [<commit>]`: Update the checkpoint for your language. The checkpoint will be set by the latest commit hash. However, you can also specify a commit hash manually. |
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
Sorry, the diff of this file is not supported yet
1512830
41
38241
44
38