simple-mock | This is a simple restful style mock service project | Mock library

 by   fengcms JavaScript Version: v2.0.0 License: No License

kandi X-RAY | simple-mock Summary

kandi X-RAY | simple-mock Summary

simple-mock is a JavaScript library typically used in Testing, Mock applications. simple-mock has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

这是一个简单的支持 restful 风格的 mock 服务项目。. 在互联网上,有很多很多 mock 的项目,那么我为什么要造这个轮子呢?很简单,我怕麻烦。因此,我在 2018 年搞了这个项目。当时这个项目就可以完整的支持我的业务需求了。. 这里,我需要说明一下,我认为的麻烦,是指额外的学习成本。比如其他功能强大的 mock 项目,使用它,就得先学习它的很多规则。可是,mock 服务对于我们前端开发人员而言,只是一个过渡工具而已。当后端提供好真实的接口后,这玩意儿就随风而去了。所以,为了满足这么个小小的需求,增加学习成本,我是真的不愿意。. 因此,我的 2.0.0 的版本,依旧支持这种最简单的方式。除此之外,为了满足更高级的一些需求,增加了一些功能,而这些功能都是纯粹的 javascript,不需要学习额外的语法。你是前端,你就不用学习,能够顺利的使用这些高级功能。. 如果你已经超过了这个阶段,那么 这个项目一定很适合你,这是一个完整的基于 nodejs 的后端 WEB 框架。目前,这个项目我没有写文档,我会抽时间完善文档的。.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              simple-mock has a low active ecosystem.
              It has 13 star(s) with 4 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 0 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of simple-mock is v2.0.0

            kandi-Quality Quality

              simple-mock has no bugs reported.

            kandi-Security Security

              simple-mock has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              simple-mock does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              simple-mock releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of simple-mock
            Get all kandi verified functions for this library.

            simple-mock Key Features

            No Key Features are available at this moment for simple-mock.

            simple-mock Examples and Code Snippets

            No Code Snippets are available at this moment for simple-mock.

            Community Discussions

            Trending Discussions on simple-mock

            QUESTION

            How can I do Jest API test for this code?
            Asked 2018-Sep-05 at 06:27

            I have tried several ways for mocking this unit of my code but still, it doesn't work. I'm using create-react-app and jest for testing.

            I have a function in admin adminSignup.js for sending data to my server(Node.js and Mongoose) for creating account:

            ...

            ANSWER

            Answered 2018-Sep-05 at 06:27

            I have found this way(using mock-http-server) for another POST request and it works for me:

            userList.js:

            Source https://stackoverflow.com/questions/51979710

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install simple-mock

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/fengcms/simple-mock.git

          • CLI

            gh repo clone fengcms/simple-mock

          • sshUrl

            git@github.com:fengcms/simple-mock.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link