From c90ab0a934b39004a57a1fadeed2796a3de5198d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Glego=C5=82a?= <35625949+KostkaBrukowa@users.noreply.github.com> Date: Fri, 26 Apr 2024 13:58:17 +0200 Subject: [PATCH] test --- .github/workflows/ci.yml | 5 +++++ e2e/plugin/utils/TSServer.ts | 2 +- package-lock.json | 2 +- package.json | 8 ++++---- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbf0e92..f4aad08 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,3 +32,8 @@ jobs: - run: npm i -D typescript@${{ matrix.typescript_version }} - run: npm run build - run: npm run test + - uses: actions/upload-artifact@v4 + with: + name: logs + path: e2e/**/ts.log + diff --git a/e2e/plugin/utils/TSServer.ts b/e2e/plugin/utils/TSServer.ts index 5d7466f..59e0141 100644 --- a/e2e/plugin/utils/TSServer.ts +++ b/e2e/plugin/utils/TSServer.ts @@ -35,7 +35,7 @@ export class TSServer { const server = fork(tsserverPath, { stdio: ['pipe', 'pipe', 'pipe', 'ipc'], cwd: projectPath, - // env: { TSS_LOG: '-logToFile true -file ./ts.log -level verbose' }, // creates tsserver log from tests + env: { TSS_LOG: '-logToFile true -file ./ts.log -level verbose' }, // creates tsserver log from tests }); this._exitPromise = new Promise((resolve, reject) => { server.on('exit', (code: string) => resolve(code)); diff --git a/package-lock.json b/package-lock.json index 1cadb82..d9a55aa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -40,7 +40,7 @@ "tmp-promise": "2.0.2", "ts-jest": "^29.1.2", "ts-node": "10.4.0", - "typescript": "5.2.2", + "typescript": "^5.2.2", "typescript-strict-plugin": "file:./", "which-module": "^2.0.0" } diff --git a/package.json b/package.json index 5f0ef7f..e31fb31 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ }, "jest": { "preset": "ts-jest", - "testTimeout": 300000, + "testTimeout": 30000, "roots": [ "src", "e2e" @@ -73,9 +73,9 @@ "tmp-promise": "2.0.2", "ts-jest": "^29.1.2", "ts-node": "10.4.0", - "typescript": "5.2.2", - "which-module": "^2.0.0", - "typescript-strict-plugin": "file:./" + "typescript": "^5.2.2", + "typescript-strict-plugin": "file:./", + "which-module": "^2.0.0" }, "lint-staged": { "*.(js|ts)": [