Web Component Tester: Apply afterEach() globally
Asked Answered
P

1

8

I have hundreds of Polymer test suites. At the end of each test, I'd like to do some custom quality checks. Is there a way to do this globally for all my test suites?

Presbyter answered 28/10, 2016 at 7:18 Comment(0)
P
4

After going through some source code I found a solution. There is an extraScripts config option that can be passed to Web Component Tester. Specify your global afterEach in a separate JS file and include it here.

// Additional .js files to include in *generated* test indexes.

Presbyter answered 31/10, 2016 at 12:57 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.