mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
setup a web app
This commit is contained in:
11
App/src/App.test.tsx
Normal file
11
App/src/App.test.tsx
Normal 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
7
App/src/App.tsx
Normal 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
15
App/src/index.html
Normal 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
7
App/src/index.tsx
Normal 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
4
App/src/setupTests.ts
Normal 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
1
App/src/styleMock.ts
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = {};
|
||||
Reference in New Issue
Block a user