You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the following HTML in the browser and observe console error message
<html>
<body>
Open the console to observe error message
<script>
// hide warning message in karma test
// see https://github.com/vuejs/vue-test-utils/issues/42
var VueTemplateCompiler = {}
</script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/@vue/[email protected]/dist/vue-test-utils.iife.js"></script>
</body>
</html>
What is expected?
IIFE should load without error
What is actually happening?
This new IIFE fails to load in the browser with "Uncaught ReferenceError: testUtils is not defined at vue-test-utils.iife.js:13932"
Last working IIFE was in 1.0.0-beta.33. Broken by #1518 (Optionally hide deprecation errors) which introduces a new import "testUtils" to packages/shared/utils.js. When this new import gets compiled into node_modules/@vue/test-utils/dist/vue-test-utils.iife.js it changes the IIFE signature from (function (...) {...}({}, Vue, VueTemplateCompiler)); to (function (...) {...}({}, Vue, VueTemplateCompiler, testUtils));.
The text was updated successfully, but these errors were encountered:
Version
1.0.0
Reproduction link
https://jsfiddle.net/chrisvfritz/50wL7mdz/
Steps to reproduce
Open the following HTML in the browser and observe console error message
What is expected?
IIFE should load without error
What is actually happening?
This new IIFE fails to load in the browser with "Uncaught ReferenceError: testUtils is not defined at vue-test-utils.iife.js:13932"
Last working IIFE was in 1.0.0-beta.33. Broken by #1518 (Optionally hide deprecation errors) which introduces a new import "testUtils" to packages/shared/utils.js. When this new import gets compiled into node_modules/@vue/test-utils/dist/vue-test-utils.iife.js it changes the IIFE signature from
(function (...) {...}({}, Vue, VueTemplateCompiler));
to(function (...) {...}({}, Vue, VueTemplateCompiler, testUtils));
.The text was updated successfully, but these errors were encountered: