smarlhens / happy-dom-value-match-is-not-a-function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to reproduce ?

npm install
npm run test:run

Test result should be an exception:

Vitest caught 2 unhandled errors during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.
 ❯ Function.getVariable node_modules/happy-dom/lib/css/declaration/utilities/CSSStyleDeclarationValueParser.js:383:40
 ❯ Function.getTop node_modules/happy-dom/lib/css/declaration/utilities/CSSStyleDeclarationPropertySetParser.js:177:67

TypeError: value.match is not a function
 ❯ CSSStyleDeclarationPropertyManager.set node_modules/happy-dom/lib/css/declaration/utilities/CSSStyleDeclarationPropertyManager.js:419:77
 ❯ CSSStyleDeclaration.setProperty node_modules/happy-dom/lib/css/declaration/AbstractCSSStyleDeclaration.js:124:19
 ❯ CSSStyleDeclaration.set top [as top] node_modules/happy-dom/lib/css/declaration/CSSStyleDeclaration.js:3358:14

TypeError: value.match is not a function
 ❯ Function.getTop node_modules/happy-dom/lib/css/declaration/utilities/CSSStyleDeclarationPropertySetParser.js:177:67
 ❯ CSSStyleDeclarationPropertyManager.set node_modules/happy-dom/lib/css/declaration/utilities/CSSStyleDeclarationPropertyManager.js:419:77
 ❯ CSSStyleDeclaration.setProperty node_modules/happy-dom/lib/css/declaration/AbstractCSSStyleDeclaration.js:124:19
 ❯ CSSStyleDeclaration.set top [as top] node_modules/happy-dom/lib/css/declaration/CSSStyleDeclaration.js:3358:14

About


Languages

Language:TypeScript 47.0%Language:Vue 34.8%Language:JavaScript 11.6%Language:HTML 4.4%Language:SCSS 2.1%