tests: use parameterised testing using jest.each
for extensions.test.ts
#514
+114
−265
jest.each
for extensions.test.ts
#514