|
@@ -13,7 +13,7 @@
|
|
|
"test:unit:all": "npm run test:unit:run_dir -- test/unit/src modules/*/test/unit/src",
|
|
"test:unit:all": "npm run test:unit:run_dir -- test/unit/src modules/*/test/unit/src",
|
|
|
"test:unit:all:silent": "npm run test:unit:all -- --reporter dot",
|
|
"test:unit:all:silent": "npm run test:unit:all -- --reporter dot",
|
|
|
"test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
|
|
"test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
|
|
|
- "test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js test/frontend modules/*/test/frontend",
|
|
|
|
|
|
|
+ "test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,ts,tsx}' test/frontend modules/*/test/frontend",
|
|
|
"test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
|
|
"test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
|
|
|
"test:karma": "karma start",
|
|
"test:karma": "karma start",
|
|
|
"test:karma:single": "karma start --no-auto-watch --single-run",
|
|
"test:karma:single": "karma start --no-auto-watch --single-run",
|
|
@@ -33,6 +33,8 @@
|
|
|
"migrations": "east",
|
|
"migrations": "east",
|
|
|
"storybook": "start-storybook -p 6006",
|
|
"storybook": "start-storybook -p 6006",
|
|
|
"convert-themes": "node modules/source-editor/frontend/js/themes/convert.js",
|
|
"convert-themes": "node modules/source-editor/frontend/js/themes/convert.js",
|
|
|
|
|
+ "cypress:open-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress open-ct",
|
|
|
|
|
+ "cypress:run-ct": "SHARELATEX_CONFIG=$PWD/config/settings.webpack.js cypress run-ct",
|
|
|
"routes": "bin/routes"
|
|
"routes": "bin/routes"
|
|
|
},
|
|
},
|
|
|
"browserslist": [
|
|
"browserslist": [
|
|
@@ -208,10 +210,14 @@
|
|
|
},
|
|
},
|
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
"@babel/register": "^7.14.5",
|
|
"@babel/register": "^7.14.5",
|
|
|
|
|
+ "@cypress/react": "^5.12.1",
|
|
|
|
|
+ "@cypress/webpack-preprocessor": "^5.11.1",
|
|
|
|
|
+ "@cypress/webpack-dev-server": "^1.8.0",
|
|
|
"@juggle/resize-observer": "^3.3.1",
|
|
"@juggle/resize-observer": "^3.3.1",
|
|
|
"@storybook/addon-a11y": "^6.4.19",
|
|
"@storybook/addon-a11y": "^6.4.19",
|
|
|
"@storybook/addon-essentials": "^6.4.19",
|
|
"@storybook/addon-essentials": "^6.4.19",
|
|
|
"@storybook/react": "^6.4.19",
|
|
"@storybook/react": "^6.4.19",
|
|
|
|
|
+ "@testing-library/cypress": "^8.0.2",
|
|
|
"@testing-library/dom": "^7.31.2",
|
|
"@testing-library/dom": "^7.31.2",
|
|
|
"@testing-library/react": "^11.2.7",
|
|
"@testing-library/react": "^11.2.7",
|
|
|
"@testing-library/react-hooks": "^7.0.0",
|
|
"@testing-library/react-hooks": "^7.0.0",
|
|
@@ -239,6 +245,7 @@
|
|
|
"content-disposition": "^0.5.0",
|
|
"content-disposition": "^0.5.0",
|
|
|
"copy-webpack-plugin": "^5.1.1",
|
|
"copy-webpack-plugin": "^5.1.1",
|
|
|
"css-loader": "^3.5.2",
|
|
"css-loader": "^3.5.2",
|
|
|
|
|
+ "cypress": "^9.5.1",
|
|
|
"es6-promise": "^4.2.8",
|
|
"es6-promise": "^4.2.8",
|
|
|
"escodegen": "^2.0.0",
|
|
"escodegen": "^2.0.0",
|
|
|
"eslint": "^8.9.0",
|
|
"eslint": "^8.9.0",
|
|
@@ -247,6 +254,7 @@
|
|
|
"eslint-config-standard-jsx": "^11.0.0-0",
|
|
"eslint-config-standard-jsx": "^11.0.0-0",
|
|
|
"eslint-plugin-chai-expect": "^2.2.0",
|
|
"eslint-plugin-chai-expect": "^2.2.0",
|
|
|
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
|
|
|
+ "eslint-plugin-cypress": "^2.12.1",
|
|
|
"eslint-plugin-import": "^2.25.3",
|
|
"eslint-plugin-import": "^2.25.3",
|
|
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
|
"eslint-plugin-mocha": "^9.0.0",
|
|
"eslint-plugin-mocha": "^9.0.0",
|