From 05b6b72104206468b50743026981e9d3c4974c61 Mon Sep 17 00:00:00 2001 From: Ivan Dolgov Date: Sat, 22 Sep 2018 00:55:11 +0300 Subject: Configure initial setup --- src/Root.js | 9 +++++++++ src/Root.test.js | 13 +++++++++++++ src/index.html | 17 +++++++++++++++++ src/index.js | 6 ++++++ 4 files changed, 45 insertions(+) create mode 100644 src/Root.js create mode 100644 src/Root.test.js create mode 100644 src/index.html create mode 100644 src/index.js (limited to 'src') diff --git a/src/Root.js b/src/Root.js new file mode 100644 index 0000000..95fb168 --- /dev/null +++ b/src/Root.js @@ -0,0 +1,9 @@ +import React from 'react'; + +const Root = () => ( +
+

Hello, world!

+
+); + +export default Root; diff --git a/src/Root.test.js b/src/Root.test.js new file mode 100644 index 0000000..7f785a2 --- /dev/null +++ b/src/Root.test.js @@ -0,0 +1,13 @@ +import React from 'react'; +import { render } from 'react-testing-library'; +import 'jest-dom/extend-expect'; + +import Root from './Root'; + +describe('Root', () => { + test('greeting is shown', () => { + const { container } = render(); + + expect(container).toHaveTextContent('Hello, world!'); + }); +}); diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..6d3f1dd --- /dev/null +++ b/src/index.html @@ -0,0 +1,17 @@ + + + + + + Ick CI + + + +
+ + + diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..9fada02 --- /dev/null +++ b/src/index.js @@ -0,0 +1,6 @@ +import React from 'react'; +import { render } from 'react-dom'; + +import Root from './Root'; + +render(, document.getElementById('root')); -- cgit v1.2.1