Skip to content

Commit

Permalink
feat: [RGInt-333] update package version and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ihor-romaniuk committed Jan 28, 2025
1 parent c3e496a commit 668ff64
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 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/',
],
};
1 change: 1 addition & 0 deletions config/webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path');
const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts');

const ParagonWebpackPlugin = require('../lib/plugins/paragon-webpack-plugin/ParagonWebpackPlugin');

const {
getParagonThemeCss,
getParagonCacheGroups,
Expand Down
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
8 changes: 4 additions & 4 deletions package-lock.json

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

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openedx/frontend-build",
"version": "1.0.0-semantically-released",
"name": "@raccoongang/frontend-build",
"version": "13.1.4-tokens.2",
"description": "Build tools, setup and config for frontend apps",
"publishConfig": {
"access": "public"
Expand All @@ -15,15 +15,15 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/openedx/frontend-build.git"
"url": "git+https://github.com/raccoongang/frontend-build.git"
},
"keywords": [],
"author": "Open edX Community",
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/openedx/frontend-build/issues"
"url": "https://github.com/raccoongang/frontend-build/issues"
},
"homepage": "https://github.com/openedx/frontend-build#readme",
"homepage": "https://github.com/raccoongang/frontend-build#readme",
"dependencies": {
"@babel/cli": "7.22.5",
"@babel/core": "7.22.5",
Expand Down

0 comments on commit 668ff64

Please sign in to comment.