-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into fix/678/tooltip
- Loading branch information
Showing
114 changed files
with
1,492 additions
and
1,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
const { join } = require("path"); | ||
|
||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
jest.setTimeout(120000); // 2 min | ||
|
||
jest.setTimeout(420000); // 7 min | ||
// add all jest-extended matchers | ||
const matchers = require("jest-extended"); | ||
expect.extend(matchers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
import { | ||
getLogger as logger, | ||
ILogger, | ||
} from "@ui5-language-assistant/logic-utils"; | ||
|
||
const getPackageName = (): string => { | ||
let meta: { name: string }; | ||
try { | ||
meta = require("../../package.json"); | ||
} catch (e) { | ||
meta = require("../../../package.json"); | ||
} | ||
|
||
if (!meta) { | ||
return ""; | ||
} | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires -- Using `require` for .json file as this gets bundled with webpack correctly. | ||
return meta.name; | ||
}; | ||
import { getLogger as logger, ILogger } from "@ui5-language-assistant/logger"; | ||
import { PACKAGE_NAME } from "../constant"; | ||
|
||
export const getLogger = (): ILogger => { | ||
const name = getPackageName(); | ||
return logger(name); | ||
return logger(PACKAGE_NAME); | ||
}; |
Oops, something went wrong.