forked from microsoft/BotFramework-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add unit test coverage for adaptive-form (microsoft#3371)
* ignore default schemas * remove unused code * add test for plugin config hook * refactor test-utils exports * convert to typescript project * export react test utils from lib/react * export hooks test utils from lib/hooks * add test coverage for utils * do not throw error if all fields are ordered * fix outdated types for react testing library * add unit test for error message * add unit tests for field label * ignore link in coverage * add unit test for FormRow * add unit tests for schema field * add unit tests for ObjectItem * add snippet for react component test scaffold * add OpenObjectField unit tests * revert not exporting react test utils * add unit tests for OneOfField * add unit tests for StringField * add unit tests for UnsupportedField * add unit tests for BooleanField * remove coverage ignore statement * allow non-null assertion in test * add unit test for NumberField * add unit test for SelectField * add unit tests for ArrayField * add unit test for ArrayFieldItem * render string field with a transparent border * add unit test for IntentField remove recognizerType function, use isSelected instead * add unit test for JsonField * do not include wildcard in ordered properties * add unit test for ObjectArrayField * add unit test for ObjectField * add unit test for RecognizerField * add unit test for RegexIntentField * fix linting error * update hooks imports
- Loading branch information
1 parent
801efa4
commit 35c2d3d
Showing
84 changed files
with
2,079 additions
and
433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
// Place your BotFramework-Composer workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | ||
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | ||
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | ||
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | ||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | ||
// Placeholders with the same ids are connected. | ||
"React component test scaffolding": { | ||
"prefix": "rct", | ||
"body": [ | ||
"import React from 'react';", | ||
"import { render } from '@bfc/test-utils';", | ||
"import assign from 'lodash/assign';\n", | ||
"import { $1 } from '$2';\n", | ||
"const defaultProps = {\n $3\n};\n", | ||
"function renderSubject(overrides = {}) {", | ||
" const props = assign({}, defaultProps, overrides);", | ||
" return render(<$1 {...props} />);", | ||
"}\n", | ||
"describe('<$1 />', () => {", | ||
" it.todo('$0');", | ||
"});\n" | ||
], | ||
"description": "React component test scaffolding" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
Composer/packages/client/__tests__/pages/notifications/useNotifications.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Composer/packages/extensions/adaptive-form/src/components/Link.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.