Skip to content

Commit 8fcbd9c

Browse files
committed
tests: update cjs tests to use require
1 parent f701f39 commit 8fcbd9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

testcases/test-env/ts-import-cjs-node16/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ethers } from "ethers";
1+
const { ethers } = require("ethers");
22

33
console.log("Version:", ethers.version);
44

testcases/test-env/ts-import-cjs/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ethers } from "ethers";
1+
const { ethers } = require("ethers");
22

33
console.log("Version:", ethers.version);
44

0 commit comments

Comments
 (0)