X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fpackage.json;h=12da38175bb777be9b27bd9d998306f97d14720b;hb=348106f20cb0be6406b5b71bc0325b981ed74be9;hp=281fd0e950af9bc793ffd95ce3528ce532e6a538;hpb=52831c6fef9425b96cc3f3049fbaf2e93236344e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/package.json b/client/package.json index 281fd0e95..12da38175 100644 --- a/client/package.json +++ b/client/package.json @@ -20,7 +20,8 @@ "postinstall": "npm rebuild node-sass", "webpack-bundle-analyzer": "webpack-bundle-analyzer", "webdriver-manager": "webdriver-manager", - "ngx-extractor": "ngx-extractor" + "ngx-extractor": "ngx-extractor", + "test": "jest" }, "license": "GPLv3", "typings": "*.d.ts", @@ -29,6 +30,23 @@ "webtorrent/create-torrent/junk": "^1", "simple-get": "^2.8.1" }, + "jest": { + "transform": { + "^.+\\.tsx?$": "ts-jest" + }, + "moduleNameMapper": { + "^@app/(.*)": "/src/app/$1" + }, + "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + "moduleFileExtensions": [ + "ts", + "tsx", + "js", + "jsx", + "json", + "node" + ] + }, "devDependencies": { "@angular-devkit/build-angular": "^0.7.5", "@angular/animations": "~6.1.4", @@ -55,6 +73,7 @@ "@types/core-js": "^2.5.0", "@types/jasmine": "^2.8.7", "@types/jasminewd2": "^2.0.3", + "@types/jest": "^23.3.1", "@types/jschannel": "^1.0.0", "@types/lodash-es": "^4.17.0", "@types/markdown-it": "^0.0.5", @@ -62,6 +81,7 @@ "@types/sanitize-html": "^1.14.0", "@types/video.js": "6.2.7", "@types/webtorrent": "^0.98.4", + "angular2-hotkeys": "^2.1.2", "angular2-notifications": "^1.0.2", "awesome-typescript-loader": "5.2.0", "bootstrap": "^4.1.3", @@ -78,6 +98,7 @@ "https-browserify": "^1.0.0", "jasmine-core": "^3.1.0", "jasmine-spec-reporter": "^4.2.1", + "jest": "^23.5.0", "jschannel": "^1.0.2", "karma": "^3.0.0", "karma-chrome-launcher": "^2.2.0", @@ -91,6 +112,7 @@ "ngx-clipboard": "11.1.3", "ngx-pipes": "^2.1.7", "ngx-qrcode2": "^0.0.9", + "ngx-textarea-autosize": "^2.0.0", "node-sass": "^4.9.3", "npm-font-source-sans-pro": "^1.0.2", "path-browserify": "^1.0.0", @@ -106,6 +128,7 @@ "sass-loader": "^7.1.0", "sass-resources-loader": "^1.2.1", "stream-http": "^2.8.3", + "ts-jest": "^23.1.4", "tslint": "^5.7.0", "tslint-config-standard": "^7.0.0", "typescript": "2.9",