@essex/visual-testing-tools
A set of testing tools for ease of testing within PowerBI
Last updated 2 years ago by darthtrevino .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @essex/visual-testing-tools 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.0.0                                ...           latest (2 years ago)

8 Versions

  • 3.0.0                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 11
Last Day 0
Last Week 0
Last Month 4
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |