Skip to content

Commit

Permalink
🐛 lint, tsconfig 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh031224 committed Sep 5, 2021
1 parent e8ad147 commit f65c1ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/__test/index.test.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import React from "react";
// import React from "react";
// testing
import IndexPage from "../pages/index";
import { render } from "@testing-library/react";
// import IndexPage from "../pages/index";
// import { render } from "@testing-library/react";

describe("<IndexPage>", () => {
it("Hello문구가 보인다.", async () => {
const { findByText } = render(<IndexPage />);

findByText("Hello");
// const { findByText } = render(<IndexPage />);
// findByText("Hello");
// Sample
});
});
2 changes: 1 addition & 1 deletion src/hooks/main/useKeywords.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const useKeywords = () => {
keywords.map((v) => (v.name === keyword.name ? newValue : v))
);
},
[keywords, selectedKeywords]
[keywords, selectedKeywords, setKeywords]
);

return { keywords, handleOnClick };
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"strict": true,
"target": "esnext"
},
"exclude": ["node_modules"],
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"],
"include": ["**/*.ts", "**/*.tsx"]
}

0 comments on commit f65c1ed

Please sign in to comment.