From 7f2287cf71d0f40f0a53d3e4e3d60604a9b26f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20P=C3=A9rez?= Date: Thu, 15 Sep 2022 02:32:54 +0200 Subject: [PATCH] feat: support diff --git a/e2e/2.x/basic/package.json b/e2e/2.x/basic/package.json index a657c3ec..152b804c 100644 --- a/e2e/2.x/basic/package.json +++ b/e2e/2.x/basic/package.json @@ -7,8 +7,8 @@ "test": "jest --no-cache --coverage test.js" }, "dependencies": { - "vue": "^2.5.21", - "vue-template-compiler": "^2.5.21" + "vue": "^2.7.7", + "vue-template-compiler": "^2.7.7" }, "devDependencies": { "@babel/core": "^7.9.0", diff --git a/e2e/2.x/basic/test.js b/e2e/2.x/basic/test.js index c81e3292..7ec85043 100644 --- a/e2e/2.x/basic/test.js +++ b/e2e/2.x/basic/test.js @@ -20,6 +20,7 @@ import PugRelative from './components/PugRelativeExtends.vue' import Jsx from './components/Jsx.vue' import Constructor from './components/Constructor.vue' import { compileStyle } from '@vue/component-compiler-utils' +import ScriptSetup from './components/ScriptSetup' jest.mock('@vue/component-compiler-utils', () => ({ ...jest.requireActual('@vue/component-compiler-utils'), compileStyle: jest.fn(() => ({ errors: [], code: '' })) @@ -156,6 +157,12 @@ test('processes SFC with no template', () => { expect(wrapper.element.tagName).toBe('SECTION') }) +test('processes SFC with