Web Component Tester: apply afterEach () globally

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

+8
mocha polymer web-component-tester
source share
1 answer

After going through some source code, I found a solution. There is an extraScripts config option that can be passed to the 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.

+4
source share

All Articles