forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(theme): allow recursive partial theme (opensearch-project#239)
* build(tsconfig): update tsconfigs to extend from a base config The main tsconfig.json is what vscode uses to parse ts files. Adding a global type would not available in excluded test files. Extended base tsconfig to current match current build config. * feat(theme): allow recursive partial themes Allow recursive partial themes to be passed to the Setting component. Added RecursivePartial global type. Issue opensearch-project#201 * test(settings): add tests for partial theme to settings component * refactor: global type inclusion and story config Moved global type to be utils. Updated storybook config with custom tsconfig file. * refactor: remove enum declaration
- Loading branch information
1 parent
c756217
commit 64e9451
Showing
17 changed files
with
650 additions
and
460 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 |
---|---|---|
|
@@ -3,5 +3,8 @@ | |
"compilerOptions": { | ||
"downlevelIteration": true, | ||
"target": "es5" | ||
} | ||
}, | ||
"exclude": [ | ||
"../**/*.test.*" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": "../tsconfig", | ||
"exclude": ["../**/*.test.*"] | ||
} |
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,6 +1,15 @@ | ||
{ | ||
"roots": ["<rootDir>/src"], | ||
"roots": [ | ||
"<rootDir>/src" | ||
], | ||
"preset": "ts-jest", | ||
"testEnvironment": "jest-environment-jsdom-fourteen", | ||
"setupFilesAfterEnv": ["<rootDir>/scripts/setup_enzyme.ts"] | ||
"setupFilesAfterEnv": [ | ||
"<rootDir>/scripts/setup_enzyme.ts" | ||
], | ||
"globals": { | ||
"ts-jest": { | ||
"tsConfig": "tsconfig.jest.json" | ||
} | ||
} | ||
} |
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
Oops, something went wrong.