Skip to content

Commit 23d11b1

Browse files
authored
Merge branch 'master' into kh/add-career-link-to-user-dropdown
2 parents 8eeea39 + 8c29abd commit 23d11b1

File tree

15 files changed

+16149
-40570
lines changed

15 files changed

+16149
-40570
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ on:
1111
jobs:
1212
tests:
1313
runs-on: ubuntu-20.04
14-
strategy:
15-
matrix:
16-
node: [16]
1714
steps:
1815
- name: Checkout
19-
uses: actions/checkout@v2
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Nodejs Env
19+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
2020

2121
- name: Setup Nodejs
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v3
2323
with:
24-
node-version: ${{ matrix.node }}
24+
node-version: ${{ env.NODE_VER }}
2525

2626
- name: Install dependencies
2727
run: npm ci

.github/workflows/lockfileversion-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ on:
1010

1111
jobs:
1212
version-check:
13-
uses: edx/.github/.github/workflows/lockfileversion-check.yml@master
13+
uses: edx/.github/.github/workflows/lockfileversion-check-v3.yml@master

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ jobs:
1010
runs-on: ubuntu-20.04
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
with:
1515
fetch-depth: 0
1616

17+
- name: Setup Nodejs Env
18+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
19+
1720
- name: Setup Node.js
18-
uses: actions/setup-node@v2
21+
uses: actions/setup-node@v3
1922
with:
20-
node-version: 12
23+
node-version: ${{ env.NODE_VER }}
2124

2225
- name: Install dependencies
2326
run: npm ci

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.15

package-lock.json

Lines changed: 16107 additions & 40536 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"whatwg-fetch": "^3.6.2"
7878
},
7979
"devDependencies": {
80-
"@edx/frontend-build": "11.0.1",
80+
"@edx/frontend-build": "12.8.27",
8181
"@edx/reactifex": "^2.1.1",
8282
"@testing-library/jest-dom": "^5.14.1",
8383
"@testing-library/react": "^12.1.0",
@@ -91,6 +91,6 @@
9191
"react-dev-utils": "^11.0.4",
9292
"react-test-renderer": "^16.14.0",
9393
"redux-mock-store": "^1.5.4",
94-
"semantic-release": "^17.4.5"
94+
"semantic-release": "^20.1.3"
9595
}
9696
}

src/containers/CourseCard/components/CourseCardBanners/CourseBanner.jsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,9 @@ export const CourseBanner = ({ cardId }) => {
3636
<Banner>
3737
{formatMessage(messages.auditAccessExpired)}
3838
{' '}
39-
{
40-
<Hyperlink isInline destination="">
41-
{formatMessage(messages.findAnotherCourse)}
42-
</Hyperlink>
43-
}
39+
<Hyperlink isInline destination="">
40+
{formatMessage(messages.findAnotherCourse)}
41+
</Hyperlink>
4442
</Banner>
4543
))}
4644

src/containers/CourseCard/components/RelatedProgramsBadge/hooks.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ const cardId = 'test-card-id';
1717
const state = new MockUseState(hooks);
1818
const numPrograms = 27;
1919

20-
const { formatMessage } = useIntl();
21-
2220
describe('RelatedProgramsBadge hooks', () => {
21+
const { formatMessage } = useIntl();
2322
let out;
2423
describe('state values', () => {
2524
state.testGetter(state.keys.isOpen);

src/containers/MasqueradeBar/hooks.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('MasqueradeBar hooks', () => {
3131
isMasqueradingPending: false,
3232
masqueradeErrorStatus: null,
3333
};
34-
const createHook = (masqueradeData = {}, user) => {
34+
const createHook = (masqueradeData = {}, user = undefined) => {
3535
reduxHooks.useMasqueradeData.mockReturnValueOnce({
3636
...defaultMasqueradeData,
3737
...masqueradeData,

src/containers/SelectSessionModal/hooks.test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ const entitlementData = {
6161
uuid,
6262
};
6363

64-
const { formatMessage } = useIntl();
65-
6664
const testValue = 'test-value';
6765

6866
const courseId = 'test-course-id';
@@ -125,6 +123,7 @@ describe('SelectSessionModal hooks', () => {
125123
});
126124

127125
describe('output', () => {
126+
const { formatMessage } = useIntl();
128127
describe('selectedSession', () => {
129128
it('defaults to current courseId if enrolled', () => {
130129
expect(out.selectedSession).toEqual(courseId);

0 commit comments

Comments
 (0)