-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get tests up to ~20% #252
Get tests up to ~20% #252
Conversation
f4209b0
to
87e049b
Compare
54df52c
to
e601825
Compare
e601825
to
8873289
Compare
acda923
to
0b8f9e7
Compare
Wrong prompt prop was also optional - caused rendering issues without it.
Also removed unnecessary class now that it's removed from DOM when isHidden is used.
@@ -17,14 +17,15 @@ module.exports = { | |||
'!<rootDir>/packages/**/index.js', | |||
'!<rootDir>/packages/**/*{c|C}ontext*.js', | |||
'!<rootDir>/packages/components/src/Components/Table/*', | |||
'<rootDir>/packages/**/src/**/*.tsx' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I changed; rest is formatter.
0748421
to
4b940f7
Compare
4b940f7
to
845360a
Compare
transformIgnorePatterns: [ | ||
'node_modules/(?!@patternfly|@data-driven-forms)', | ||
|
||
'node_modules/(?!@patternfly|@data-driven-forms|react-syntax-highlighter|remark-gfm|react-markdown|remark-parse|devlop|hast-util-to-jsx-runtime|comma-separated-tokens|estree-util-is-identifier-name|hast-util-whitespace|property-information|space-separated-tokens|unist-util-position|vfile-message|unist-util-stringify-position|html-url-attributes|mdast-util-from-markdown|mdast-util-to-string|micromark|decode-named-character-reference|remark-rehype|mdast-util-to-hast|trim-lines|unist-util-visit|unist-util-is|unified|bail|is-plain-obj|trough|vfile|mdast-util-gfm|ccount|mdast-util-find-and-replace|escape-string-regexp|markdown-table|mdast-util-to-markdown|zwitch|longest-streak|mdast-util-phrasing)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I changed.
}, | ||
'^.+\\.tsx?$': ['ts-jest', { tsconfig: './packages/module/tsconfig.json' }], | ||
// Ensure ES modules are transformed | ||
'^.+\\.js$': 'babel-jest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is what I changed.
7b040df
to
3123def
Compare
3123def
to
fd962b4
Compare
Make data-testid configurable in user-composable components and rework tests to go without on generated components.
422c3e8
to
4c97fc7
Compare
Adjusted the test ids @nicolethoen! Thanks for the feedback there. |
🎉 This PR is included in version 2.1.0-prerelease.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
First round of testing - goal is to set up Jest and get coverage to ~20%.
Found several bugs and fixed them, so this is definitely useful already: