Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add browser support #9

Merged
merged 5 commits into from
Oct 2, 2022
Merged

Add browser support #9

merged 5 commits into from
Oct 2, 2022

Commits on Sep 28, 2022

  1. Add browser support

    This significantly changes how tests are run. Because we need to run
    tests in the browser, Playwright is used for testing. The tests now use
    the Playwright snapshot feature. For every input fixture a markdown and
    HTML snapshot are made both using the Node.js and the browser API.
    
    To run tests in the browser, esbuild is used to serve a bundled version
    of the browser API. This is then dynamically imported and called inside
    a Playwright browser page.
    
    Unlike the Node.js implementation, the browser implementation doesn’t
    support any options. Launch options are irrelevant in the browser.
    Mermaid configuration is global in the browser. SVG Minification is
    probably unneeded when used in the browser, so SVGO isn’t included.
    
    Closes #8
    remcohaszing committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    710d19e View commit details
    Browse the repository at this point in the history

Commits on Sep 29, 2022

  1. Configuration menu
    Copy the full SHA
    a252a6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9365b0a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ef608d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2022

  1. Configuration menu
    Copy the full SHA
    e1a698c View commit details
    Browse the repository at this point in the history