Skip to content

Commit 6be75b1

Browse files
authored
feat: fallbackComponent can also be selected from catalog now (#48)
* feat: fallbackComponent can also be selected from catalog now * chore: update (dev)Dependencies
1 parent 3701439 commit 6be75b1

6 files changed

Lines changed: 4350 additions & 3061 deletions

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,10 @@ const App = () => {
203203
<CatalogComponent component="Title">Hello Client1</CatalogComponent>
204204
<CatalogComponent
205205
component="Card"
206+
{/* the fallbackComponent can either be a new component, or a component
207+
from the catalog */}
206208
fallbackComponent={() => <div>Component not found</div>}
209+
{ /* fallbackComponent="FallbackComponent" */ }
207210
>
208211
Hello Card
209212
</CatalogComponent>

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
collectCoverageFrom: ['src/**/*.js'],
33
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
4-
testPathIgnorePatterns: ['<rootDir>/(dist|node_modules)/'],
4+
testPathIgnorePatterns: ['<rootDir>/(dist|es|esm|lib|node_modules)/'],
55
transform: {
66
'^.+\\.js$': 'babel-jest',
77
},

0 commit comments

Comments
 (0)