Skip to content

Commit

Permalink
fix ts-jest to use preset tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewconnell committed Oct 8, 2019
1 parent 51abab7 commit 9c48e13
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions jest-preset.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
"lcov",
"text-summary"
],
"globals": {
"ts-jest": {
"tsConfig": "node_modules/@voitanos/jest-preset-spfx-react16/tsconfig.json"
}
},
"moduleFileExtensions": [
"ts",
"tsx",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@voitanos/jest-preset-spfx-react16",
"description": "Jest preset configuration for SharePoint Framework projects that leverage React v16 (SPFx >=1.7.0).",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",
"dependencies": {
"@types/enzyme-adapter-react-16": "1.0.5",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"baseUrl": ".",
"allowJs": true,
"types": ["node"],
"jsx": "react",
"esModuleInterop": true
},
"include": [
Expand Down

0 comments on commit 9c48e13

Please sign in to comment.