Skip to content

Commit

Permalink
test: update tests for other themes
Browse files Browse the repository at this point in the history
  • Loading branch information
jacqueswho committed Dec 21, 2022
1 parent cea18c8 commit be05138
Show file tree
Hide file tree
Showing 35 changed files with 12,858 additions and 3,559 deletions.
1 change: 0 additions & 1 deletion package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"build-serial": "lerna run --concurrency 1 --stream build",
"start": "lerna run start --stream --parallel",
"pre-commit:husky": "lerna run --concurrency 1 --stream precommit",
"prepare": "husky install"
"prepare": "husky install",
"clean:modules": "rimraf node_modules && rimraf packages/*/node_modules",
"r": "node ./scripts/run.js"
},
"license": "Apache-2.0",
"homepage": "https://github.com/rjsf-team/react-jsonschema-form",
Expand Down
168 changes: 166 additions & 2 deletions packages/antd/package-lock.json

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

2 changes: 1 addition & 1 deletion packages/antd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@babel/register": "^7.18.9",
"@rjsf/core": "^5.0.0-beta.14",
"@rjsf/utils": "^5.0.0-beta.14",
"@rjsf/validator-ajv8": "^5.0.0-beta.14",
"@rjsf/validator-ajv8": "*",
"@rollup/plugin-replace": "^5.0.1",
"@types/lodash": "^4.14.186",
"@types/react": "^17.0.39",
Expand Down
3 changes: 2 additions & 1 deletion packages/antd/test/Form.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,10 @@ describe("single fields", () => {
.toJSON();
expect(tree).toMatchSnapshot();
});
test("checkbox field", () => {
test("checkbox field with label", () => {
const schema: RJSFSchema = {
type: "boolean",
title: "test",
};
const tree = renderer
.create(<Form schema={schema} validator={validator} />)
Expand Down
4 changes: 2 additions & 2 deletions packages/antd/test/__snapshots__/Form.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports[`single fields checkbox field 1`] = `
</form>
`;

exports[`single fields checkbox field 2`] = `
exports[`single fields checkbox field with label 1`] = `
<form
className="rjsf"
noValidate={false}
Expand Down Expand Up @@ -89,7 +89,7 @@ exports[`single fields checkbox field 2`] = `
/>
</span>
<span>
test
</span>
</label>
</div>
Expand Down

0 comments on commit be05138

Please sign in to comment.