Fix: assorted next fixes (#42634)
* chore: fix slightly broken package.json * fix: update children type * fix: make size optional for Spacer * fix: correct broken env import * test: update snapshot and fix typing * test: fix imports and remove old snapshot
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
de888d640c
commit
d87b472ee7
21664
client/package-lock.json
generated
Normal file
21664
client/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
163
client/package.json
Normal file
163
client/package.json
Normal file
@ -0,0 +1,163 @@
|
||||
{
|
||||
"name": "@freecodecamp/client",
|
||||
"version": "0.0.1",
|
||||
"description": "The freeCodeCamp.org open-source codebase and curriculum",
|
||||
"license": "BSD-3-Clause",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">= 14.0.0",
|
||||
"npm": "^6.14.12"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
|
||||
},
|
||||
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
|
||||
"author": "freeCodeCamp <team@freecodecamp.org>",
|
||||
"main": "none",
|
||||
"scripts": {
|
||||
"prebuild": "node ../tools/scripts/build/ensure-env.js && npm run build:workers -- --env production",
|
||||
"build": "node --max_old_space_size=7168 node_modules/gatsby-cli build --prefix-paths",
|
||||
"build:workers": "node --max_old_space_size=7168 node_modules/webpack-cli/bin/cli --config ./webpack-workers.js",
|
||||
"clean": "gatsby clean",
|
||||
"predevelop": "node ../tools/scripts/build/ensure-env.js && npm run build:workers -- --env development",
|
||||
"develop": "node --max_old_space_size=4000 node_modules/gatsby-cli develop --inspect=9230",
|
||||
"format": "npm run format:gatsby && npm run format:src && npm run format:utils",
|
||||
"format:gatsby": "prettier-eslint --write --trailing-comma none --single-quote './gatsby-*.js'",
|
||||
"format:src": "prettier-eslint --write --trailing-comma none --single-quote './src/**/*.js'",
|
||||
"format:utils": "prettier-eslint --write --trailing-comma none --single-quote './utils/**/*.js'",
|
||||
"lint": "node ./i18n/schema-validation.js",
|
||||
"serve": "gatsby serve -p 8000",
|
||||
"prestand-alone": "npm run prebuild",
|
||||
"stand-alone": "gatsby develop",
|
||||
"validate-keys": "node ./i18n/validate-keys.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/plugin-proposal-export-default-from": "7.14.5",
|
||||
"@babel/plugin-proposal-function-bind": "7.14.5",
|
||||
"@babel/polyfill": "7.12.1",
|
||||
"@babel/preset-env": "7.14.7",
|
||||
"@babel/preset-react": "7.14.5",
|
||||
"@babel/standalone": "7.14.7",
|
||||
"@fortawesome/fontawesome": "1.1.8",
|
||||
"@fortawesome/fontawesome-svg-core": "1.2.35",
|
||||
"@fortawesome/free-brands-svg-icons": "5.15.3",
|
||||
"@fortawesome/free-solid-svg-icons": "5.15.3",
|
||||
"@fortawesome/react-fontawesome": "0.1.14",
|
||||
"@freecodecamp/loop-protect": "2.2.1",
|
||||
"@freecodecamp/react-bootstrap": "0.32.3",
|
||||
"@freecodecamp/react-calendar-heatmap": "1.0.0",
|
||||
"@freecodecamp/strip-comments": "3.0.0",
|
||||
"@loadable/component": "5.15.0",
|
||||
"@reach/router": "1.3.4",
|
||||
"algoliasearch": "4.9.3",
|
||||
"assert": "2.0.0",
|
||||
"babel-plugin-preval": "5.0.0",
|
||||
"babel-plugin-prismjs": "2.0.1",
|
||||
"bezier-easing": "2.1.0",
|
||||
"browser-cookies": "1.2.0",
|
||||
"buffer": "6.0.3",
|
||||
"chai": "4.3.4",
|
||||
"crypto-browserify": "3.12.0",
|
||||
"csrf": "3.1.0",
|
||||
"date-fns": "2.22.1",
|
||||
"dedent": "0.7.0",
|
||||
"enzyme": "3.11.0",
|
||||
"enzyme-adapter-react-16": "1.15.6",
|
||||
"final-form": "4.20.2",
|
||||
"gatsby": "3.8.0",
|
||||
"gatsby-cli": "3.8.0",
|
||||
"gatsby-plugin-advanced-sitemap": "1.6.0",
|
||||
"gatsby-plugin-create-client-paths": "3.8.0",
|
||||
"gatsby-plugin-manifest": "3.8.0",
|
||||
"gatsby-plugin-postcss": "4.8.0",
|
||||
"gatsby-plugin-react-helmet": "4.8.0",
|
||||
"gatsby-plugin-remove-serviceworker": "1.0.0",
|
||||
"gatsby-remark-prismjs": "5.5.0",
|
||||
"gatsby-source-filesystem": "3.8.0",
|
||||
"gatsby-transformer-remark": "4.5.0",
|
||||
"i18next": "20.3.2",
|
||||
"jquery": "3.6.0",
|
||||
"lodash": "4.17.21",
|
||||
"lodash-es": "4.17.21",
|
||||
"monaco-editor": "0.25.2",
|
||||
"nanoid": "3.1.23",
|
||||
"normalize-url": "4.5.1",
|
||||
"path-browserify": "1.0.1",
|
||||
"postcss": "8.3.5",
|
||||
"prismjs": "1.23.0",
|
||||
"process": "0.11.10",
|
||||
"prop-types": "15.7.2",
|
||||
"psl": "1.8.0",
|
||||
"query-string": "7.0.1",
|
||||
"react": "16.14.0",
|
||||
"react-dom": "16.14.0",
|
||||
"react-final-form": "6.5.3",
|
||||
"react-ga": "3.3.0",
|
||||
"react-helmet": "6.1.0",
|
||||
"react-hotkeys": "2.0.0",
|
||||
"react-i18next": "11.11.0",
|
||||
"react-instantsearch-dom": "6.11.1",
|
||||
"react-lazy-load": "3.1.13",
|
||||
"react-monaco-editor": "0.43.0",
|
||||
"react-redux": "5.1.2",
|
||||
"react-reflex": "4.0.1",
|
||||
"react-responsive": "6.1.2",
|
||||
"react-scrollable-anchor": "0.6.1",
|
||||
"react-spinkit": "3.0.0",
|
||||
"react-tooltip": "4.2.21",
|
||||
"react-transition-group": "4.4.2",
|
||||
"react-youtube": "7.13.1",
|
||||
"redux": "4.1.0",
|
||||
"redux-actions": "2.6.5",
|
||||
"redux-devtools-extension": "2.13.9",
|
||||
"redux-observable": "1.2.0",
|
||||
"redux-saga": "1.1.3",
|
||||
"reselect": "4.0.0",
|
||||
"rxjs": "6.6.7",
|
||||
"sanitize-html": "2.4.0",
|
||||
"sass.js": "0.11.1",
|
||||
"store": "2.0.12",
|
||||
"stream-browserify": "3.0.0",
|
||||
"typescript": "4.3.4",
|
||||
"uuid": "8.3.2",
|
||||
"validator": "13.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/types": "7.14.5",
|
||||
"@codesee/babel-plugin-instrument": "0.41.0",
|
||||
"@codesee/tracker": "0.41.0",
|
||||
"@testing-library/jest-dom": "5.14.1",
|
||||
"@testing-library/react": "11.2.7",
|
||||
"@types/jest": "^26.0.23",
|
||||
"@types/loadable__component": "^5.13.3",
|
||||
"@types/lodash-es": "^4.17.4",
|
||||
"@types/react-dom": "^17.0.8",
|
||||
"@types/react-helmet": "^6.1.1",
|
||||
"@types/react-instantsearch-dom": "^6.10.0",
|
||||
"@types/react-monaco-editor": "^0.16.0",
|
||||
"@types/react-redux": "^7.1.16",
|
||||
"@types/react-responsive": "^8.0.2",
|
||||
"@types/react-spinkit": "^3.0.6",
|
||||
"@types/react-test-renderer": "^17.0.1",
|
||||
"@types/react-transition-group": "4.4.1",
|
||||
"@types/redux-actions": "2.6.1",
|
||||
"@types/sanitize-html": "^2.3.1",
|
||||
"@types/store": "^2.0.2",
|
||||
"@types/validator": "^13.1.4",
|
||||
"autoprefixer": "10.2.6",
|
||||
"babel-plugin-transform-imports": "2.0.0",
|
||||
"chokidar": "3.5.2",
|
||||
"copy-webpack-plugin": "9.0.0",
|
||||
"gatsby-plugin-webpack-bundle-analyser-v2": "1.1.24",
|
||||
"jest-json-schema-extended": "1.0.0",
|
||||
"monaco-editor-webpack-plugin": "4.0.0",
|
||||
"react-test-renderer": "16.14.0",
|
||||
"redux-saga-test-plan": "4.0.1",
|
||||
"webpack": "5.40.0",
|
||||
"webpack-cli": "4.7.2"
|
||||
}
|
||||
}
|
@ -5,7 +5,7 @@ function FullWidthRow({
|
||||
children,
|
||||
className
|
||||
}: {
|
||||
children?: JSX.ElementChildrenAttribute;
|
||||
children?: JSX.Element[];
|
||||
className?: string;
|
||||
}): JSX.Element {
|
||||
return (
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
interface SpacerProps {
|
||||
size: number;
|
||||
size?: number;
|
||||
}
|
||||
|
||||
const styles = { padding: '15px 0', height: '1px' };
|
||||
|
@ -134,6 +134,14 @@ exports[`<Profile/> renders correctly 1`] = `
|
||||
@
|
||||
string
|
||||
</h2>
|
||||
|
||||
|
||||
<p
|
||||
class="bio text-center"
|
||||
>
|
||||
string
|
||||
</p>
|
||||
|
||||
<br />
|
||||
</div>
|
||||
<div
|
@ -15,7 +15,7 @@ import Link from '../../helpers/link';
|
||||
import './camper.css';
|
||||
|
||||
import { langCodes } from '../../../../../config/i18n/all-langs';
|
||||
import envData from '../../../../../config/env';
|
||||
import envData from '../../../../../config/env.json';
|
||||
|
||||
const { clientLocale } = envData;
|
||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
|
@ -2,7 +2,6 @@ import React from 'react';
|
||||
import { render } from '@testing-library/react';
|
||||
|
||||
import HeatMap from './HeatMap';
|
||||
import MockInstance = jest.MockInstance;
|
||||
|
||||
// offset is used to shift the dates so that the calendar renders (for testing
|
||||
// purposes only) the same way in each timezone.
|
||||
@ -19,7 +18,8 @@ props.calendar[date1] = 1;
|
||||
props.calendar[date2] = 1;
|
||||
props.calendar[date3] = 1;
|
||||
|
||||
let dateNowMockFn: MockInstance<any, any>;
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
let dateNowMockFn: jest.MockInstance<any, unknown[]>;
|
||||
|
||||
beforeEach(() => {
|
||||
dateNowMockFn = jest
|
||||
|
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import ShallowRenderer from 'react-test-renderer/shallow';
|
||||
import TestRenderer from 'react-test-renderer';
|
||||
|
||||
import Honesty from './Honesty';
|
||||
import Honesty from './honesty';
|
||||
import { Button } from '@freecodecamp/react-bootstrap';
|
||||
|
||||
describe('<Honesty />', () => {
|
||||
|
Reference in New Issue
Block a user