diff --git a/package.json b/package.json index 3af4c8c57840..d52d0de7f581 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "which": "^2.0.1" }, "scripts": { - "build-clean": "rimraf './packages/*/build' './packages/*/build-es5' './packages/*/tsconfig.tsbuildinfo'", + "build-clean": "rimraf './packages/*/build' './packages/*/tsconfig.tsbuildinfo'", "build": "yarn build:js && yarn build:ts", "build:js": "node ./scripts/build.js", "build:ts": "node ./scripts/buildTs.js", diff --git a/packages/expect/src/__tests__/fakeChalk.test.ts b/packages/expect/src/__tests__/fakeChalk.test.ts deleted file mode 100644 index 4fbb6cebef2f..000000000000 --- a/packages/expect/src/__tests__/fakeChalk.test.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -const fakeChalk = jest.requireActual('../fakeChalk'); - -describe('Fake Chalk', () => { - it('returns input when invoked', () => { - expect(fakeChalk.red('yo')).toEqual('yo'); - }); - - it('supports chaining', () => { - expect(fakeChalk.red.blue('yo')).toEqual('yo'); - }); -}); diff --git a/packages/expect/src/fakeChalk.ts b/packages/expect/src/fakeChalk.ts deleted file mode 100644 index 7bf89c0ad85c..000000000000 --- a/packages/expect/src/fakeChalk.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -import ansiStyles = require('ansi-styles'); - -const returnInput = (str: string) => str; - -const allColorsAsFunc = Object.keys(ansiStyles) - .map(style => ({[style]: returnInput})) - .reduce((acc, cur) => Object.assign(acc, cur)); - -Object.keys(allColorsAsFunc) - .map(color => allColorsAsFunc[color]) - .forEach(style => { - Object.assign(style, allColorsAsFunc); - Object.assign(returnInput, style); - }); - -export = allColorsAsFunc;