vue-test-utils-compat
Advanced tools
Comparing version 0.0.9 to 0.0.10
{ | ||
"name": "vue-test-utils-compat", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Compat layer for @vue/test-utils@2.x", | ||
@@ -8,3 +8,3 @@ "main": "dist/vue-test-utils-compat.cjs.js", | ||
"scripts": { | ||
"prebulish": "rollup -c", | ||
"prepare": "rollup -c", | ||
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest" | ||
@@ -11,0 +11,0 @@ }, |
@@ -53,10 +53,7 @@ # vue-test-utils-compat [![npm badge](https://img.shields.io/npm/v/vue-test-utils-compat)](https://npmjs.com/vue-test-utils-compat) | ||
```js | ||
const VueTestUtils = require('vue@/test-utils'); | ||
const { h } = require('vue'); | ||
const { | ||
installCompat as installVTUCompat, | ||
fullCompatConfig | ||
} = require('vue-test-utils-compat'); | ||
const VueTestUtils = require("vue@/test-utils"); | ||
const { h } = require("vue"); | ||
const { installCompat: installVTUCompat, fullCompatConfig } = require("vue-test-utils-compat"); | ||
installVTUCompat(VueTestUtils, fullCompatConfig, h) | ||
installVTUCompat(VueTestUtils, fullCompatConfig, h); | ||
``` | ||
@@ -69,2 +66,4 @@ | ||
const Vue = require("vue"); | ||
const { installCompat: installVTUCompat, fullCompatConfig } = require("vue-test-utils-compat"); | ||
let compatH; | ||
@@ -320,3 +319,3 @@ Vue.createApp({ | ||
import { h } from 'vue'; | ||
import { installCompat, fullCompatConfig } from `@vue/test-utils/compat` | ||
import { installCompat, fullCompatConfig } from 'vue-test-utils-compat' | ||
@@ -323,0 +322,0 @@ const PatchedVTU = { ...VueTestUtils }; |
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
118437
42
2765
323