Skip to content

Instantly share code, notes, and snippets.

View arkdelkaos's full-sized avatar

Alvaro Almendros Gala arkdelkaos

  • Grupo Masmovil
  • Madrid, Spain
View GitHub Profile

Yes, as a major version bump, Vitest v4 introduces several breaking changes you'll need to handle when migrating from v3.

You can find the full details in the official Vitest v4 Migration Guide.

Here are some of the most significant breaking changes to be aware of:

⚙️ Configuration & Pools

  • Pool Options: The poolOptions configuration is gone. Options like threads or vm are now set at the top level of your test config.
  • Workers: maxThreads and maxForks have been consolidated into a single option: maxWorkers.
@arkdelkaos
arkdelkaos / select_gmaps_random_restaurant
Created March 3, 2023 17:22
select restaurant random
https://www.google.com/save/list
let list = document.getElementsByClassName('qlcLic')
let item = list.item(Math.random() * list.length)
item.scrollIntoView({
behavior: 'smooth'
})
console.log(item)
@arkdelkaos
arkdelkaos / bulk_rename_bash.sh
Created August 12, 2022 07:37
bulk rename bash #zsh #tool
find . -iname "jest-setup.ts" -exec sh -c 'echo mv "$1" "$(echo "$1" | sed s/jest-setup.ts\$/jest.setup.ts/)"' _ {} \;
@arkdelkaos
arkdelkaos / remove_intune.sh
Last active May 25, 2022 07:49
remove intune #intune
#!/bin/sh
sudo rm -Rfv /Applications/Company\ Portal.app
sudo rm -Rfv ~/Library/Application\ Support/com.microsoft.CompanyPortal.usercontext.info
sudo rm -Rfv ~/Library/Application\ Support/com.microsoft.CompanyPortal
sudo rm -Rfv ~/Library/Application\ Support/com.jamfsoftware.selfservice.mac
sudo rm -Rfv ~/Library/Saved\ Application State/com.jamfsoftware.selfservice.mac.savedState
sudo rm -Rfv ~/Library/Saved\ Application State/com.microsoft.CompanyPortal.savedState
sudo rm -Rfv ~/Library/Preferences/com.microsoft.CompanyPortal.plist
sudo rm -Rfv ~/Library/Preferences/com.jamfsoftware.selfservice.mac.plist
@arkdelkaos
arkdelkaos / super console.js
Created May 19, 2022 14:36
super console.log #devtools
console.log('%c🧪 DEBUG%c whatever in the night ', 'color:#77dd77;background:#333;border:1px solid #379d37;border-radius:4px;margin-right:4px;vertical-align: center;padding:0 auto;display:inline-block;padding:4px;font-family:Helvetica;font-weight:600', '');
@arkdelkaos
arkdelkaos / gh pull request helpers.js
Last active July 7, 2022 07:45
github pull request helpers #git #github #pr #devtools
// open 50 diffs
Array.prototype.slice.call(document.querySelectorAll('.js-details-container'))
.filter(elem => {
const check = (elem.getElementsByClassName('js-reviewed-checkbox') || [])[0]
return check && !check.checked
})
.slice(0, 50)
.forEach((elem => {
const btnLoadDiffs = (elem.getElementsByClassName('load-diff-button') || [])[0]
if (btnLoadDiffs) {
@arkdelkaos
arkdelkaos / git tag.sh
Created May 19, 2022 14:20
git tag #git #tag
# create
(export TAG=v1.2.3-whatever; git tag $TAG && git push origin $TAG --follow-tags)
# recreate
(export TAG=v1.2.3-whatever; git tag -d $TAG && git push --delete origin $TAG && git tag $TAG && git push origin $TAG --follow-tags)
# remove
(export TAG=v1.2.3-whatever; git tag -d $TAG && git push --delete origin $TAG)
@arkdelkaos
arkdelkaos / uBlacklist.txt
Last active May 30, 2022 17:25
Ark's uBlacklist sync list #ublacklist #chrome #extension
*://*.900913.ru/*
*://*.a-scrip.org/*
*://*.acnenomor.com/*
*://*.adoclib.com/*
*://*.allaskme.com/*
*://*.android.bigresource.com/*
*://*.androiddev.orkitra.com/*
*://*.answerhub.com/*
*://*.arrayshift.com/*
*://*.ask-coder.com/*