Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d62b5d3
feat: added a generic creditPurchase Url logic (#675)
NoyanAziz Jun 30, 2025
7b366e3
feat: improve unenrollment process (#704)
mubbsharanwar Sep 3, 2025
17985f0
feat: added the ability for instances to use local translations fro…
jajjibhai008 Dec 3, 2025
1ab4d1e
fix(deps): remove filesize dependency (#767)
MaxFrank13 Mar 4, 2026
e593381
fix: update react-share to v5 (#795)
MaxFrank13 Mar 4, 2026
8939c92
fix(docs): use correct image for custom course banner (#796)
brian-smith-tcril Mar 4, 2026
7116ccc
fix: break circular dependency in site.config.test.tsx
arbrandes Mar 4, 2026
df5a00e
refactor: migrate from Redux to React Query
arbrandes Mar 4, 2026
7c82d40
fix: add staleTime to prevent excessive refetching
arbrandes Mar 4, 2026
b15aa3d
fix: remove redundant manual refetch on unenroll
arbrandes Mar 4, 2026
605eb40
fix: compute Date.now() per call instead of at module load
arbrandes Mar 4, 2026
e9316e9
fix: close modals only after mutation succeeds
arbrandes Mar 4, 2026
8d3d727
style: fix lint errors across migrated files
arbrandes Mar 4, 2026
6eb8373
fix: type GlobalDataContext to fix build
arbrandes Mar 5, 2026
4cb9aa3
fix: add @types/jest so ForkTsCheckerWebpackPlugin sees jest globals
arbrandes Mar 5, 2026
1d360db
perf: transform course data once in queryFn instead of per card
arbrandes Mar 4, 2026
4a38cf2
refactor: replace BackedDataProvider with React Query cache lookup
arbrandes Mar 4, 2026
5a93937
fix: use explicit initializeBase key for query invalidation
arbrandes Mar 4, 2026
c2618c5
fix: use smart retry that skips 4xx errors but retries server/network…
arbrandes Mar 4, 2026
4fd7435
refactor: separate mutation keys from query keys
arbrandes Mar 4, 2026
11755a8
refactor: replace useReducer with useState in context providers
arbrandes Mar 4, 2026
d69bbc5
test: add normal user happy path test for useInitializeLearnerHome
arbrandes Mar 4, 2026
1f109e1
style: fix lint errors in queryHooks test
arbrandes Mar 4, 2026
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
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ transifex_temp = ./temp/babel-plugin-formatjs

NPM_TESTS=build i18n_extract lint test

# Variables for additional translation sources and imports (define in edx-internal if needed)
ATLAS_EXTRA_SOURCES ?=
ATLAS_EXTRA_INTL_IMPORTS ?=
ATLAS_OPTIONS ?=

.PHONY: test
test: $(addprefix test.npm.,$(NPM_TESTS)) ## validate ci suite

Expand Down Expand Up @@ -60,9 +65,10 @@ pull_translations:
&& atlas pull $(ATLAS_OPTIONS) \
translations/frontend-base/src/i18n/messages:frontend-base \
translations/paragon/src/i18n/messages:paragon \
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard
translations/frontend-app-learner-dashboard/src/i18n/messages:frontend-app-learner-dashboard \
$(ATLAS_EXTRA_SOURCES)

$(intl_imports) frontend-base paragon frontend-app-learner-dashboard
$(intl_imports) frontend-base paragon frontend-app-learner-dashboard $(ATLAS_EXTRA_INTL_IMPORTS)

# This target is used by CI.
validate-no-uncommitted-package-lock-changes:
Expand Down
11 changes: 5 additions & 6 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
const { createConfig } = require('@openedx/frontend-base/tools');

module.exports = createConfig('test', {
const config = createConfig('test', {
setupFilesAfterEnv: [
'jest-expect-message',
'<rootDir>/src/setupTest.jsx',
],
coveragePathIgnorePatterns: [
'src/segment.js',
'src/postcss.config.js',
'testUtils', // don't unit test jest mocking tools
'src/data/services/lms/fakeData', // don't unit test mock data
'src/test', // don't unit test integration test utils
'src/__mocks__',
],
moduleNameMapper: {
// Asset mocks
'\\.svg$': '<rootDir>/src/__mocks__/svg.js',
'\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/src/__mocks__/file.js',
'\\.png$': '<rootDir>/src/__mocks__/file.js',
'^@src/(.*)$': '<rootDir>/src/$1',
},
testTimeout: 120000,
});

module.exports = config;
Loading