fix(NA): wrongly added include key on tsconfig.json for @kbn/monaco (#118210)

* fix(NA): wrongly added include key on tsconfig.json for @kbn/monaco

* fix(NA): @kbn/monaco structure to allow bazel build on windows
This commit is contained in:
Tiago Costa 2021-11-11 02:14:10 +00:00 committed by GitHub
parent 6d951fee69
commit 264bb7acdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -11,6 +11,7 @@ SOURCE_FILES = glob(
"src/**/*",
],
exclude = [
"**/__jest__",
"**/*.test.*",
"**/README.md",
],

View file

@ -33,8 +33,8 @@ const createMockModel = (ID: string) => {
return model;
};
jest.mock('../src/monaco_imports', () => {
const original = jest.requireActual('../src/monaco_imports');
jest.mock('../monaco_imports', () => {
const original = jest.requireActual('../monaco_imports');
const originalMonaco = original.monaco;
const originalEditor = original.monaco.editor;

View file

@ -5,11 +5,11 @@
* in compliance with, at your election, the Elastic License 2.0 or the Server
* Side Public License, v 1.
*/
import '../../__jest__/jest.mocks'; // Make sure this is the first import
import '../__jest__/jest.mocks'; // Make sure this is the first import
import { Subscription } from 'rxjs';
import { MockIModel } from '../../__jest__/types';
import { MockIModel } from '../__jest__/types';
import { LangValidation } from '../types';
import { monaco } from '../monaco_imports';
import { ID } from './constants';

View file

@ -14,6 +14,5 @@
},
"include": [
"src/**/*",
"__jest__/**/*",
]
}