├── .gitignore
├── README.md
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
├── src
├── APIComponent.test.tsx
├── APIComponent.tsx
├── App.css
├── App.test.tsx
├── App.tsx
├── ButtonWrapper.test.tsx
├── ButtonWrapper.tsx
├── Counter.test.tsx
├── Counter.tsx
├── Person.test.tsx
├── Person.tsx
├── ReduxCounter.test.tsx
├── ReduxCounter.tsx
├── SideBar.test.tsx
├── SideBar.tsx
├── ZustandCounter.test.tsx
├── ZustandCounter.tsx
├── index.css
├── index.tsx
├── logo.svg
├── react-app-env.d.ts
├── reportWebVitals.ts
├── setupTests.ts
├── store.ts
├── useAPI.test.ts
├── useAPI.ts
├── useCounter.test.ts
├── useCounter.ts
└── zustandStore.ts
├── tsconfig.json
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `yarn start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `yarn test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `yarn build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `yarn eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37 |
38 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39 |
40 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ts-react-testing",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@reduxjs/toolkit": "^1.6.1",
7 | "@testing-library/jest-dom": "^5.11.4",
8 | "@testing-library/react": "^11.1.0",
9 | "@testing-library/user-event": "^12.1.10",
10 | "@types/jest": "^26.0.15",
11 | "@types/node": "^12.0.0",
12 | "@types/react": "^17.0.0",
13 | "@types/react-dom": "^17.0.0",
14 | "msw": "^0.35.0",
15 | "react": "^17.0.2",
16 | "react-dom": "^17.0.2",
17 | "react-redux": "^7.2.5",
18 | "react-scripts": "4.0.3",
19 | "redux": "^4.1.1",
20 | "typescript": "^4.1.2",
21 | "web-vitals": "^1.0.1",
22 | "zustand": "^3.5.10"
23 | },
24 | "scripts": {
25 | "start": "react-scripts start",
26 | "build": "react-scripts build",
27 | "test": "react-scripts test",
28 | "eject": "react-scripts eject"
29 | },
30 | "eslintConfig": {
31 | "extends": [
32 | "react-app",
33 | "react-app/jest"
34 | ]
35 | },
36 | "browserslist": {
37 | "production": [
38 | ">0.2%",
39 | "not dead",
40 | "not op_mini all"
41 | ],
42 | "development": [
43 | "last 1 chrome version",
44 | "last 1 firefox version",
45 | "last 1 safari version"
46 | ]
47 | },
48 | "devDependencies": {
49 | "@testing-library/react-hooks": "^7.0.2"
50 | }
51 | }
52 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jherr/ts-react-testing/626b608832c9dd6988a2de3283f40170c70d2774/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | React App
28 |
29 |
30 | You need to enable JavaScript to run this app.
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jherr/ts-react-testing/626b608832c9dd6988a2de3283f40170c70d2774/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jherr/ts-react-testing/626b608832c9dd6988a2de3283f40170c70d2774/public/logo512.png
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/APIComponent.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { rest } from "msw";
3 | import { setupServer } from "msw/node";
4 | import { render, screen, waitFor } from "@testing-library/react";
5 | import { APIComponent } from "./APIComponent";
6 |
7 | const server = setupServer(
8 | rest.get("/api", (req, res, ctx) => {
9 | return res(ctx.json({ name: "Jack" }));
10 | })
11 | );
12 |
13 | beforeAll(() => server.listen());
14 | afterEach(() => server.resetHandlers());
15 | afterAll(() => server.close());
16 |
17 | test("gets the data", async () => {
18 | render( );
19 |
20 | const out = await waitFor(() => screen.getByRole("contentinfo"));
21 |
22 | expect(out).toHaveTextContent("Name is Jack");
23 | });
24 |
--------------------------------------------------------------------------------
/src/APIComponent.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState, useEffect } from "react";
2 |
3 | export const APIComponent: React.FunctionComponent = () => {
4 | const [data, setData] = useState<{
5 | name: string;
6 | }>();
7 |
8 | useEffect(() => {
9 | let isMounted = true;
10 | fetch("/api")
11 | .then((response) => response.json())
12 | .then((data) => {
13 | if (isMounted) {
14 | setData(data);
15 | }
16 | });
17 | return () => {
18 | isMounted = false;
19 | };
20 | }, []);
21 |
22 | return {data &&
Name is {data.name}
}
;
23 | };
24 |
--------------------------------------------------------------------------------
/src/App.css:
--------------------------------------------------------------------------------
1 | .App {
2 | text-align: center;
3 | }
4 |
5 | .App-logo {
6 | height: 40vmin;
7 | pointer-events: none;
8 | }
9 |
10 | @media (prefers-reduced-motion: no-preference) {
11 | .App-logo {
12 | animation: App-logo-spin infinite 20s linear;
13 | }
14 | }
15 |
16 | .App-header {
17 | background-color: #282c34;
18 | min-height: 100vh;
19 | display: flex;
20 | flex-direction: column;
21 | align-items: center;
22 | justify-content: center;
23 | font-size: calc(10px + 2vmin);
24 | color: white;
25 | }
26 |
27 | .App-link {
28 | color: #61dafb;
29 | }
30 |
31 | @keyframes App-logo-spin {
32 | from {
33 | transform: rotate(0deg);
34 | }
35 | to {
36 | transform: rotate(360deg);
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/src/App.test.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render, screen } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | render( );
7 | const linkElement = screen.getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/src/App.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import logo from './logo.svg';
3 | import './App.css';
4 |
5 | function App() {
6 | return (
7 |
23 | );
24 | }
25 |
26 | export default App;
27 |
--------------------------------------------------------------------------------
/src/ButtonWrapper.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render, screen, fireEvent } from "@testing-library/react";
3 | import { ButtonWrapper } from "./ButtonWrapper";
4 |
5 | test("handles onClick", () => {
6 | const onClick = jest.fn();
7 | render( );
8 | const buttonElement = screen.getByText("Add Item");
9 | fireEvent.click(buttonElement);
10 | expect(onClick).toHaveBeenCalledTimes(1);
11 | });
12 |
--------------------------------------------------------------------------------
/src/ButtonWrapper.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export const ButtonWrapper: React.FunctionComponent<
4 | React.DetailedHTMLProps<
5 | React.ButtonHTMLAttributes,
6 | HTMLButtonElement
7 | > & {
8 | title: string;
9 | }
10 | > = ({ title, ...props }) => {title} ;
11 |
--------------------------------------------------------------------------------
/src/Counter.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render, screen, fireEvent } from "@testing-library/react";
3 | import { Counter } from "./Counter";
4 |
5 | test("handles onClick", () => {
6 | render( );
7 |
8 | const divElement = screen.getByRole("contentinfo");
9 | const buttonElement = screen.getByText("Add One");
10 | fireEvent.click(buttonElement);
11 |
12 | expect(divElement).toHaveTextContent("Count is 1");
13 | });
14 |
--------------------------------------------------------------------------------
/src/Counter.tsx:
--------------------------------------------------------------------------------
1 | import React, { useState } from "react";
2 |
3 | export const Counter: React.FunctionComponent = () => {
4 | const [count, setCount] = useState(0);
5 |
6 | return (
7 |
8 |
setCount(count + 1)}>Add One
9 |
Count is {count}
10 |
11 | );
12 | };
13 |
--------------------------------------------------------------------------------
/src/Person.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render, screen } from "@testing-library/react";
3 | import { Person } from "./Person";
4 |
5 | test("renders a name", () => {
6 | render( );
7 | const divElement = screen.getByRole("contentinfo");
8 | expect(divElement).toHaveTextContent("Name is Jack");
9 | expect(divElement).toHaveAttribute("role", "contentinfo");
10 | });
11 |
--------------------------------------------------------------------------------
/src/Person.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export const Person = ({ name }: { name: string }) => (
4 | Name is {name}
5 | );
6 |
--------------------------------------------------------------------------------
/src/ReduxCounter.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render, screen, fireEvent } from "@testing-library/react";
3 | import { Provider } from "react-redux";
4 |
5 | import { ReduxCounter } from "./ReduxCounter";
6 | import { createStore } from "./store";
7 |
8 | test("increment", () => {
9 | render(
10 |
11 |
12 |
13 | );
14 |
15 | const counter = screen.getByRole("contentinfo");
16 | expect(counter).toHaveTextContent("0");
17 |
18 | const addButton = screen.getByText(/Increment/i);
19 | fireEvent.click(addButton);
20 |
21 | expect(counter).toHaveTextContent("1");
22 | });
23 |
24 | test("increment again", () => {
25 | render(
26 |
27 |
28 |
29 | );
30 |
31 | const counter = screen.getByRole("contentinfo");
32 | expect(counter).toHaveTextContent("0");
33 |
34 | const addButton = screen.getByText(/Increment/i);
35 | fireEvent.click(addButton);
36 |
37 | expect(counter).toHaveTextContent("1");
38 | });
39 |
--------------------------------------------------------------------------------
/src/ReduxCounter.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { useSelector, useDispatch } from "react-redux";
3 | import { RootState, decrement, increment } from "./store";
4 |
5 | export function ReduxCounter() {
6 | const count = useSelector((state: RootState) => state.counter.value);
7 | const dispatch = useDispatch();
8 |
9 | return (
10 |
11 |
12 | dispatch(increment())}
15 | >
16 | Increment
17 |
18 | {count}
19 | dispatch(decrement())}
22 | >
23 | Decrement
24 |
25 |
26 |
27 | );
28 | }
29 |
--------------------------------------------------------------------------------
/src/SideBar.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render, screen } from "@testing-library/react";
3 | import { SideBar } from "./SideBar";
4 |
5 | test("renders a name", () => {
6 | const items = [
7 | {
8 | name: "test",
9 | href: "/test",
10 | },
11 | ];
12 | render( );
13 | const anchorElements = screen.getAllByRole("navigation");
14 | expect(anchorElements[0]).toHaveTextContent(items[0].name);
15 | expect(anchorElements[0]).toHaveAttribute("href", items[0].href);
16 | });
17 |
--------------------------------------------------------------------------------
/src/SideBar.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export const SideBar = ({
4 | items,
5 | }: {
6 | items: {
7 | name: string;
8 | href: string;
9 | }[];
10 | }) => (
11 |
12 | {items.map((item) => (
13 |
18 | ))}
19 |
20 | );
21 |
--------------------------------------------------------------------------------
/src/ZustandCounter.test.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { render, screen, fireEvent } from "@testing-library/react";
3 | import { ZustandCounter } from "./ZustandCounter";
4 | import { useStore } from "./zustandStore";
5 |
6 | const originalState = useStore.getState();
7 | beforeEach(() => {
8 | useStore.setState(originalState);
9 | });
10 |
11 | test("add one", () => {
12 | render( );
13 |
14 | const counter = screen.getByRole("contentinfo");
15 | expect(counter).toHaveTextContent("0");
16 |
17 | const addButton = screen.getByText(/Increment/i);
18 | fireEvent.click(addButton);
19 |
20 | expect(counter).toHaveTextContent("1");
21 | });
22 |
23 | test("add one again", () => {
24 | render( );
25 |
26 | const counter = screen.getByRole("contentinfo");
27 | expect(counter).toHaveTextContent("0");
28 |
29 | const addButton = screen.getByText(/Increment/i);
30 | fireEvent.click(addButton);
31 |
32 | expect(counter).toHaveTextContent("1");
33 | });
34 |
--------------------------------------------------------------------------------
/src/ZustandCounter.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { useStore } from "./zustandStore";
3 |
4 | export function ZustandCounter() {
5 | const { count, increment } = useStore();
6 |
7 | return (
8 |
9 |
10 |
11 | Increment
12 |
13 | {count}
14 |
15 |
16 | );
17 | }
18 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5 | sans-serif;
6 | -webkit-font-smoothing: antialiased;
7 | -moz-osx-font-smoothing: grayscale;
8 | }
9 |
10 | code {
11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12 | monospace;
13 | }
14 |
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import './index.css';
4 | import App from './App';
5 | import reportWebVitals from './reportWebVitals';
6 |
7 | ReactDOM.render(
8 |
9 |
10 | ,
11 | document.getElementById('root')
12 | );
13 |
14 | // If you want to start measuring performance in your app, pass a function
15 | // to log results (for example: reportWebVitals(console.log))
16 | // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17 | reportWebVitals();
18 |
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/src/reportWebVitals.ts:
--------------------------------------------------------------------------------
1 | import { ReportHandler } from 'web-vitals';
2 |
3 | const reportWebVitals = (onPerfEntry?: ReportHandler) => {
4 | if (onPerfEntry && onPerfEntry instanceof Function) {
5 | import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
6 | getCLS(onPerfEntry);
7 | getFID(onPerfEntry);
8 | getFCP(onPerfEntry);
9 | getLCP(onPerfEntry);
10 | getTTFB(onPerfEntry);
11 | });
12 | }
13 | };
14 |
15 | export default reportWebVitals;
16 |
--------------------------------------------------------------------------------
/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom';
6 |
--------------------------------------------------------------------------------
/src/store.ts:
--------------------------------------------------------------------------------
1 | import { configureStore, createSlice, PayloadAction } from "@reduxjs/toolkit";
2 |
3 | export interface CounterState {
4 | value: number;
5 | }
6 |
7 | const initialState: CounterState = {
8 | value: 0,
9 | };
10 |
11 | export const counterSlice = createSlice({
12 | name: "counter",
13 | initialState,
14 | reducers: {
15 | increment: (state) => {
16 | state.value += 1;
17 | },
18 | decrement: (state) => {
19 | state.value -= 1;
20 | },
21 | incrementByAmount: (state, action: PayloadAction) => {
22 | state.value += action.payload;
23 | },
24 | },
25 | });
26 |
27 | // Action creators are generated for each case reducer function
28 | export const { increment, decrement, incrementByAmount } = counterSlice.actions;
29 |
30 | export const createStore = () =>
31 | configureStore({
32 | reducer: {
33 | counter: counterSlice.reducer,
34 | },
35 | });
36 | export const store = createStore();
37 |
38 | // Infer the `RootState` and `AppDispatch` types from the store itself
39 | export type RootState = ReturnType;
40 | // Inferred type: {posts: PostsState, comments: CommentsState, users: UsersState}
41 | export type AppDispatch = typeof store.dispatch;
42 |
--------------------------------------------------------------------------------
/src/useAPI.test.ts:
--------------------------------------------------------------------------------
1 | import { renderHook, act } from "@testing-library/react-hooks";
2 | import { rest } from "msw";
3 | import { setupServer } from "msw/node";
4 |
5 | import { useAPI } from "./useAPI";
6 |
7 | const server = setupServer(
8 | rest.get("/api", (req, res, ctx) => {
9 | return res(ctx.json({ name: "Jack" }));
10 | })
11 | );
12 |
13 | beforeAll(() => server.listen());
14 | afterEach(() => server.resetHandlers());
15 | afterAll(() => server.close());
16 |
17 | test("should increment", async () => {
18 | const { result, waitForNextUpdate } = renderHook(() => useAPI());
19 |
20 | await waitForNextUpdate();
21 |
22 | expect(result.current).toEqual({ name: "Jack" });
23 | });
24 |
--------------------------------------------------------------------------------
/src/useAPI.ts:
--------------------------------------------------------------------------------
1 | import { useState, useEffect } from "react";
2 |
3 | export function useAPI() {
4 | const [data, setData] = useState<{
5 | name: string;
6 | }>();
7 |
8 | useEffect(() => {
9 | let isMounted = true;
10 | fetch("/api")
11 | .then((response) => response.json())
12 | .then((data) => {
13 | if (isMounted) {
14 | setData(data);
15 | }
16 | });
17 | return () => {
18 | isMounted = false;
19 | };
20 | }, []);
21 |
22 | return data;
23 | }
24 |
--------------------------------------------------------------------------------
/src/useCounter.test.ts:
--------------------------------------------------------------------------------
1 | import { renderHook, act } from "@testing-library/react-hooks";
2 | import { useCounter } from "./useCounter";
3 |
4 | test("should increment", () => {
5 | const { result } = renderHook(() => useCounter());
6 |
7 | act(() => {
8 | result.current.increment();
9 | });
10 |
11 | expect(result.current.count).toBe(1);
12 | });
13 |
--------------------------------------------------------------------------------
/src/useCounter.ts:
--------------------------------------------------------------------------------
1 | import { useState, useCallback } from "react";
2 |
3 | export function useCounter() {
4 | const [count, setCount] = useState(0);
5 |
6 | const increment = useCallback(() => setCount((x) => x + 1), []);
7 |
8 | return { count, increment };
9 | }
10 |
--------------------------------------------------------------------------------
/src/zustandStore.ts:
--------------------------------------------------------------------------------
1 | import create from "zustand";
2 |
3 | export const useStore = create<{
4 | count: number;
5 | increment: () => void;
6 | }>((set) => ({
7 | count: 0,
8 | increment: () => set((state) => ({ count: state.count + 1 })),
9 | }));
10 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": [
5 | "dom",
6 | "dom.iterable",
7 | "esnext"
8 | ],
9 | "allowJs": true,
10 | "skipLibCheck": true,
11 | "esModuleInterop": true,
12 | "allowSyntheticDefaultImports": true,
13 | "strict": true,
14 | "forceConsistentCasingInFileNames": true,
15 | "noFallthroughCasesInSwitch": true,
16 | "module": "esnext",
17 | "moduleResolution": "node",
18 | "resolveJsonModule": true,
19 | "isolatedModules": true,
20 | "noEmit": true,
21 | "jsx": "react-jsx"
22 | },
23 | "include": [
24 | "src"
25 | ]
26 | }
27 |
--------------------------------------------------------------------------------