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
Copy file name to clipboardExpand all lines: __tests__/frameworks/vite/__snapshots__/external.spec.ts.snap
+34-6Lines changed: 34 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,15 @@
1
1
// Vitest Snapshot v1
2
2
3
3
exports[`Vite external > works 1`] =`
4
-
"import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.vue\\");import da_ftl from '/fixtures/ftl/da/components/external.vue.ftl?import';
4
+
"=== /fixtures/components/external.vue ===
5
+
import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.vue\\");import da_ftl from '/fixtures/ftl/da/components/external.vue.ftl?import';
5
6
import en_ftl from '/fixtures/ftl/en/components/external.vue.ftl?import';
6
7
const _sfc_main = {}
7
-
import {toDisplayStringas_toDisplayString, createElementVNodeas_createElementVNode, openBlockas_openBlock, createElementBlockas_createElementBlock} from \\"/@id/vue\\"
import {FluentResource} from '.vite-plugin-externals/@fluent/bundle.js'
67
+
export default new FluentResource(\\"# Simple things are simple.\\\\nhello-user = Hello, {$userName}!\\\\n\\\\n# Complex things are possible.\\\\nshared-photos =\\\\n {$userName}{$photoCount->\\\\n [one] addedonephoto\\\\n*[other] added {$photoCount} newphoto\\\\n }to {$userGender ->\\\\n [male] his stream\\\\n [female] her stream\\\\n *[other] their stream\\\\n }.\\\\n\\")
68
+
"
52
69
`;
53
70
54
71
exports[`Vite external > works with script setup 1`] =`
55
-
"import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.setup.vue\\");import en_ftl from '/fixtures/ftl/en/components/external.setup.vue.ftl?import';
72
+
"=== /fixtures/components/external.setup.vue ===
73
+
import {createHotContextas__vite__createHotContext} from \\"/@vite/client\\";import.meta.hot = __vite__createHotContext(\\"/fixtures/components/external.setup.vue\\");import en_ftl from '/fixtures/ftl/en/components/external.setup.vue.ftl?import';
56
74
const _sfc_main = {
57
75
__name: 'external.setup',
58
76
setup(__props, { expose }) {
@@ -66,7 +84,11 @@ return __returned__
66
84
}
67
85
68
86
}
69
-
import {toDisplayStringas_toDisplayString, createElementVNodeas_createElementVNode, openBlockas_openBlock, createElementBlockas_createElementBlock} from \\"/@id/vue\\"
import {FluentResource} from '.vite-plugin-externals/@fluent/bundle.js'
138
+
export default new FluentResource(\\"# Simple things are simple.\\\\nhello-user = Hello, {$userName}!\\\\n\\\\n# Complex things are possible.\\\\nshared-photos =\\\\n {$userName}{$photoCount->\\\\n [one] addedonephoto\\\\n*[other] added {$photoCount} newphoto\\\\n } to {$userGender ->\\\\n [male] his stream\\\\n [female] her stream\\\\n *[other] their stream\\\\n }.\\\\n\\")
target.fluent['en'] =newFluentResource(\\"# Simple things are simple.\\\\nhello-user = Hello, {$userName}!\\\\n\\\\n# Complex things are possible.\\\\nshared-photos =\\\\n {$userName} {$photoCount ->\\\\n [one] added one photo\\\\n *[other] added {$photoCount} new photos\\\\n } to {$userGender ->\\\\n [male] his stream\\\\n [female] her stream\\\\n *[other] their stream\\\\n }.\\")
0 commit comments