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 fdf7b08 commit 51ca9a5Copy full SHA for 51ca9a5
src/App.test.tsx
@@ -1,9 +1,15 @@
1
import React from 'react';
2
import { render, screen } from '@testing-library/react';
3
import App from './App';
4
+import en from './i18n/en.json5';
5
6
test('renders learn react link', () => {
7
render(<App />);
- const linkElement = screen.getByText(/learn react/i);
8
+ const linkElement = screen.getByText(/My cool application/i);
9
expect(linkElement).toBeInTheDocument();
10
});
11
+
12
13
+test('json5 file is loaded', () => {
14
+ expect(en).toEqual({'APP.TITLE': 'My cool application'});
15
+});
0 commit comments