This is a minimal reproduction of a potential bug with preact-render-spy.
System
Mac OS 10.11.6 Node v7.8.0
Steps to reproduce
git clone git@github.com:conorcussell/preact-render-spy-error.git
cd preact-render-spy-error
npm i
npm test
This gives me this error
node_modules/preact-render-spy/src/preact-render-spy.js:19
),
^
SyntaxError: Unexpected token )
And is caused by the trailing comma after nodeName
on this line
Removing that trailing comma makes the test work fine.