Last active
April 6, 2021 08:24
-
-
Save mcollina/e799ebb3fa9260abbe8ea56a8434ef24 to your computer and use it in GitHub Desktop.
Remove all tap@15 deprecations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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