浏览代码

build: remove stale files from include field in tsconfig.json

test: fix greeting equality check
Paul Razvan Berg 4 年之前
父节点
当前提交
07f9f2225a
共有 2 个文件被更改,包括 3 次插入11 次删除
  1. 1 1
      test/greeter/Greeter.behavior.ts
  2. 2 10
      tsconfig.json

+ 1 - 1
test/greeter/Greeter.behavior.ts

@@ -4,7 +4,7 @@ export function shouldBehaveLikeGreeter(): void {
   it("should return the new greeting once it's changed", async function () {
     expect(await this.greeter.connect(this.signers.admin).greet()).to.equal("Hello, world!");
 
-    await this.greeter.setGreeting("Hola, mundo!");
+    await this.greeter.setGreeting("Bonjour, le monde!");
     expect(await this.greeter.connect(this.signers.admin).greet()).to.equal("Bonjour, le monde!");
   });
 }

+ 2 - 10
tsconfig.json

@@ -12,15 +12,7 @@
     "strict": true,
     "target": "es6"
   },
-  "exclude": ["artifacts", "node_modules"],
+  "exclude": ["node_modules"],
   "files": ["./hardhat.config.ts"],
-  "include": [
-    "artifacts/**/*",
-    "artifacts/**/*.json",
-    "scripts/**/*",
-    "tasks/**/*",
-    "test/**/*",
-    "typechain/**/*",
-    "types/**/*"
-  ]
+  "include": ["tasks/**/*.ts", "test/**/*.ts", "typechain/**/*.d.ts", "typechain/**/*.ts"]
 }