-
Notifications
You must be signed in to change notification settings - Fork 836
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spfx 1.20 and React Testing Library implement (#1459)
* Spfx 1.20 and React Testing Library implement * Disable debug mode Disable debug mode for production usage * fixup --------- Co-authored-by: Adam Wójcik <[email protected]>
- Loading branch information
1 parent
0b6c614
commit 2d56308
Showing
25 changed files
with
33,282 additions
and
23,886 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,6 @@ obj | |
|
||
# Styles Generated Code | ||
*.scss.ts | ||
|
||
# Heft Folder | ||
.heft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
!dist | ||
config | ||
|
||
gulpfile.js | ||
|
||
release | ||
src | ||
temp | ||
|
||
tsconfig.json | ||
tslint.json | ||
|
||
*.log | ||
|
||
.yo-rc.json | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{ | ||
"@microsoft/generator-sharepoint": { | ||
"version": "1.12.1", | ||
"version": "1.20.0", | ||
"libraryName": "react-mega-menu", | ||
"libraryId": "466eb049-ab57-4a5d-ae51-0a8221cdb984", | ||
"environment": "spo", | ||
"nodeVersion": "18.18.0", | ||
"isCreatingSolution": true, | ||
"packageManager": "npm", | ||
"componentType": "webpart", | ||
"isDomainIsolated": false | ||
"isDomainIsolated": false, | ||
"sdkVersions": { | ||
"@microsoft/microsoft-graph-client": "3.0.2" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import jest from 'jest-mock'; | ||
|
||
export const Log = { info: jest.fn(), error: jest.fn(), warn: jest.fn(), }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
presets: [ | ||
['@babel/preset-env', { targets: { node: 'current' } }], | ||
['@babel/preset-react', { runtime: 'automatic' }], | ||
['@babel/preset-typescript', { allowNamespaces: true }] | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/core-build/sass.schema.json" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"verbose": true, | ||
"transform": { | ||
"^.+\\.(js|jsx|ts|tsx)$": "babel-jest", | ||
"^.+\\.(css|scss|html)$": "jest-transform-stub", | ||
"^(?!.*\\.(js|jsx|ts|tsx|css|json|html)$)": "jest-transform-stub" | ||
}, | ||
"transformIgnorePatterns": [ | ||
"node_modules/(?!office-ui-fabric-react|@microsoft/sp-core-library|@pnp/sp)" | ||
], | ||
"moduleNameMapper": { | ||
"^@microsoft/sp-core-library/lib-common/log/(.*)$": "<rootDir>/__mocks__/sp-core-library/$1.js", | ||
"\\.(css|scss)$": "identity-obj-proxy" | ||
}, | ||
"setupFilesAfterEnv": ["<rootDir>/setupTests.js"], | ||
"testEnvironment": "jsdom", | ||
"testMatch": ["<rootDir>/lib/**/*.test.(js|jsx|ts|tsx)"], | ||
"preset": "ts-jest" | ||
} |
Oops, something went wrong.