Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Component Tester: Apply afterEach() globally

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?

like image 823
x74x61 Avatar asked Oct 28 '16 07:10

x74x61


Video Answer


1 Answers

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.

like image 133
x74x61 Avatar answered Oct 18 '22 19:10

x74x61