percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
71 stars 45 forks source link

New clientInfo and environmentInfo warnings in 1.0.0-beta.69 #581

Closed agrobbin closed 3 years ago

agrobbin commented 3 years ago

The problem

[percy] Invalid snapshot options:
[percy] - clientInfo: unknown property
[percy] - environmentInfo: unknown property
[percy] Snapshot taken: [redacted]
[percy] Warning: Missing `clientInfo` and/or `environmentInfo` properties

Environment

Details

Beta 69 started introducing these new warnings for our builds.

Our config looks like this (nearly identical to the latest default config):

version: 2
snapshot:
  percyCSS: |
    body {
      height: auto !important;
    }
discovery:
  allowedHostnames: []
  networkIdleTimeout: 250
static:
  cleanUrls: false
upload:
  files: "**/*.{png,jpg,jpeg}"
  ignore: ""
  stripExtensions: false
wwilsman commented 3 years ago

Hey @agrobbin! Thanks for pointing out this issue! This will be fixed with #588, which gives more context as to what exactly the bug was.