Skip to content

Mock / Polyfill for local dev efficiency #156

@TimOgilvy

Description

@TimOgilvy

Hello!

I'm trying to find a way to mock or polyfill the ZAF Framework for local development. I'm using secret/secure settings.

The ZAT Server (Sinatra), as provided by the ZAT Tools CLI, prompts me for values for those secret tokens, but the ZAF Framework never initialises on localhost.

It's impossible to upload a dev compiled version of my app to Zendesk, either the sandbox, or my live server, leaving me stuck debugging minified code after a lengthy upload to Zendesk for every single app change. This makes for a fairly tedious dev cycle.

I'm happy to contribute any code I can or do anything possible to assist in solving this, as the turnaround time is making ZAF development completely untenable for us currently.

If I've done a dumb, and there's an easy way around this, please slap me with it! Otherwise let me know if I can help somehow?

Would also like to contribute to make mocking ZAFClient Request lifecycle easy for Jest testing of react based sidebar apps etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions