hunk.code_window:     // Fallback to 1 in case both values are `0`
       scaleX = rect.width / element.offsetWidth || 1;
       scaleY = rect.height / element.offsetHeight || 1;
     }
     return {
       width: round(rect.width / scaleX),
  
hunk.labels: keep replace replace keep keep keep keep
hunk.after_edit:     if (offsetWidth > 0) {
         scaleX = rect.width / offsetWidth || 1;
       }
       if (offsetHeight > 0) {
         scaleY = rect.height / offsetHeight || 1;
       }
  
hunk.file_path: src/dom-utils/getBoundingClientRect.js
hunk.type: replace
file: name: Unit Tests
  
  on: [push, pull_request]
  
  env:
    CI: true
  
  jobs:
    checks:
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
        - uses: CultureHQ/actions-yarn@master
          with:
            args: install
        - name: Flow
          uses: CultureHQ/actions-yarn@master
          with:
            args: test:flow
        - name: ESLint
          uses: CultureHQ/actions-yarn@master
          with:
            args: test:eslint
        - name: TypeScript
          uses: CultureHQ/actions-yarn@master
          with:
            args: build:es
        - name: TypeScript
          uses: CultureHQ/actions-yarn@master
          with:
            args: build:typescript
        - name: TypeScript
          uses: CultureHQ/actions-yarn@master
          with:
            args: test:typescript
  
    unit:
      runs-on: ubuntu-latest
      steps:
        - uses: actions/checkout@v2
        - uses: mujo-code/puppeteer-headful@master
          with:
            args: yarn
        - name: TypeScript
          uses: mujo-code/puppeteer-headful@master
          with:
            args: yarn build:bundles
        - name: Run Jest Unit Tests
          uses: mujo-code/puppeteer-headful@master
          with:
            args: yarn test:unit
  