-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix babel-loader using resolve * fix all loaders * fix test:umd for design-tokens * fix jest script * add jest-cli to scripts-core * add types to assets-api, add babel-core to icons * fix babel config * fix babel config using resolve + fix all extends * try to fix babel for angularjs-annotate * remove @types/enzyme, add @types/jest to flow-designer + more missign deps * add missing deps * fix flow-designer test * fix test-setup * add tsconfig.build.json to components and flow-designer * fix components * fix package stepper * fix jest mock * chore: pnpm-deduplicate * fix test in dynamic-cdn and scripts-core * Remove ref to icons in assets-api remove ref to config-jest in design-token * chore: pnpm-deduplicate * fix pnpm version * fix design-tokens * stream tests * add missing jest + reduce usage of cache in GHA * remove stream and --frozen-lockfile for test * add console.log * try to fix test in dynamic-cdn-webpack-plugin * revert change in dynamic-cdn-plugin --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
9bc0d00
commit f305cfb
Showing
81 changed files
with
481 additions
and
327 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
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,13 @@ | ||
# How to run github action locally | ||
|
||
Use the cli ACT: https://github.com/nektos/act | ||
|
||
# How to run PR-TEST | ||
|
||
```bash | ||
act pull_request -j build -W .github/workflows/pr-test.yml | ||
``` | ||
|
||
```bash | ||
act --container-architecture linux/amd64 pull_request -j build -W .github/workflows/pr-test.yml | ||
``` |
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
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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
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,7 +1,6 @@ | ||
import readPackageUp from 'read-pkg-up'; | ||
import assetsApi, { Asset } from '.'; | ||
|
||
const iconsInfo = readPackageUp.sync({ cwd: require.resolve('@talend/icons') }); | ||
const currentInfo = readPackageUp.sync({ cwd: __dirname }); | ||
const bundlePath = '/dist/svg-bundles/all.svg'; | ||
|
||
|
@@ -12,17 +11,15 @@ describe('assets-api', () => { | |
}); | ||
|
||
it('should return unpkg url', () => { | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', iconsInfo?.packageJson.version); | ||
expect(url).toBe( | ||
`https://unpkg.com/@talend/icons@${iconsInfo?.packageJson.version}${bundlePath}`, | ||
); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', '6.60.1'); | ||
expect(url).toBe(`https://unpkg.com/@talend/[email protected]${bundlePath}`); | ||
}); | ||
|
||
it('should return /cdn url', () => { | ||
const original = window.Talend.CDN_URL; | ||
window.Talend.CDN_URL = '/cdn'; | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', iconsInfo?.packageJson.version); | ||
expect(url).toBe(`/cdn/@talend/icons/${iconsInfo?.packageJson.version}${bundlePath}`); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', '6.60.1'); | ||
expect(url).toBe(`/cdn/@talend/icons/6.60.1${bundlePath}`); | ||
window.Talend.CDN_URL = original; | ||
}); | ||
|
||
|
@@ -33,8 +30,8 @@ describe('assets-api', () => { | |
getAttribute: jest.fn().mockReturnValueOnce('/'), | ||
} as unknown as Element; | ||
jest.spyOn(document, 'querySelector').mockImplementation(() => mockedBaseElement); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', iconsInfo?.packageJson.version); | ||
expect(url).toBe(`/cdn/@talend/icons/${iconsInfo?.packageJson.version}${bundlePath}`); | ||
const url = assetsApi.getURL(bundlePath, '@talend/icons', '6.60.1'); | ||
expect(url).toBe(`/cdn/@talend/icons/6.60.1${bundlePath}`); | ||
window.Talend.CDN_URL = original; | ||
}); | ||
|
||
|
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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.json", | ||
"exclude": ["src/**/*.test.*", "src/**/*.stories.*", "stories"] | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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,3 @@ | ||
module.exports = { | ||
testRegex: '(/__tests__/.*|src/|scripts/).*\\.test.(js|ts|tsx)$', | ||
}; |
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,3 +1,3 @@ | ||
{ | ||
"extends": "@talend/scripts-config-babel/.babelrc.json" | ||
"extends": "@talend/scripts-config-babel/babel.config.js" | ||
} |
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.