Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
- bump versions to current
- specifically bump to jest v24
- update TypeScript to same as default SPFx v1.8.2 project
  • Loading branch information
andrewconnell committed May 9, 2019
1 parent 13a2ea2 commit 48eb7b8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# jest-preset-spfx-react16

[![npm version](https://badge.fury.io/js/%40voitanos%2Fjest-preset-spfx-react16.png)](https://www.npmjs.com/package/@voitanos/jest-preset-spfx-react16)

A [Jest](http://facebook.github.io/jest) preset configuration for [SharePoint Framework](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview) (SPFx) projects that leverage React v16. React v16 is used by SPFx projects created with the [SPFx Yeoman generator](https://www.npmjs.com/@microsoft/generator-sharepoint) v1.7.0 or later. It includes the popular [Enzyme](https://airbnb.io/enzyme/) React rendering library from Airbnb

> See the related packages [jest-preset-spfx](https://www.npmjs.com/package/@voitanos/jest-preset-spfx) for SPFx projects without React & [jest-preset-spfx-react15](https://www.npmjs.com/package/@voitanos/jest-preset-spfx-react15) if you are leveraging React v15.
Expand Down
2 changes: 1 addition & 1 deletion jest-preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"moduleNameMapper": {
"\\.(css|scss)$": "identity-obj-proxy",
"^resx-strings/en-us.json": "<rootDir>/node_modules/@microsoft/sp-core-library/lib/resx-strings/en-us.json"
"^resx-strings/en-us.json": "<rootDir>/../node_modules/@microsoft/sp-core-library/lib/resx-strings/en-us.json"
},
"setupFiles": [
"raf/polyfill",
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "@voitanos/jest-preset-spfx-react16",
"description": "Jest preset configuration for SharePoint Framework projects that leverage React v16 (SPFx >=1.7.0).",
"version": "1.1.0",
"version": "1.2.0",
"license": "MIT",
"dependencies": {
"@types/enzyme-adapter-react-16": "1.0.3",
"@types/enzyme-to-json": "1.5.2",
"@types/jest": "^23.3.10",
"@types/react-test-renderer": "16.0.3",
"enzyme": "3.4.1",
"enzyme-adapter-react-16": "1.7.0",
"enzyme-to-json": "3.3.4",
"@types/enzyme-adapter-react-16": "1.0.5",
"@types/enzyme-to-json": "1.5.3",
"@types/jest": "^24.0.12",
"@types/react-test-renderer": "16.8.1",
"enzyme": "3.9.0",
"enzyme-adapter-react-16": "1.12.1",
"enzyme-to-json": "3.3.5",
"identity-obj-proxy": "^3.0.0",
"raf": "3.4.0",
"react-test-renderer": "16.6.3",
"ts-jest": "23.1.4"
"raf": "3.4.1",
"react-test-renderer": "16.8.6",
"ts-jest": "24.0.2"
},
"devDependencies": {
"@types/node": "^10.12.12",
"typescript": "2.4.2"
"typescript": "2.9.2"
},
"peerDependencies": {
"jest": "^23.6.0"
"jest": "^24.8.0"
},
"scripts": {
"build": "tsc -p ./",
Expand Down

0 comments on commit 48eb7b8

Please sign in to comment.