Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set node version
uses: actions/setup-node@v4
with:
node-version: 20.11.1
node-version: 24.12.0
cache: 'npm'

- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Configure Node version and registry
uses: actions/setup-node@v4
with:
node-version: 18.16.1
node-version: 24.12.0
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Node version
uses: actions/setup-node@v4
with:
node-version: 18.16.1
node-version: 24.12.0
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.1
v24.12.0
6,912 changes: 3,657 additions & 3,255 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pretest": "npm run lint",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage .",
"test:cov": "jest --coverage",
"test:debug": "jest --inspect-brk --runInBand --no-cache",
"serve:local": "npx serve dist",
"predeploy": "npm run build",
Expand All @@ -27,7 +27,8 @@
},
"homepage": "https://cmsgov.github.io/qpp-submissions-docs",
"overrides": {
"react-day-picker": "^9.6.7"
"react-day-picker": "^9.6.7",
"glob": "^10.5.0"
},
"dependencies": {
"@cmsgov/design-system": "12.4.1",
Expand All @@ -48,27 +49,28 @@
},
"devDependencies": {
"@emotion/is-prop-valid": "1.3.1",
"@eslint/eslintrc": "3.1.0",
"@eslint/js": "9.11.1",
"@testing-library/jest-dom": "6.6.3",
"@eslint/eslintrc": "3.3.3",
"@eslint/js": "9.39.1",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.0",
"@testing-library/user-event": "14.6.1",
"@types/jest": "29.5.13",
"@types/jest": "^30.0.0",
"@types/node": "^20.11.25",
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"@types/react-router-hash-link": "2.4.9",
"@typescript-eslint/eslint-plugin": "8.7.0",
"@typescript-eslint/parser": "8.7.0",
"@typescript-eslint/eslint-plugin": "8.49.0",
"@typescript-eslint/parser": "8.49.0",
"browserslist": "4.23.0",
"browserslist-to-esbuild": "2.1.1",
"eslint": "9.11.1",
"gh-pages": "6.1.1",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"eslint": "9.39.1",
"gh-pages": "6.3.0",
"jest": "30.2.0",
"jest-environment-jsdom": "30.2.0",
"styled-components": "6.1.19",
"stylelint": "16.6.1",
"stylelint-config-standard-scss": "13.0.0",
"ts-jest": "29.2.5"
"ts-jest": "29.4.6"
},
"browserslist": {
"production": [
Expand All @@ -93,6 +95,7 @@
"modulePaths": [
"<rootDir>/src"
],
"coverageProvider": "v8",
"coverageDirectory": "<rootDir>/coverage",
"coverageReporters": [
"text",
Expand Down
14 changes: 14 additions & 0 deletions src/app/components/app.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,20 @@ import { CodeTab, ICodeTab } from '../../shared/code-tab';
import NotFound from './notFound/not-found';

describe('App tests', () => {
beforeAll(() => {
// Mock window.scroll which is not implemented in JSDOM
Object.defineProperty(window, "scroll", {
value: jest.fn(),
writable: true,
});

// Also mock scrollTo in case it's used
Object.defineProperty(window, "scrollTo", {
value: jest.fn(),
writable: true,
});
});

afterAll(() => {
jest.clearAllMocks();
});
Expand Down
2 changes: 1 addition & 1 deletion src/shared/code-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const checkPreForHTML = (code: string) =>
fontFamily: 'Menlo,Monaco,Consolas,"Courier New",monospace',
fontSize: '0.9rem',
}}
copied={true}
copied={false}
wrapLongLines={true}
onCopy={()=>{ return; }}
/>
Expand Down
Loading