Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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:1I 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?
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 6 | |
| 4 | |
| 4 | |
| 3 |