From 4c9ee8feef056f77bf08d933b29cd05eae647657 Mon Sep 17 00:00:00 2001 From: Fabrizio Antonangeli Date: Thu, 18 Nov 2021 18:10:13 +0100 Subject: [PATCH 1/2] Fix tsconfig.json to build test/commands folder --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 47227782..d4ab58c5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -28,6 +28,6 @@ }, "include": [ "src/**.ts", - "test/**.ts" + "test/**/*.ts" ] } From 1460b9687bbfb60c2df99da1d70dd6cf5dd52226 Mon Sep 17 00:00:00 2001 From: Fabrizio Antonangeli Date: Thu, 18 Nov 2021 18:10:30 +0100 Subject: [PATCH 2/2] Fixed imports file extensions --- test/commands/logout.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/commands/logout.ts b/test/commands/logout.ts index 741dc878..7d56cfca 100644 --- a/test/commands/logout.ts +++ b/test/commands/logout.ts @@ -3,9 +3,9 @@ import {spawnSync} from 'child_process'; import fs from 'fs-extra'; import {after, before, beforeEach, describe, it} from 'mocha'; -import {hasOauthClientSettings} from '../../src/utils'; -import {CLASP, CLASP_PATHS, FAKE_CLASPRC} from '../constants'; -import {backupSettings, cleanup, restoreSettings, setup} from '../functions'; +import {hasOauthClientSettings} from '../../src/utils.js'; +import {CLASP, CLASP_PATHS, FAKE_CLASPRC} from '../constants.js'; +import {backupSettings, cleanup, restoreSettings, setup} from '../functions.js'; describe('Test clasp logout function', () => { before(setup);