We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f342946 commit b130d6fCopy full SHA for b130d6f
packages/testing/src/testing.ts
@@ -93,12 +93,13 @@ export function createTestingPinia({
93
94
setActivePinia(pinia)
95
96
- return Object.assign(
97
- {
98
- get app(): App {
99
- return (this as TestingPinia)._a
100
- },
+ Object.defineProperty(pinia, 'app', {
+ configurable: true,
+ enumerable: true,
+ get(): App {
+ return this._a
101
},
102
- pinia
103
- )
+ })
+
104
+ return pinia as TestingPinia
105
}
0 commit comments