|
48 | 48 | "watch:extension": "npm run compile:extension -- -watch", |
49 | 49 | "watch:extension-bundles": "webpack --mode development --info-verbosity verbose --watch", |
50 | 50 | "pretest": "npm run compile && cross-env MONGODB_VERSION=4.2.3 mongodb-runner start --port=27018", |
51 | | - "test": "cross-env NODE_OPTIONS=--no-force-async-hooks-checks xvfb-maybe node ./out/test/runTest.js", |
| 51 | + "test": "npm run test-webview && npm run test-extension", |
| 52 | + "test-extension": "cross-env NODE_OPTIONS=--no-force-async-hooks-checks xvfb-maybe node ./out/test/runTest.js", |
| 53 | + "test-webview": "jest", |
52 | 54 | "posttest": "mongodb-runner stop --port=27018", |
53 | 55 | "vscode:prepublish": "npm run clean && npm run compile:keyfile && npm run compile:resources && webpack --mode production", |
54 | 56 | "check": "mongodb-js-precommit './src/**/*{.ts}'", |
|
818 | 820 | "@fortawesome/fontawesome-svg-core": "^1.2.28", |
819 | 821 | "@fortawesome/free-solid-svg-icons": "^5.13.0", |
820 | 822 | "@fortawesome/react-fontawesome": "^0.1.9", |
821 | | - "@leafygreen-ui/toggle": "^3.0.1", |
| 823 | + "@leafygreen-ui/toggle": "3.0.1", |
822 | 824 | "@mongosh/browser-runtime-electron": "^0.4.2", |
823 | 825 | "@mongosh/service-provider-server": "^0.4.2", |
824 | 826 | "@mongosh/shell-api": "^0.4.2", |
|
852 | 854 | "@types/chai-json-schema": "^1.4.5", |
853 | 855 | "@types/debug": "^4.1.5", |
854 | 856 | "@types/glob": "^7.1.1", |
| 857 | + "@types/jest": "^26.0.14", |
855 | 858 | "@types/keytar": "4.4.2", |
856 | | - "@types/mocha": "^7.0.1", |
857 | | - "@types/node": "^14.11.2", |
| 859 | + "@types/mocha": "^8.0.3", |
| 860 | + "@types/node": "^14.11.5", |
858 | 861 | "@types/react": "^16.9.25", |
859 | 862 | "@types/react-dom": "^16.9.5", |
860 | 863 | "@types/sinon": "^9.0.1", |
|
869 | 872 | "chai-json-schema": "^1.5.1", |
870 | 873 | "cross-env": "^7.0.2", |
871 | 874 | "css-loader": "^3.4.2", |
| 875 | + "enzyme": "^3.11.0", |
| 876 | + "enzyme-adapter-react-16": "^1.15.5", |
872 | 877 | "eslint": "^6.8.0", |
873 | 878 | "eslint-config-mongodb-js": "^5.0.3", |
874 | 879 | "eslint-plugin-react": "^7.19.0", |
875 | 880 | "glob": "^7.1.6", |
| 881 | + "jest": "^26.5.2", |
| 882 | + "jest-junit": "^12.0.0", |
| 883 | + "jest-transform-stub": "^2.0.0", |
876 | 884 | "less": "^3.11.1", |
877 | 885 | "less-loader": "^5.0.0", |
878 | 886 | "meow": "^6.0.1", |
879 | 887 | "mkdirp": "^1.0.4", |
880 | | - "mocha": "^7.0.1", |
| 888 | + "mocha": "^8.1.3", |
881 | 889 | "mocha-junit-reporter": "^1.23.3", |
882 | 890 | "mocha-multi": "^1.1.3", |
883 | 891 | "mongodb-ace-autocompleter": "^0.4.11", |
|
887 | 895 | "npm-run-all": "^4.1.5", |
888 | 896 | "ora": "^4.0.3", |
889 | 897 | "postcss-loader": "^3.0.0", |
| 898 | + "react-test-renderer": "^16.13.1", |
890 | 899 | "sinon": "^9.0.0", |
891 | 900 | "sinon-chai": "^3.5.0", |
892 | 901 | "style-loader": "^1.1.3", |
| 902 | + "ts-jest": "^26.4.1", |
893 | 903 | "ts-loader": "^6.2.2", |
894 | 904 | "ts-node": "^8.6.2", |
895 | | - "typescript": "^3.9.7", |
| 905 | + "typescript": "^4.0.3", |
896 | 906 | "vsce": "^1.81.1", |
897 | 907 | "vscode-test": "^1.3.0", |
898 | 908 | "webpack": "^4.42.0", |
|
0 commit comments