Skip to content

Commit 325e3ba

Browse files
committed
test: suppress warning about expose
1 parent ec54f6e commit 325e3ba

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/nuxt/a11y.spec.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ const allowedWarnings: RegExp[] = [
5858
// vue-i18n logs this when <i18n-t> is used outside a component-scoped i18n;
5959
// it falls back to the global scope and still renders correctly.
6060
/\[intlify\] Not found parent scope/,
61+
// mountSuspended wraps each component instance and calls expose() after
62+
// setup. For recursive components (e.g. DiffFileTree rendering child
63+
// DiffFileTree instances), this triggers a duplicate expose() call on the
64+
// inner wrapper. The warning does not affect test correctness.
65+
/expose\(\) should be called only once/,
6166
]
6267

6368
beforeEach(() => {

0 commit comments

Comments
 (0)