Skip to content

Commit dc3be1a

Browse files
committed
fix(create-rstack): auto unmount Vue wrappers in templates
1 parent 0402918 commit dc3be1a

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { expect } from 'rstack/test';
1+
import { afterEach, expect } from 'rstack/test';
22
import * as jestDomMatchers from '@testing-library/jest-dom/matchers';
3+
import { enableAutoUnmount } from '@vue/test-utils';
34

45
expect.extend(jestDomMatchers);
6+
enableAutoUnmount(afterEach);
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { expect } from 'rstack/test';
1+
import { afterEach, expect } from 'rstack/test';
22
import * as jestDomMatchers from '@testing-library/jest-dom/matchers';
3+
import { enableAutoUnmount } from '@vue/test-utils';
34

45
expect.extend(jestDomMatchers);
6+
enableAutoUnmount(afterEach);
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { expect } from 'rstack/test';
1+
import { afterEach, expect } from 'rstack/test';
22
import * as jestDomMatchers from '@testing-library/jest-dom/matchers';
3+
import { enableAutoUnmount } from '@vue/test-utils';
34

45
expect.extend(jestDomMatchers);
6+
enableAutoUnmount(afterEach);
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { expect } from 'rstack/test';
1+
import { afterEach, expect } from 'rstack/test';
22
import * as jestDomMatchers from '@testing-library/jest-dom/matchers';
3+
import { enableAutoUnmount } from '@vue/test-utils';
34

45
expect.extend(jestDomMatchers);
6+
enableAutoUnmount(afterEach);

0 commit comments

Comments
 (0)