Skip to content

Commit

Permalink
コンポーネントテストを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
pachikuriii committed May 4, 2023
1 parent 891b249 commit d0d2ae9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
14 changes: 3 additions & 11 deletions cypress/component/Button.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import { RecoilRoot } from 'recoil';
import Button from 'src/components/atoms/button';
import Q1 from 'src/components/organisms/question/q1';
describe('test', () => {
it('uses custom text for the button label', () => {
cy.mount(
<RecoilRoot>
<Q1></Q1>
</RecoilRoot>,
);
});
import Card from 'src/components/atoms/card';
it('NextLink can be rendered', () => {
cy.mount(<Card>テスト</Card>);
});
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"autoprefixer": "^10.4.13",
"cypress": "^12.5.1",
"eslint-config-prettier": "^8.6.0",
"next-router-mock": "^0.9.3",
"postcss": "^8.4.21",
"prettier": "^2.8.2",
"tailwindcss": "^3.2.4"
Expand Down

0 comments on commit d0d2ae9

Please sign in to comment.