Skip to content

Commit 2587944

Browse files
committed
fix: 🐛 Fixed testing error
1 parent 28c47fb commit 2587944

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
node-version: "lts/*"
1919
- name: Install dependencies
2020
run: yarn install --frozen-lockfile
21+
env:
22+
NODE_ENV: test
2123
- name: Lint
2224
run: yarn lint
2325
- name: Test

hardhat.config.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ import '@matterlabs/hardhat-zksync-toolbox';
44
import '@nomiclabs/hardhat-solhint';
55
import '@typechain/hardhat';
66

7-
console.log(
8-
process.env.NODE_ENV,
9-
process.env.NODE_ENV !== 'test',
10-
!process.env.INFURA_API_KEY,
11-
);
12-
137
if (process.env.NODE_ENV !== 'test' && !process.env.INFURA_API_KEY) {
148
throw new Error('INFURA_API_KEY must be provided with .env');
159
}

0 commit comments

Comments
 (0)