首页 开发技术 其它     /    apollo-storybook-decorator:使用ApolloClient包装您的故事书环境,为使用GraphQL进行隔离的UI测试提供模拟-源码

apollo-storybook-decorator:使用ApolloClient包装您的故事书环境,为使用GraphQL进行隔离的UI测试提供模拟-源码

上传者: weixin_42101720 | 上传时间:2023/12/18 7:24:15 | 文件大小:841KB | 文件类型:ZIP
apollo-storybook-decorator:使用ApolloClient包装您的故事书环境,为使用GraphQL进行隔离的UI测试提供模拟-源码
阿波罗故事书装饰器使用ApolloClient包装您的ReactStorybook故事。
支持ReactReact本机Vue角度的Apollo客户端V2快来了Apollo客户端V1XXX要旨向装饰器提供GraphQL类型定义。
像提供graphql-tools一样提供Mock对象拿着它:importReactfrom"react";import{Query}from"react-apollo";importgqlfrom"graphql-tag";import{storiesOf}from"@storybook/react";constuserQuery=gql`querygetUser={currentUser{namelastAction{message}avatarcity}}`;functionCurrentUser(){r 本软件ID:14972300

文件下载

资源详情

[{"title":"(63个子文件841KB)apollo-storybook-decorator:使用ApolloClient包装您的故事书环境,为使用GraphQL进行隔离的UI测试提供模拟-源码","children":[{"title":"apollo-storybook-decorator-master","children":[{"title":"apollo-storybook-decorator.png <span style='color:#111;'>119.37KB</span>","children":null,"spread":false},{"title":".babelrc <span style='color:#111;'>101B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.95KB</span>","children":null,"spread":false},{"title":".eslintrc.json <span style='color:#111;'>156B</span>","children":null,"spread":false},{"title":"lerna.json <span style='color:#111;'>112B</span>","children":null,"spread":false},{"title":"storybook.png <span style='color:#111;'>250.39KB</span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'>94B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>6.68KB</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>390.87KB</span>","children":null,"spread":false},{"title":"packages","children":[{"title":"apollo-storybook-angular","children":[{"title":"example","children":[{"title":"stories","children":[{"title":"index.ts <span style='color:#111;'>197B</span>","children":null,"spread":false}],"spread":true},{"title":".storybook","children":[{"title":"config.js <span style='color:#111;'>371B</span>","children":null,"spread":false}],"spread":false},{"title":"schema","children":[{"title":"typeDefinitions.js <span style='color:#111;'>414B</span>","children":null,"spread":false},{"title":"mocks.js <span style='color:#111;'>834B</span>","children":null,"spread":false}],"spread":false},{"title":"app","children":[{"title":"app.component.ts <span style='color:#111;'>655B</span>","children":null,"spread":false},{"title":"app.component.html <span style='color:#111;'>812B</span>","children":null,"spread":false}],"spread":false},{"title":"polyfills.ts <span style='color:#111;'>3.16KB</span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'>1.16KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.ts <span style='color:#111;'>1.95KB</span>","children":null,"spread":false}],"spread":false},{"title":"tsconfig.json <span style='color:#111;'>408B</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>284.41KB</span>","children":null,"spread":false}],"spread":true},{"title":"apollo-storybook-react-native","children":[{"title":".babelrc <span style='color:#111;'>101B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.16KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'>1.01KB</span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'>104B</span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'>2.99KB</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>269.68KB</span>","children":null,"spread":false}],"spread":true},{"title":"apollo-storybook-vue","children":[{"title":"example","children":[{"title":"stories","children":[{"title":"index.js <span style='color:#111;'>241B</span>","children":null,"spread":false},{"title":"HelloWorld.vue <span style='color:#111;'>482B</span>","children":null,"spread":false}],"spread":false},{"title":".storybook","children":[{"title":"config.js <span style='color:#111;'>435B</span>","children":null,"spread":false}],"spread":false},{"title":"schema","children":[{"title":"typeDefinitions.js <span style='color:#111;'>414B</span>","children":null,"spread":false},{"title":"mocks.js <span style='color:#111;'>834B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".babelrc <span style='color:#111;'>99B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.26KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'>1002B</span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'>120B</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>269.63KB</span>","children":null,"spread":false}],"spread":true},{"title":"apollo-storybook-v1","children":[{"title":"example","children":[{"title":"stories","children":[{"title":"index.js <span style='color:#111;'>2.73KB</span>","children":null,"spread":false}],"spread":false},{"title":".storybook","children":[{"title":"config.js <span style='color:#111;'>582B</span>","children":null,"spread":false},{"title":"addons.js <span style='color:#111;'>44B</span>","children":null,"spread":false}],"spread":false},{"title":"schema","children":[{"title":"typeDefinitions.js <span style='color:#111;'>414B</span>","children":null,"spread":false},{"title":"mocks.js <span style='color:#111;'>834B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".babelrc <span style='color:#111;'>116B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.49KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'>2.21KB</span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'>104B</span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'>2.51KB</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>227.53KB</span>","children":null,"spread":false}],"spread":false},{"title":"apollo-storybook-core","children":[{"title":".babelrc <span style='color:#111;'>101B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1006B</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'>2.11KB</span>","children":null,"spread":false}],"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'>5.39KB</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>115.29KB</span>","children":null,"spread":false}],"spread":false},{"title":"apollo-storybook-react","children":[{"title":"example","children":[{"title":"stories","children":[{"title":"index.js <span style='color:#111;'>2.20KB</span>","children":null,"spread":false},{"title":"hooks.js <span style='color:#111;'>2.03KB</span>","children":null,"spread":false}],"spread":false},{"title":".storybook","children":[{"title":"config.js <span style='color:#111;'>1.02KB</span>","children":null,"spread":false}],"spread":false},{"title":"schema","children":[{"title":"typeDefinitions.js <span style='color:#111;'>414B</span>","children":null,"spread":false},{"title":"mocks.js <span style='color:#111;'>834B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".babelrc <span style='color:#111;'>101B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.js <span style='color:#111;'>1.03KB</span>","children":null,"spread":false}],"spread":false},{"title":".npmignore <span style='color:#111;'>104B</span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'>2.87KB</span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'>119.03KB</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明