-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update package-lock to v2 * add @backtrace-labs/react package and initailize it * add error_user username and guard for it * add errors for error user and sending messages * add ErrorBoundary example * update @backtrace-labs/react to ^0.0.3 * add global user attributes to BacktraceClient * fix unit tests, fix double description in InventoryItem * fix missing comma in BacktraceClient.initialize * add backtrace-js CLI and sourcemap upload support * add tests for 100% coverage * update @backtrace-labs/react to 0.0.5 --------- Co-authored-by: Sebastian Alex <[email protected]> Co-authored-by: Diego Molina <[email protected]>
- Loading branch information
1 parent
73c930c
commit 7e65375
Showing
20 changed files
with
35,016 additions
and
110 deletions.
There are no files selected for viewing
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,11 @@ | ||
{ | ||
"path": "./build/static/js", | ||
"run": { | ||
"upload": true, | ||
"process": true | ||
}, | ||
"upload": { | ||
"url": "https://submit.backtrace.io/UNIVERSE/TOKEN/sourcemap", | ||
"include-sources": true | ||
} | ||
} |
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
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,5 @@ | ||
const BrokenComponent = () => { | ||
throw new Error('This component failed to render!'); | ||
}; | ||
|
||
export default BrokenComponent; |
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,8 @@ | ||
import { shallow } from "enzyme"; | ||
import BrokenComponent from "../BrokenComponent"; | ||
|
||
describe("BrokenComponent", () => { | ||
it("should throw an error on render", () => { | ||
expect(() => shallow(<BrokenComponent />)).toThrowError("This component failed to render!"); | ||
}); | ||
}); |
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
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
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
Oops, something went wrong.