Skip to content

Commit 2a60951

Browse files
committed
test: typescript import outside of root #18
1 parent ee772f1 commit 2a60951

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

example/above/src/App.test.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ test('renders component from near src', () => {
1414
expect(nearElement).toBeInTheDocument();
1515
});
1616

17-
test('renders component from above root', () => {
17+
test('renders JS component from above root', () => {
1818
render(<App />);
1919
const aboveElement = screen.getByText(/Above root js/i);
2020
expect(aboveElement).toBeInTheDocument();
2121
});
22+
23+
test('renders TS component from above root', () => {
24+
render(<App />);
25+
const aboveElement = screen.getByText(/Above root ts/i);
26+
expect(aboveElement).toBeInTheDocument();
27+
});

0 commit comments

Comments
 (0)