Skip to content

Commit dd5767a

Browse files
committed
refactor: app config in test
The test does not need to declare a full configuration. This will break compilation with Vue v3.1 as a new `compilerOptions` has been added to `AppConfig`. Refactoring the config to be a partial one is more accurate and awill allow us to upgrade to v3.1 when it's out.
1 parent 1a4e547 commit dd5767a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/features/async-components.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
import { defineAsyncComponent, defineComponent, h, AppConfig } from 'vue'
22
import { mount, flushPromises } from '../../src'
33

4-
const config: AppConfig = {
5-
optionMergeStrategies: {},
6-
globalProperties: {},
7-
isCustomElement: (tag: string) => false,
8-
performance: false,
4+
const config: Partial<AppConfig> = {
95
errorHandler: (error: unknown) => {
106
if ((error as Error).message.match(/Async component failed to load./)) {
117
return

0 commit comments

Comments
 (0)