Skip to content

Instantly share code, notes, and snippets.

@dvinciguerra
Created October 5, 2021 21:38
Show Gist options
  • Save dvinciguerra/a2c37655e15c17c1b13d5dd98141c9ee to your computer and use it in GitHub Desktop.
Save dvinciguerra/a2c37655e15c17c1b13d5dd98141c9ee to your computer and use it in GitHub Desktop.
console.clear()
const specs = document.querySelectorAll('header > div')
let files = {}
specs.forEach((item) => {
const path = item.innerText
const isSpecPath = path.match(/^spec/)
if(isSpecPath) files[path] = (files[path] || 0) + 1
})
console.table(files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment