From 381cb77ad948ff40c7ba15de53b4303fbf0dbe79 Mon Sep 17 00:00:00 2001 From: audric Date: Wed, 19 Jan 2022 10:59:55 +1100 Subject: [PATCH] fixup tsconfi complaining about playwright.config being above it --- package.json | 2 +- ts/test/automation/clean_up.ts | 3 +-- tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index edecf0226..d3a538905 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "tslint": "tslint --format stylish --project .", "format-full": "prettier --list-different --write \"*.{css,js,json,scss,ts,tsx}\" \"./**/*.{css,js,json,scss,ts,tsx}\"", "transpile": "tsc --incremental", - "transpile:watch": "tsc -w", + "transpile:watch": "yarn grunt --force; tsc -w", "integration-test": "mocha --recursive --exit --timeout 30000 \"./ts/test-integration/**/*.test.js\" \"./ts/test/*.test.js\"", "clean-transpile": "rimraf 'ts/**/*.js' 'ts/*.js' 'ts/*.js.map' 'ts/**/*.js.map' && rimraf tsconfig.tsbuildinfo;", "ready": "yarn clean-transpile; yarn grunt && yarn lint-full && yarn test", diff --git a/ts/test/automation/clean_up.ts b/ts/test/automation/clean_up.ts index b5c513e04..72f0e4c04 100644 --- a/ts/test/automation/clean_up.ts +++ b/ts/test/automation/clean_up.ts @@ -1,5 +1,4 @@ -import test, { _electron, Page } from '@playwright/test'; -import { getAppDataPath } from './open'; +import { _electron, Page } from '@playwright/test'; export const cleanUp = async (window: Page) => { await window.click('[data-testid=settings-section]'); diff --git a/tsconfig.json b/tsconfig.json index 6ca185694..720b9e59f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,7 @@ "sourceMap": true, // Generates corresponding '.map' file. // "outFile": "./", // Concatenate and emit output to single file. // "outDir": "./", // Redirect output structure to the directory. - "rootDir": "./ts", // Specify the root directory of input files. Use to control the output directory structure with --outDir. + "rootDir": "./", // Specify the root directory of input files. Use to control the output directory structure with --outDir. // "removeComments": true, // Do not emit comments to output. // "noEmit": true, // Do not emit outputs. // "importHelpers": true, // Import emit helpers from 'tslib'.