diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml index 184e7c874..4355625a2 100644 --- a/.github/workflows/build-lint-test.yml +++ b/.github/workflows/build-lint-test.yml @@ -47,9 +47,6 @@ jobs: contracts.ts key: ${{ github.run_id }} - - name: ๐Ÿงช run import/requires tests - run: npm run test:importRequire - - name: ๐Ÿ“š generate ABI docs run: npm run build:docs diff --git a/package.json b/package.json index b07a1fa0f..33e7d816b 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,6 @@ "test:reentrancy": "hardhat test --no-compile tests/Reentrancy/Reentrancy.test.ts", "test:reentrancyinit": "hardhat test --no-compile tests/Reentrancy/ReentrancyInit.test.ts", "test:foundry": "forge test --no-match-test Skip -vvv --gas-report > gasreport.ansi", - "test:importRequire": "npm run build:js && ./tests/importRequire.sh", "test:turbo": "turbo test" }, "dependencies": { diff --git a/tests/importRequire.sh b/tests/importRequire.sh deleted file mode 100755 index b3f7e7e9a..000000000 --- a/tests/importRequire.sh +++ /dev/null @@ -1,148 +0,0 @@ -#!/usr/bin/env bash -rm -rf ./.test -mkdir ./.test -testdir="$(pwd)/.test" -trap "rm -rf $testdir" EXIT -RED="\033[31m" -GREEN="\033[32m" -YELLOW="\033[33m" -ENDCOLOR="\033[0m" - -if [ ! -f './dist/constants.cjs' ] -then - echo -e "${RED}Fail: No constants.cjs found${ENDCOLOR}" - exit 1 -fi -if [ ! -f './dist/constants.mjs' ] -then - echo -e "${RED}Fail: No constants.mjs found${ENDCOLOR}" - exit 1 -fi -if [ ! -f './package.json' ] -then - echo -e "${RED}Fail: No package.json found${ENDCOLOR}" - exit 1 -fi - -echo -e "${YELLOW}Packaging npm package${ENDCOLOR}" -npm pack - -PACK="$(pwd)/$(ls | grep -E "^lukso.*tgz$")" -if [ ! -f "$PACK" ] -then - echo -e "${RED}Fail: No tgz pack file found${ENDCOLOR}" - exit 1 -fi - -echo -e "${YELLOW}Creating test directory${ENDCOLOR}" -cd ./.test - -echo -e "${YELLOW}Creating package.json type=module${ENDCOLOR}" -cat > package.json < test.cjs < test.ts < tsconfig.json <