Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
fixed build script and jest version for testing + added react-test-re…
Browse files Browse the repository at this point in the history
…nderer to execute tests
  • Loading branch information
d-al-ibm committed Jul 19, 2019
1 parent a08dc0f commit c5f5ed5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 29 deletions.
20 changes: 3 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"start": "parcel ./public/index.html",
"prebuild": "rimraf dist",
"build": "tsc",
"build": "parcel build ./public/index.html --public-url /",
"postversion": "git push && git push --tags",
"test": "jest",
"lint": "tslint --project ."
Expand All @@ -22,9 +22,10 @@
"danger": "^8.0.0",
"danger-plugin-digitalcitizenship": "*",
"italia-tslint-rules": "*",
"jest": "^24.8.0",
"jest": "24.7.1",
"parcel-bundler": "^1.12.3",
"prettier": "^1.12.1",
"react-test-renderer": "^16.8.6",
"rimraf": "^2.6.2",
"sass": "^1.22.4",
"ts-jest": "^24.0.2",
Expand All @@ -47,20 +48,5 @@
"react-router-dom": "^5.0.1",
"react-scripts": "3.0.1",
"reactstrap": "^8.0.0"
},
"jest": {
"testEnvironment": "node",
"collectCoverage": true,
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
"moduleFileExtensions": [
"js",
"json",
"jsx",
"node",
"ts",
"tsx"
],
"preset": "ts-jest",
"testMatch": null
}
}
17 changes: 15 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,26 @@
"target": "es2017",
"rootDir": "src",
"outDir": "dist",
"module": "commonjs",
"module": "esnext",
"moduleResolution": "node",
"strict": true,
"noImplicitAny": true,
"declaration": true,
"sourceMap": true,
"jsx": "preserve"
"jsx": "preserve",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true
},
"lib": [],
"include": [
Expand Down
22 changes: 12 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6321,7 +6321,7 @@ jest-changed-files@^24.8.0:
execa "^1.0.0"
throat "^4.0.0"

jest-cli@^24.7.1, jest-cli@^24.8.0:
jest-cli@^24.7.1:
version "24.8.0"
resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-24.8.0.tgz#b075ac914492ed114fa338ade7362a301693e989"
integrity sha512-+p6J00jSMPQ116ZLlHJJvdf8wbjNbZdeSX9ptfHX06/MSNaXmKihQzx5vQcw0q2G6JsdVkUIdWbOWtSnaYs3yA==
Expand Down Expand Up @@ -6701,14 +6701,6 @@ jest@24.7.1:
import-local "^2.0.0"
jest-cli "^24.7.1"

jest@^24.8.0:
version "24.8.0"
resolved "https://registry.yarnpkg.com/jest/-/jest-24.8.0.tgz#d5dff1984d0d1002196e9b7f12f75af1b2809081"
integrity sha512-o0HM90RKFRNWmAWvlyV8i5jGZ97pFwkeVoGvPW1EtLTgJc2+jcuqcbbqcSZLE/3f2S5pt0y2ZBETuhpWNl1Reg==
dependencies:
import-local "^2.0.0"
jest-cli "^24.8.0"

jquery@>=1.8.3, jquery@^3.4.1:
version "3.4.1"
resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.4.1.tgz#714f1f8d9dde4bdfa55764ba37ef214630d80ef2"
Expand Down Expand Up @@ -9712,7 +9704,7 @@ react-error-overlay@^5.1.6:
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-5.1.6.tgz#0cd73407c5d141f9638ae1e0c63e7b2bf7e9929d"
integrity sha512-X1Y+0jR47ImDVr54Ab6V9eGk0Hnu7fVWGeHQSOXHf/C2pF9c6uy3gef8QUeuUiWlNb0i08InPSE5a/KJzNzw1Q==

react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4:
react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4, react-is@^16.8.6:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
Expand Down Expand Up @@ -9851,6 +9843,16 @@ react-scripts@3.0.1:
optionalDependencies:
fsevents "2.0.6"

react-test-renderer@^16.8.6:
version "16.8.6"
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.8.6.tgz#188d8029b8c39c786f998aa3efd3ffe7642d5ba1"
integrity sha512-H2srzU5IWYT6cZXof6AhUcx/wEyJddQ8l7cLM/F7gDXYyPr4oq+vCIxJYXVGhId1J706sqziAjuOEjyNkfgoEw==
dependencies:
object-assign "^4.1.1"
prop-types "^15.6.2"
react-is "^16.8.6"
scheduler "^0.13.6"

react-transition-group@^2.3.1:
version "2.9.0"
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-2.9.0.tgz#df9cdb025796211151a436c69a8f3b97b5b07c8d"
Expand Down

0 comments on commit c5f5ed5

Please sign in to comment.