X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fpackage.json;h=1e9484b09c06feeaf79968af02838e7b93ca0461;hb=8c72543a4af7a613496e0581a939996fc284f861;hp=12da38175bb777be9b27bd9d998306f97d14720b;hpb=7f5f4152a4cd4fc328d6ae177d281ebe7e792dd3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/package.json b/client/package.json index 12da38175..1e9484b09 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "peertube-client", - "version": "1.0.0-beta.11", + "version": "1.0.0-beta.13", "private": true, "licence": "GPLv3", "author": { @@ -21,7 +21,7 @@ "webpack-bundle-analyzer": "webpack-bundle-analyzer", "webdriver-manager": "webdriver-manager", "ngx-extractor": "ngx-extractor", - "test": "jest" + "test": "jest --no-cache" }, "license": "GPLv3", "typings": "*.d.ts", @@ -31,13 +31,23 @@ "simple-get": "^2.8.1" }, "jest": { + "globals": { + "ts-jest": { + "tsConfigFile": "/src/tsconfig.spec.json" + }, + "__TRANSFORM_HTML__": true + }, "transform": { - "^.+\\.tsx?$": "ts-jest" + "^.+\\.(ts|js|html)$": "/node_modules/jest-preset-angular/preprocessor.js" }, "moduleNameMapper": { - "^@app/(.*)": "/src/app/$1" + "^@app/(.*)": "/src/app/$1", + "environments/(.*)": "/src/environments/$1" }, - "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", + "testMatch": [ + "**/__tests__/**/*.+(ts|js)?(x)", + "**/+(*.)+(spec|test).+(ts|js)?(x)" + ], "moduleFileExtensions": [ "ts", "tsx", @@ -45,7 +55,12 @@ "jsx", "json", "node" - ] + ], + "transformIgnorePatterns": [ + "/node_modules/(?!lodash-es/)" + ], + "preset": "jest-preset-angular", + "setupTestFrameworkScriptFile": "/src/setupJest.ts" }, "devDependencies": { "@angular-devkit/build-angular": "^0.7.5", @@ -99,6 +114,7 @@ "jasmine-core": "^3.1.0", "jasmine-spec-reporter": "^4.2.1", "jest": "^23.5.0", + "jest-preset-angular": "^6.0.0", "jschannel": "^1.0.2", "karma": "^3.0.0", "karma-chrome-launcher": "^2.2.0", @@ -143,6 +159,7 @@ "webpack-cli": "^3.0.8", "webtorrent": "^0.102.1", "whatwg-fetch": "^2.0.4", - "zone.js": "~0.8.5" + "zone.js": "~0.8.5", + "focus-visible": "^4.1.5" } }