setup a web app

This commit is contained in:
2019-08-02 21:45:01 +03:00
parent c0836e005f
commit 27a6887d92
13 changed files with 10484 additions and 0 deletions

11
App/src/App.test.tsx Normal file
View File

@@ -0,0 +1,11 @@
import { shallow } from "enzyme";
import * as React from "react";
import { App } from "~App";
describe("<DocumentsList />", () => {
it("should say hello", () => {
const wrapper = shallow(<App />);
expect(wrapper.text()).toEqual("Hello");
});
});

7
App/src/App.tsx Normal file
View File

@@ -0,0 +1,7 @@
import * as React from "react";
export function AppComponent() {
return <div>Hello</div>;
}
export const App = AppComponent;

15
App/src/index.html Normal file
View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Writer</title>
</head>
<body>
<div id="body">
</div>
<script src="./index.tsx"></script>
</body>
</html>

7
App/src/index.tsx Normal file
View File

@@ -0,0 +1,7 @@
import "normalize.css/normalize.css";
import * as React from "react";
import { render } from "react-dom";
import { App } from "~App";
render(<App />, document.getElementById("body"));

4
App/src/setupTests.ts Normal file
View File

@@ -0,0 +1,4 @@
import * as Enzyme from "enzyme";
import * as Adapter from "enzyme-adapter-react-16";
Enzyme.configure({ adapter: new Adapter() });

1
App/src/styleMock.ts Normal file
View File

@@ -0,0 +1 @@
module.exports = {};