Skip to content
Snippets Groups Projects
Commit 08b36521 authored by Lucendio's avatar Lucendio
Browse files

[app/client] Get test (originated from create-react-app) running

parent 147b57d9
No related branches found
No related tags found
No related merge requests found
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
}, },
"scripts": { "scripts": {
"build": "node scripts/build.js", "build": "node scripts/build.js",
"test": "node scripts/test.js" "test": "jest --ci",
"test:dev": "jest"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "react-app" "extends": "react-app"
......
...@@ -2,8 +2,8 @@ import React from 'react'; ...@@ -2,8 +2,8 @@ import React from 'react';
import { render } from '@testing-library/react'; import { render } from '@testing-library/react';
import App from './App'; import App from './App';
test('renders learn react link', () => { test('renders header title', () => {
const { getByText } = render(<App />); const { getByText } = render(<App />);
const linkElement = getByText(/learn react/i); const linkElement = getByText(/ToDo App/i);
expect(linkElement).toBeInTheDocument(); expect(linkElement).toBeInTheDocument();
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment