microsoft / powerbi-visuals-utils-testutils Goto Github PK
View Code? Open in Web Editor NEWTest utility interfaces for testing powerbi custom visuals
License: Other
Test utility interfaces for testing powerbi custom visuals
License: Other
i ran the following command and got a warning or error. I wanted to see if this was correct or if i need to update.
`...>typings install --save --global dtd3#0.0.0+20160907005744 dtjasmine#2.5.0+20161025102649 dtjasmine-jquery#0.0.0+20160317120654 dtjquery#1.10.0+2016092916
2922 dt~lodash#4.14.0+20161028154038
typings WARN deprecated 5/9/2016: "registry:dt/jasmine-jquery#0.0.0+20160317120654" is deprecated (updated, replaced or removed)
typings WARN deprecated 11/10/2016: "registry:dt/lodash#4.14.0+20161028154038" is deprecated (updated, replaced or removed)
typings INFO reference Stripped reference "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/jasmine/jasmine.d.ts" during installation
from "jasmine-jquery" (main)
typings INFO reference Stripped reference "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/jquery/jquery.d.ts" during installation f
rom "jasmine-jquery" (main)
d3
`-- (No dependencies)
jasmine
`-- (No dependencies)
jasmine-jquery
`-- (No dependencies)
jquery
`-- (No dependencies)
lodash
-- (No dependencies)
Got lot's of errors in testUtils due to dependency issue
@ignatvilesov
There are important files that Microsoft projects should all have that are not present in this repository. A pull request has been opened to add the missing file(s). When the pr is merged this issue will be closed automatically.
Microsoft teams can learn more about this effort and share feedback within the open source guidance available internally.
Since the mockIColorPalette.ts file contains the default implementation of isHighContrast, foreground, background, etc... properties of IColorPalette, the produced mockIColorPalette.js file on npm package don't.
I had to manually update the code by adding the following code inside export class MockIColorPalette { }
:
isHighContrast = true;
foreground = {value: "#333333" };
foregroundLight = {value: "#FFF" };
foregroundDark = {value: "#000" };
foregroundNeutralLight = {value: "#EAEAEA" };
foregroundNeutralDark = {value: "#212121" };
foregroundNeutralSecondary = {value: "#666666" };
foregroundNeutralSecondaryAlt = {value: "#777777" };
foregroundNeutralSecondaryAlt2 = {value: "#888888" };
foregroundNeutralTertiary = {value: "#A6A6A6" };
foregroundNeutralTertiaryAlt = {value: "#C8C8C8" };
foregroundSelected = {value: "#333333" };
foregroundButton = {value: "#666666" };
background = {value: "#FFF" };
backgroundLight = {value: "#EAEAEA" };
backgroundNeutral = {value: "#C8C8C8" };
backgroundDark = {value: "#000" };
hyperlink = {value: "#1F3A93" };
visitedHyperlink = {value: "#551A8B" };
mapPushpin = {value: "#FF5F00" };
shapeStroke = {value: "#01B8AA" };
selection = {value: undefined };
separator = {value: undefined };
negative = {value: undefined };
neutral = {value: undefined };
positive = {value: undefined };
Can you please recompile the source files and update the package?
Thanks!
It looks like that latest version of testutils is not yet compatible with latest custom visuals APIs due to move of the visual host.allowInteractions property -> host.hostCapabilities.allowInteractions.
Any plans to update?
I believe that applyJsonFilter() method is missing from MockIVisualHost in release 1.0.2 (and before).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.