From 29f5582af5d67d15b84ddb6837a7b3f57d98ef02 Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Wed, 19 Jun 2019 04:17:11 -0700 Subject: [PATCH] build: disable must-use-promises check in ts_library tsetse for tests as... (#31325) ...tsetse now falsely asserting on some lines in a few tests such as packages/core/schematics/test/injectable_pipe_migration_spec.ts. ``` await runMigration(); expect(tree.readContent('/index.ts')) ``` it asserts that "await is required on promise" on the 2nd line when there is no promise there PR Close #31325 --- packages/tsconfig-test.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/tsconfig-test.json b/packages/tsconfig-test.json index 4a3d169d13..903117e846 100644 --- a/packages/tsconfig-test.json +++ b/packages/tsconfig-test.json @@ -5,6 +5,10 @@ "extends": "./tsconfig-build.json", "compilerOptions": { "types": ["node", "jasmine"], + "plugins": [{ + "name": "@bazel/tsetse", + "disabledRules": ["must-use-promises"], + }], }, "bazelOptions": { "suppressTsconfigOverrideWarnings": true,