• Robert Knight's avatar
    Change `mockImportedComponents` to not rely on existence of `propTypes` · dcfd018a
    Robert Knight authored
    Detecting a Preact/React functional component that does not use `propTypes` is
    impossible to do with 100% accuracy. `function Foo() { return 'Hello' }`
    is a perfectly valid component with no obvious Preact/React features.
    
    Fortunately because of the way this helper is used, we can make do with an imperfect
    check. If `mockImportedComponents` mocks something which is not really a
    component, that mock will be overridden with a real mock later.
    dcfd018a
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...