From fc4dc97f2834d3fcff0ff63077375b945cd0c312 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Fri, 6 Sep 2024 14:15:50 +0200 Subject: [PATCH] Remove verbatimModuleSyntax option --- custom-testing/answering/test/answering.spec.ts | 4 ++-- end-to-end-testing/puppeteer/tsconfig.json | 8 ++------ tsconfig.json | 5 +---- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/custom-testing/answering/test/answering.spec.ts b/custom-testing/answering/test/answering.spec.ts index 86c428f..c4911d0 100755 --- a/custom-testing/answering/test/answering.spec.ts +++ b/custom-testing/answering/test/answering.spec.ts @@ -116,8 +116,8 @@ function oracle( * page. */ describe("page.html", () => { - beforeEach(setup); - afterEach(teardown); + before(setup); + after(teardown); // By default, only Failed outcomes are considered it("should not have any Failed outcome", async () => { diff --git a/end-to-end-testing/puppeteer/tsconfig.json b/end-to-end-testing/puppeteer/tsconfig.json index 89f7723..45127c8 100644 --- a/end-to-end-testing/puppeteer/tsconfig.json +++ b/end-to-end-testing/puppeteer/tsconfig.json @@ -2,12 +2,8 @@ "$schema": "http://json.schemastore.org/tsconfig", "extends": "../tsconfig.json", "compilerOptions": { - "types": ["mocha"] + "types": ["mocha", "node"] }, "files": ["test/page.spec.ts"], - "references": [ - { - "path": "../../common" - } - ] + "references": [{ "path": "../../common" }] } diff --git a/tsconfig.json b/tsconfig.json index 9819c9d..c0d1ff6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,10 +10,7 @@ "sourceMap": true, "strict": true, "target": "es2022", - "types": ["node"], - "verbatimModuleSyntax": true, - "//": "Puppeteer is heavy in ambient const enums which verbatimModuleSyntax doesn't like. Given that this is only tests/examples, we don't really care about typechecking the libraries.", - "skipLibCheck": true + "types": ["node"] }, "files": [], "references": [