@essex/visual-testing-tools
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Essex PBI Base -- Visual Testing Tools

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

Building

See the root README on how to build this project.

Usage

The library is broken into a couple of parts:

mockPBI

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

visualHelpers

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();
myVisual.update(updateOptions);

See the API docs for more details.

Readme

Keywords

Package Sidebar

Install

npm i @essex/visual-testing-tools

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

539 kB

Total Files

30

Last publish

Collaborators

  • gaudyb
  • monik.182
  • mcarvajal89
  • daye_souza
  • darthtrevino
  • stopyoukid
  • natoverse
  • ahoak
  • dworthen