Skip to content

Commit

Permalink
fix: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk committed Jan 22, 2025
1 parent 63a40fe commit b4a3930
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ if (fs.existsSync(appEnvConfigPath)) {
}

module.exports = {
testURL: 'http://localhost/',
testEnvironment: 'jsdom',
testEnvironmentOptions: {
url: 'http://localhost/',
},
setupFiles: [
path.resolve(__dirname, 'jest/setupTest.js'),
],
Expand Down Expand Up @@ -40,4 +43,7 @@ module.exports = {
},
],
},
watchPathIgnorePatterns: [
'/node_modules/',
],
};
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function injectParagonThemeVariantStylesheets({
* @return {Object} An object containing the URLs of the Paragon stylesheets.
*/
function getParagonStylesheetUrls({ paragonThemeUrls, paragonVersion, brandVersion }) {
const paragonCoreCssUrl = typeof paragonThemeUrls.core.urls === 'object' ? paragonThemeUrls.core.urls.default : paragonThemeUrls.core.url;
const brandCoreCssUrl = typeof paragonThemeUrls.core.urls === 'object' ? paragonThemeUrls.core.urls.brandOverride : undefined;
const paragonCoreCssUrl = typeof paragonThemeUrls?.core?.urls === 'object' ? paragonThemeUrls.core.urls.default : paragonThemeUrls.core.url;
const brandCoreCssUrl = typeof paragonThemeUrls?.core?.urls === 'object' ? paragonThemeUrls.core.urls.brandOverride : undefined;

const defaultThemeVariants = paragonThemeUrls.defaults || {};

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@raccoongang/frontend-build",
"version": "13.1.4-tokens.1",
"version": "13.1.4-tokens.2",
"description": "Build tools, setup and config for frontend apps",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit b4a3930

Please sign in to comment.