* Adding testing-library dependencies, and bumping frontend-build to be compatible with them. * Adding a function to initialize the redux store We need to use it in a few places. Seems worth not-repeating, since they can easily get out of sync. In general, tests should only test the parts of the store they care about, as well. * Adding function to initialize a mock application. Ultimately I’d like to move this to frontend-platform as an alternative to ‘initialize’ for tests. ‘initialize’ is an async function which complicates matters. * Using more explicit assertions for courseware reducer fields. This removes the need for the snapshot file, and ensures our test is more resilient to unrelated changes in the store. Also added a few more stages of assertions to some of the tests, showing that they have the right values over time. * Adding a helper to build a simple course blocks response. We can use this in the courseware data tests, and shortly in the tests for CoursewareContainer. * Modifying sequenceMetadata factory to allow multiple units. This will help us test sequence navigation’s behavior more fully by having multiple units in a sequence. * A little linting and cleanup. * Adding first round of tests for CoursewareContainer. Tests loading, sequence navigation/unit rendering, and ‘denied’ states. Subsequent tests will add tests for handlers.
76 lines
2.2 KiB
JSON
76 lines
2.2 KiB
JSON
{
|
|
"name": "@edx/frontend-app-learning",
|
|
"version": "1.0.0-semantically-released",
|
|
"description": "Frontend learning application.",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/edx/frontend-app-learning.git"
|
|
},
|
|
"browserslist": [
|
|
"last 2 versions",
|
|
"ie 11"
|
|
],
|
|
"scripts": {
|
|
"build": "fedx-scripts webpack",
|
|
"i18n_extract": "BABEL_ENV=i18n fedx-scripts babel src --quiet > /dev/null",
|
|
"is-es5": "es-check es5 ./dist/*.js",
|
|
"lint": "fedx-scripts eslint --ext .js --ext .jsx .",
|
|
"snapshot": "fedx-scripts jest --updateSnapshot",
|
|
"start": "fedx-scripts webpack-dev-server --progress",
|
|
"test": "fedx-scripts jest --coverage --passWithNoTests"
|
|
},
|
|
"husky": {
|
|
"hooks": {
|
|
"pre-commit": "npm run lint"
|
|
}
|
|
},
|
|
"author": "edX",
|
|
"license": "AGPL-3.0",
|
|
"homepage": "https://github.com/edx/frontend-app-learning#readme",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/edx/frontend-app-learning/issues"
|
|
},
|
|
"dependencies": {
|
|
"@edx/frontend-component-footer": "^10.0.6",
|
|
"@edx/frontend-component-header": "^2.0.3",
|
|
"@edx/frontend-platform": "^1.5.1",
|
|
"@edx/paragon": "^7.2.1",
|
|
"@fortawesome/fontawesome-svg-core": "^1.2.26",
|
|
"@fortawesome/free-brands-svg-icons": "^5.12.0",
|
|
"@fortawesome/free-regular-svg-icons": "^5.12.0",
|
|
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
|
"@fortawesome/react-fontawesome": "^0.1.8",
|
|
"@reduxjs/toolkit": "^1.2.3",
|
|
"classnames": "^2.2.6",
|
|
"core-js": "^3.6.2",
|
|
"prop-types": "^15.7.2",
|
|
"react": "^16.12.0",
|
|
"react-break": "^1.3.2",
|
|
"react-dom": "^16.12.0",
|
|
"react-helmet": "6.0.0",
|
|
"react-redux": "^7.1.3",
|
|
"react-router": "^5.1.2",
|
|
"react-router-dom": "^5.1.2",
|
|
"react-share": "^4.1.0",
|
|
"redux": "^4.0.5",
|
|
"regenerator-runtime": "^0.13.3"
|
|
},
|
|
"devDependencies": {
|
|
"@edx/frontend-build": "^5.0.6",
|
|
"@testing-library/dom": "^7.16.2",
|
|
"@testing-library/jest-dom": "^5.10.1",
|
|
"@testing-library/react": "^10.3.0",
|
|
"axios-mock-adapter": "^1.18.1",
|
|
"codecov": "^3.6.1",
|
|
"es-check": "^5.1.0",
|
|
"glob": "^7.1.6",
|
|
"husky": "^3.1.0",
|
|
"jest": "^24.9.0",
|
|
"reactifex": "^1.1.1",
|
|
"rosie": "^2.0.1"
|
|
}
|
|
}
|