6.1.1 • Published 1 month ago

powerbi-visuals-utils-testutils v6.1.1

Weekly downloads
148
License
MIT
Repository
github
Last release
1 month ago

Microsoft Power BI visuals TestUtils

Build npm version npm

TestUtils is a set of mocks and fakes in order to simplify unit testing for Power BI custom visuals

Usage

2.3.0 Migration note

From version 2.3.0 testDom function returns HTMLElement instead of JQuery object. If you are using JQuery in tests, wrap the testDom calls with $(...) for compatibility:

    // 2.2.1 and below
    let element: JQuery = testDom("100", "100");
    // 2.3.0 and above
    let element: JQuery = $(testDom("100", "100"));

The motivation is not to force JQuery usage. It might be not necessary in tests. In lots of cases element.get(0) is the next operation after receiving an element with testDom. Now JQuery is not required to use powerbi-visuals-utils-testutils, so you can drop this dependency. If you keep it, you can easily migrate your code to 2.3.* version using the example above.

Contributing

License

See the LICENSE file for license rights and limitations (MIT).

6.1.1

1 month ago

6.1.0

3 months ago

6.0.3

4 months ago

6.0.2

4 months ago

6.0.1

1 year ago

6.0.0

1 year ago

3.2.1

1 year ago

3.2.0

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.5.0

2 years ago

2.6.0

2 years ago

2.4.2

2 years ago

2.4.5

2 years ago

2.4.4

2 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.4

4 years ago

2.3.3

4 years ago

2.3.2

4 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.1

5 years ago

2.2.0

5 years ago

1.3.3

5 years ago

2.1.7

5 years ago

2.1.6

5 years ago

1.3.2

5 years ago

2.1.4

6 years ago

1.3.1

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago