Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Helper to bypass mock FS & expose real files/directories #304

Merged
merged 31 commits into from
Aug 9, 2020
Merged

Helper to bypass mock FS & expose real files/directories #304

merged 31 commits into from
Aug 9, 2020

Commits on Jul 27, 2020

  1. Configuration menu
    Copy the full SHA
    26bfdf7 View commit details
    Browse the repository at this point in the history
  2. Fix broken xdescribe

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    be7bf43 View commit details
    Browse the repository at this point in the history
  3. Node 6 support

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    a39712e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    266569b View commit details
    Browse the repository at this point in the history
  5. Fixed + improved test

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    95d3ff2 View commit details
    Browse the repository at this point in the history
  6. Added normalize path

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    34a4503 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    91ab56a View commit details
    Browse the repository at this point in the history
  8. Remove artifact

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    fdeed02 View commit details
    Browse the repository at this point in the history
  9. prettier

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    0ad9857 View commit details
    Browse the repository at this point in the history
  10. LazyLoad Fixes

    - Lazy-loaded files were not able to be written to if they hadn't been read yet
    - Descriptors defaulted to writable: false after setting value
    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    c3eddcb View commit details
    Browse the repository at this point in the history
  11. Updated readme

    - Included mock.createDirectoryInfoFromPaths()
    - Included mock.bypass()
    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    decb5de View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    135ec12 View commit details
    Browse the repository at this point in the history
  13. Move badge to top of readme

    nonara committed Jul 27, 2020
    Configuration menu
    Copy the full SHA
    61b8ac1 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b195d8e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    3b58f79 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. Re-engineered API

    - Added mock.mapFile(), mock.mapDir(), and mock.mapPaths()
    - Created improved tests for the new methods (comparing stats with real files, etc)
    nonara committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    6950d39 View commit details
    Browse the repository at this point in the history
  2. Update readme

    nonara committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    9f284af View commit details
    Browse the repository at this point in the history
  3. Added tests for integration with mock() & fs.readFileSync

    Just to be safe
    nonara committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    562c6ae View commit details
    Browse the repository at this point in the history
  4. Correct typo

    nonara committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    2ca7d0e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    10f61da View commit details
    Browse the repository at this point in the history
  6. Address 3cp's comments

    nonara committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    92ca9c8 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2020

  1. Configuration menu
    Copy the full SHA
    172e698 View commit details
    Browse the repository at this point in the history
  2. Update mock.bypass test

    nonara committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    9087580 View commit details
    Browse the repository at this point in the history
  3. Moved mapping helpers to outside module

    Addresses #304 (comment)
    nonara committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    0c07e57 View commit details
    Browse the repository at this point in the history
  4. Fix circular issue

    nonara committed Jul 29, 2020
    Configuration menu
    Copy the full SHA
    8e11bec View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    4b579c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2020

  1. Applied review fixes

    - Remove `enable`, `disable` from exports
    - Add promise support to `mock.bypass()`
    - Merge `mapDir()` and `mapFile()` functions to `load()``
    - Remove `mapPaths()`
    - Use `path.basename` (May affect cygwin, but Linux allows backslashes in filename, which takes precedence)
    - Remove custom error message for non-string parameter to `load()`
    - Updated tests to accommodate changes
    - Updated readme according to suggestions
    nonara committed Aug 4, 2020
    Configuration menu
    Copy the full SHA
    8dfdc85 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2cc92f3 View commit details
    Browse the repository at this point in the history
  3. Prettier correction

    nonara committed Aug 4, 2020
    Configuration menu
    Copy the full SHA
    0c7bbbb View commit details
    Browse the repository at this point in the history
  4. Add withPromise to test

    nonara committed Aug 4, 2020
    Configuration menu
    Copy the full SHA
    f431af2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    768224f View commit details
    Browse the repository at this point in the history