From 694834c0167c91d7823b736ce6097ea5fab336d7 Mon Sep 17 00:00:00 2001 From: Nenad Date: Wed, 19 Jul 2023 07:46:05 +0200 Subject: [PATCH] Move setup to root /test/* folder and add it as always included in tests --- package.json | 2 +- test/{utils => }/setup/assertions.ts | 0 test/setup/index.ts | 1 + test/{utils/setup/setup.test.ts => setup/setup.ts} | 0 4 files changed, 2 insertions(+), 1 deletion(-) rename test/{utils => }/setup/assertions.ts (100%) create mode 100644 test/setup/index.ts rename test/{utils/setup/setup.test.ts => setup/setup.ts} (100%) diff --git a/package.json b/package.json index 59d944d02..e945885b5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "preinstall": "npx only-allow yarn", "format": "prettier --write './{config,contracts,eth-sdk,scripts,tasks,test,utils}/**/*.{ts,js,sol}'", - "test": "hardhat test", + "test": "hardhat test ./test/setup", "compile": "bash ./compile.sh", "deploy": "hardhat compile && hardhat deploy:AngelProtocol", "sdks": "yarn eth-sdk", diff --git a/test/utils/setup/assertions.ts b/test/setup/assertions.ts similarity index 100% rename from test/utils/setup/assertions.ts rename to test/setup/assertions.ts diff --git a/test/setup/index.ts b/test/setup/index.ts new file mode 100644 index 000000000..619bfce09 --- /dev/null +++ b/test/setup/index.ts @@ -0,0 +1 @@ +import "./setup"; diff --git a/test/utils/setup/setup.test.ts b/test/setup/setup.ts similarity index 100% rename from test/utils/setup/setup.test.ts rename to test/setup/setup.ts