Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Skip tests on Node 10
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Mar 29, 2021
1 parent 1aa06ab commit 46a9e7f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/preserve-to-buckets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"scripts": {
"build": "tsc",
"prepare": "yarn build",
"test": "jest --verbose --detectOpenHandles"
"test": "./scripts/test.sh"
},
"repository": "https://github.com/trufflesuite/truffle/tree/master/packages/preserve-to-buckets",
"author": "Rosco Kalis <[email protected]>",
Expand Down
11 changes: 11 additions & 0 deletions packages/preserve-to-buckets/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#! /usr/bin/env sh

NODE_VERSION="$(node --version)"

# If Node version >=12 we run tests
if yarn semver -r ">=12" $NODE_VERSION; then
yarn jest --verbose --detectOpenHandles $@
# Otherwise we skip the tests since IPFS requires at least Node 12
else
true
fi
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22678,7 +22678,7 @@ printj@~1.1.0:
resolved "https://registry.yarnpkg.com/printj/-/printj-1.1.2.tgz#d90deb2975a8b9f600fb3a1c94e3f4c53c78a222"
integrity sha512-zA2SmoLaxZyArQTOPj5LXecR+RagfPSU5Kw1qP+jkWeNlrq+eJZyY2oS68SU1Z/7/myXM4lo9716laOFAVStCQ==

private-ip@^2.1.1:
private-ip@^2.0.0, private-ip@^2.1.1:
version "2.1.1"
resolved "https://registry.yarnpkg.com/private-ip/-/private-ip-2.1.1.tgz#cd4ac7481099991e211706f411aede9725c1712f"
integrity sha512-csxTtREJ7254nnUF14hjOrnd/vZH78vTS5opec6IDVZRwY3omKDcNL/r+vfxFZnCRsrBWVA8B0Q95lgMGrFuZQ==
Expand Down

0 comments on commit 46a9e7f

Please sign in to comment.