})
})
- test('config.globalProperty', () => {
+ test.todo('config.globalProperty', () => {
const { app } = define({
setup() {
return []
app.config.globalProperties.msg = 'hello world'
} catch (e) {}
expect(
- `app.config.globalProperties is not supported in vapor mode`,
+ `app.config.globalProperties is not supported in vapor mode components`,
).toHaveBeenWarned()
})
})
}
function postPrepareApp(app: App) {
- if (__DEV__) {
- app.config.globalProperties = new Proxy(
- {},
- {
- set() {
- warn(`app.config.globalProperties is not supported in vapor mode.`)
- return false
- },
- },
- )
- }
-
app.vapor = true
const mount = app.mount
app.mount = (container, ...args: any[]) => {