Skip to content

Commit 9f25562

Browse files
committed
chore: revert rename and update snap
1 parent 3e8186c commit 9f25562

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

jest-transform.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"./*": "./*",
2323
"./jest": {
24-
"require": "./jest-transform.js"
24+
"require": "./jest.js"
2525
},
2626
"./nuxt": {
2727
"require": "./dist/nuxt.js",

test/__snapshots__/transform.test.ts.snap

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ exports[`transform fixtures playground/App.vue 1`] = `
44
"<template>
55
<div>
66
<hello-world name=\\"Vue 2\\" @update=\\"onUpdate\\" />
7+
8+
<async-component />
79
</div>
810
</template>
911
1012
<script lang=\\"ts\\">
13+
import { defineAsyncComponent } from '@vue/composition-api';
1114
import HelloWorld from './HelloWorld.vue';
15+
const AsyncComponent = defineAsyncComponent(() => import('./Async.vue'));
1216
const __sfc_main = {};
1317
1418
__sfc_main.setup = (__props, __ctx) => {
@@ -23,7 +27,8 @@ __sfc_main.setup = (__props, __ctx) => {
2327
};
2428
2529
__sfc_main.components = Object.assign({
26-
HelloWorld
30+
HelloWorld,
31+
AsyncComponent
2732
}, __sfc_main.components);
2833
export default __sfc_main;
2934
</script>

0 commit comments

Comments
 (0)