Skip to content

Cannot be used in webpack/browser, due to require("fs") #157

Open
@Venryx

Description

@Venryx

Most of this library works perfectly fine between NodeJS and the browser/Webpack.

However, there is one line that breaks it for the latter: https://github.com/soumak77/firebase-mock/blob/master/src/storage-file.js#L8

Ideally, there would be a way to exclude the NodeJS-requiring portion of the library, so you can use it from browser code.

This would be helpful because it means I can more easily integrate the mocking library with Cypress. (Cypress tests run in the browser alongside the main application code)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions