Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions docs/decisions/0010-upgrade-widget-extraction.md

This file was deleted.

3 changes: 0 additions & 3 deletions example.env.config.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import UnitTranslationPlugin from '@edx/unit-translation-selector-plugin';
import { upgradeWidgetConfig } from './src/widgets/upgrade/src/index';
import { PLUGIN_OPERATIONS, DIRECT_PLUGIN } from '@openedx/frontend-plugin-framework';

// Load environment variables from .env file
const config = {
...process.env,
SIDEBAR_WIDGETS: [upgradeWidgetConfig],

pluginSlots: {
unit_title_plugin: {
plugins: [
Expand Down
26 changes: 15 additions & 11 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,20 @@ const config = createConfig('jest', {

// delete config.testURL;

// NOTE: jest-console-group-reporter@1.1.1 uses @jest/reporters@^30 internally
// (via its peer dep resolution) but this project runs Jest 29, whose globalConfig
// uses testPathPattern (string) not testPathPatterns (object). When any worker
// exits uncleanly the reporter's SummaryReporter.onRunComplete crashes with
// "Cannot read properties of undefined (reading 'isSet')", causing a non-zero
// exit code even when all tests pass. Disabled until the package is updated for
// Jest 29/30 compatibility.
// config.reporters = [...(config.reporters || []), ["jest-console-group-reporter", {
// afterEachTest: { enable: true, filePaths: false, reportType: "details" },
// afterAllTests: { reportType: "summary", enable: true, filePaths: true },
// }]];
config.reporters = [...(config.reporters || []), ["jest-console-group-reporter", {
// change this setting if need to see less details for each test
// reportType: "summary" | "details",
// enable: true | false,
afterEachTest: {
enable: true,
filePaths: false,
reportType: "details",
},
afterAllTests: {
reportType: "summary",
enable: true,
filePaths: true,
},
}]];

module.exports = config;
Loading
Loading