Jsome icon indicating copy to clipboard operation
Jsome copied to clipboard

Doesn't work for me

Open scott-cornwell opened this issue 6 years ago • 2 comments

I'm on node 8.9 and using iterm2 on OSX. I can print colors with the chalk package fine.

If I do this:

const testObject = {
  someData: 'testing'
};
console.log(jsome.getColoredString(testObject));

I get this in the console:

      [ '%c{\n  %ctest%c: %c"%cblah%c"\n%c}',
        'color: #FFFF00',
        'color: #00FF00',
        'color: #FFFF00',
        'color: #FFFF00',
        'color: #FF00FF',
        'color: #FFFF00',
        'color: #FFFF00' ]

Tried just jsome(testObject) too and it gives the same.

scott-cornwell avatar Mar 30 '18 17:03 scott-cornwell

@scott-cornwell I just found this issue also. I believe it only occurs when running under jest. That's what it looks like for me anyway.

grantcarthew avatar Jul 05 '18 06:07 grantcarthew