yarn test throws an error: TypeError: Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at TextImpl.get length [as length] (node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js:28:23)
at TextImpl.set data [as data] (node_modules/jsdom/lib/jsdom/living/nodes/CharacterData-impl.js:24:30)
at Text.textNode [as data] (node_modules/jsdom/lib/jsdom/living/generated/CharacterData.js:248:24)
at Set.onChange (node_modules/@stitches/react/src/index.js:16:64)
at Set.addCss (node_modules/@stitches/core/src/CssSet.js:19:9)
at expressThemedRule (node_modules/@stitches/core/src/index.js:73:16)
at Function.assign [as className] (node_modules/@stitches/core/src/index.js:82:5)
at assign (<anonymous>)
at createCss (node_modules/@stitches/core/src/index.js:343:2)
at Object.x (node_modules/@stitches/react/src/index.js:39:16)
Current Behavior
yarn test
throws an error:TypeError: Cannot read property 'length' of undefined
I'm using react stitches to create my button component. Project setup: https://github.com/norman-ags/tsdx-with-stitches
Expected behavior
Expected the test to pass
Additional context
I have tried this using CRA and the test runs fine.
Your environment