Skip to content

Instantly share code, notes, and snippets.

@mcollina
Last active April 6, 2021 08:24
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcollina/e799ebb3fa9260abbe8ea56a8434ef24 to your computer and use it in GitHub Desktop.
Save mcollina/e799ebb3fa9260abbe8ea56a8434ef24 to your computer and use it in GitHub Desktop.
Remove all tap@15 deprecations
#!/bin/sh
find ./test -regex '.*js' | xargs sed -I '' 's/tearDown/teardown/g'
find ./test -regex '.*js' | xargs sed -I '' 's/strictEqual/equal/g'
find ./test -regex '.*js' | xargs sed -I '' 's/deepEqual/same/g'
find ./test -regex '.*js' | xargs sed -I '' 's/false(/notOk(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/notStrictEqual/not/g'
find ./test -regex '.*js' | xargs sed -I '' 's/similar/match/g'
find ./test -regex '.*js' | xargs sed -I '' 's/strictDeepEqual/strictSame/g'
find ./test -regex '.*js' | xargs sed -I '' 's/is(/equal(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/throw(/throws(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/true(/ok(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/notThrow(/doesNotThrow(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/notEqual(/not(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/equals(/equal(/g'
find ./test -regex '.*js' | xargs sed -I '' 's/like(/match(/g'
sed -i '/^esm:.*$/d' .taprc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment