소스 검색

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"]
 }