Skip to content

Commit 431bc9b

Browse files
authored
fix(create-rstack): auto unmount Vue wrappers in templates (#272)
1 parent 0402918 commit 431bc9b

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)