Skip to content

Commit b43d913

Browse files
committed
fix: Radio.tsx assigned incorrect value
test: Add tests to all components
1 parent 01e584e commit b43d913

16 files changed

+1154
-34
lines changed

README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
2-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/jt501/formik-semantic-ui-react/Release?label=Release&logo=github&style=flat-square)
3-
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/jt501/formik-semantic-ui-react/CI?logo=github&style=flat-square)
4-
![npm](https://img.shields.io/npm/dw/formik-semantic-ui-react?color=orange&logo=npm&style=flat-square)
5-
![GitHub Repo stars](https://img.shields.io/github/stars/jt501/formik-semantic-ui-react?color=yellow&logo=github&style=flat-square)
6-
![GitHub](https://img.shields.io/github/license/jt501/formik-semantic-ui-react?color=red&style=flat-square)
1+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/jt501/formik-semantic-ui-react/Release?label=Release&logo=github&style=flat-square)](https://github.com/JT501/formik-semantic-ui-react/actions)
2+
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/jt501/formik-semantic-ui-react/CI?logo=github&style=flat-square)](https://github.com/JT501/formik-semantic-ui-react/actions)
3+
[![npm](https://img.shields.io/npm/dw/formik-semantic-ui-react?color=orange&logo=npm&style=flat-square)](https://www.npmjs.com/package/formik-semantic-ui-react)
4+
[![GitHub Repo stars](https://img.shields.io/github/stars/jt501/formik-semantic-ui-react?color=yellow&logo=github&style=flat-square)](/)
5+
[![GitHub](https://img.shields.io/github/license/jt501/formik-semantic-ui-react?color=red&style=flat-square)](./LICENSE)
76

87
# formik-semantic-ui-react
98

@@ -42,7 +41,7 @@ export const LoginForm = (props: any) => {
4241
});
4342

4443
return (
45-
<Div className={props.className}>
44+
<div>
4645
<Formik
4746
initialValues={initialValues}
4847
validationSchema={validationSchema}
@@ -56,6 +55,7 @@ export const LoginForm = (props: any) => {
5655
placeholder="Email"
5756
focus
5857
fluid
58+
errorPrompt
5959
/>
6060
<Input
6161
name="password"
@@ -66,13 +66,14 @@ export const LoginForm = (props: any) => {
6666
autoComplete="on"
6767
focus
6868
fluid
69+
errorPrompt
6970
/>
7071
<SubmitButton fluid primary>
7172
Login
7273
</SubmitButton>
7374
</Form>
7475
</Formik>
75-
</Div>
76+
</div>
7677
);
7778
};
7879
```

jest.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const { createJestConfig } = require('tsdx/dist/createJestConfig');
2+
const { paths } = require('tsdx/dist/constants');
3+
4+
process.env.BABEL_ENV = 'test';
5+
process.env.NODE_ENV = 'test';
6+
7+
const defaultConfig = createJestConfig(undefined, paths.appRoot);
8+
9+
module.exports = {
10+
...defaultConfig,
11+
setupFilesAfterEnv: ['./test/setupTests.ts'],
12+
testEnvironment: 'jest-environment-jsdom-sixteen',
13+
};

0 commit comments

Comments
 (0)