Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
bhavesh-jadav
Helper I
Helper I

Power BI Custom visual testing ES6

Hello there,

I am trying to write test for my custom visual by following guide on https://microsoft.github.io/PowerBI-visuals/docs/how-to-guide/unit-tests-introduction/


but I am facing following error

 

 

Chrome 71.0.3578 (Windows 10.0.0) ERROR
    Uncaught SyntaxError: Unexpected token {
    at node_modules/powerbi-visuals-utils-testutils/lib/index.js:1
Chrome 71.0.3578 (Windows 10.0.0) ERROR
    Uncaught SyntaxError: Unexpected token {
    at node_modules/powerbi-visuals-utils-testutils/lib/index.js:1

I am using PBIVIZ v3.x.x to develop custom visual.
How do I resolve this error? Where can I find updated guide on testing custom visual using new pbiviz tools?

 

1 REPLY 1
v-viig
Community Champion
Community Champion

What version of powerbi-visuals-utils-testutils are you using?

 

Is there a possibility to share source code?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.