A set of testing tools for ease of testing within PowerBI


1523.0.03 years ago4 years agoMinified + gzip package size for @essex/visual-testing-tools in KB


Essex PBI Base -- Visual Testing Tools

A collection of testing tools for unit testing powerbi custom visuals.


See the root README on how to build this project.


The library is broken into a couple of parts:


This provides a mock global powerbi instance for usage within unit testing, to use mockPBI just require it.

import "@essex/visual-testing-tools/lib/mockPBI"; // or require()
// The powerbi global is now defined


This provides a set of testing tools to mock powerbi API objects, such as IVisual.update option objects or dataViews.

import { Utils } from "@essex/visual-testing-tools"; // or require()
const myVisual = createVisual();
const updateOptions = Utils.createUpdateOptionsWithData();

See the API docs for more details.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.