Skip to content

Commit

Permalink
feat(web-render): fix e2e test issue & update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gguoyu committed Aug 30, 2023
1 parent d57f68c commit 2737544
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
13 changes: 6 additions & 7 deletions driver/js/packages/hippy-web-renderer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ Due to `hippy-react` and `hippy-vue` have more coupling with `global OS paramete

## Wait to do

1. WaterfallView组件补充
2. AnimationSet模块的补充
3. Platform-Localization模块的补充
4. Dynamic-load能力的补充
5. List.rowShouldSticky\bounces\overScrollEnabled\showScrollIndicator\rowShouldSticky属性补充
6. ScrollView.scrollIndicatorInsets\showScrollIndicator\showsHorizontalScrollIndicator\showsVerticalScrollIndicator属性补充
7. Image.capInsets属性补充
1. WaterfallView Component support
2. AnimationSet Component support
3. Platform-Localization Component support
4. List.rowShouldSticky\bounces\overScrollEnabled\showScrollIndicator\rowShouldSticky attribute support
5. ScrollView.scrollIndicatorInsets\showScrollIndicator\showsHorizontalScrollIndicator\showsVerticalScrollIndicator attribute support
6. Image.capInsets attribute support

Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,25 @@ module.exports = {
const aliases = {};
// If hippy-react was built exist then make a alias
// Remove the section if you don't use it
const hippyReactPath = path.resolve(__dirname, '../../../packages/hippy-react');
const hippyReactPath = path.resolve(__dirname, '../../../../hippy-react');
if (fs.existsSync(path.resolve(hippyReactPath, 'dist/index.js'))) {
console.warn(`* Using the @hippy/react in ${hippyReactPath}`);
aliases['@hippy/react'] = hippyReactPath;
} else {
console.warn('* Using the @hippy/react defined in package.json');
}

// If @hippy/web-renderer was built exist in packages directory then make an alias
// Remove the section if you don't use it
const webRendererPath = path.resolve(__dirname, '../../../dist');
if (fs.existsSync(path.resolve(webRendererPath, 'index.js'))) {
console.warn(`* Using the @hippy/web-renderer in ${webRendererPath} as @hippy/web-renderer alias`);
aliases['@hippy/web-renderer'] = webRendererPath;
} else {
console.warn('* Using the @hippy/web-renderer defined in package.json');
}


return aliases;
})(),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
const { expect } = chai;

describe('text', () => {
it('text decoration', (done) => {
it('text nest', (done) => {
e2e.route.replace('/text-nest');
snapshot(0.2).then((resolve) => {
expect(resolve).to.equal(true);
Expand Down

0 comments on commit 2737544

Please sign in to comment.