diff --git a/driver/js/packages/hippy-web-renderer/README.md b/driver/js/packages/hippy-web-renderer/README.md index aacd07273bb..7ebfc1f82bd 100644 --- a/driver/js/packages/hippy-web-renderer/README.md +++ b/driver/js/packages/hippy-web-renderer/README.md @@ -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 diff --git a/driver/js/packages/hippy-web-renderer/e2e/react/scripts/hippy-webpack.web-renderer.dev.js b/driver/js/packages/hippy-web-renderer/e2e/react/scripts/hippy-webpack.web-renderer.dev.js index 57fccc5d5f9..6c874136b40 100644 --- a/driver/js/packages/hippy-web-renderer/e2e/react/scripts/hippy-webpack.web-renderer.dev.js +++ b/driver/js/packages/hippy-web-renderer/e2e/react/scripts/hippy-webpack.web-renderer.dev.js @@ -161,7 +161,7 @@ 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; @@ -169,6 +169,17 @@ module.exports = { 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; })(), }, diff --git a/driver/js/packages/hippy-web-renderer/e2e/test/specs/text/text-nest.test.js b/driver/js/packages/hippy-web-renderer/e2e/test/specs/text/text-nest.test.js index 72aba1bc7ae..236b68447b7 100644 --- a/driver/js/packages/hippy-web-renderer/e2e/test/specs/text/text-nest.test.js +++ b/driver/js/packages/hippy-web-renderer/e2e/test/specs/text/text-nest.test.js @@ -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);