You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@
14
14
- Options to customize return, pattern matching and sanity checking
15
15
- Both ES Module and CommonJS distributions available. Use anywhere!
16
16
- Tiny footprint:
17
-
- ES Module: `0.354kB` (`0.481kB` unpacked)
18
-
- CommonJS: `0.589kB` (`0.977kB` unpacked)
17
+
- ES Module: `0.379B` (`0.533B` unpacked)
18
+
- CommonJS: `0.612B` (`1.03kB` unpacked)
19
19
20
20
## Motivation
21
21
@@ -144,8 +144,14 @@ Steps for contributing through a pull request:
144
144
- `npmci`
145
145
- Make changes while running tests in watch mode
146
146
- `npmruntest:unit:all:watch`
147
+
- This project has a `.vscode/launch.json` file containing configuration for running Jest tests with the VSCode debugger which makes it simple to step through logic excecution. Steps to use VSCode debugger:
148
+
- Add a breakpoint to the source code
149
+
- Open a Jest unit test file (`*.test.ts`)
150
+
- Go to the VSCode debugger Tab (`shift` + `command` + `D` on MacOS) and select "Jest Current File" or optionally start the debug session from the command line (`shift` + `command` + `P` on MacOS) and type "Debug: Start debugging"
151
+
- VSCode should open a new terminal window and attach the Jest instance to the debugger
152
+
- Debugger should stop on the defined breakpoint in the source code
147
153
- Once all changes are complete, create a new release with [changesets](https://github.com/changesets/changesets)
148
-
- `npmrunchangeset`
154
+
- `npmruncreate-release`
149
155
- Commit and push changes to fork
150
156
- Open a pull request against the fork
151
157
- If the PR needs changes before a merge to `main` can be made, push more changes to the fork until the PR is approved
0 commit comments