Skip to content

Commit 8ebf07e

Browse files
Add BridgeJS testing documentation
- Add BridgeJS plugin test commands to CONTRIBUTING.md - Document UPDATE_SNAPSHOTS=1 environment variable usage for snapshot tests
1 parent 1279f9b commit 8ebf07e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@ Tests for `PackageToJS` plugin:
7171
swift test --package-path ./Plugins/PackageToJS
7272
```
7373

74+
Tests for `BridgeJS` plugin:
75+
76+
```bash
77+
swift test --package-path ./Plugins/BridgeJS
78+
```
79+
80+
To update snapshot test files when expected output changes:
81+
82+
```bash
83+
UPDATE_SNAPSHOTS=1 swift test --package-path ./Plugins/BridgeJS
84+
```
85+
7486
### Editing `./Runtime` directory
7587

7688
The `./Runtime` directory contains the JavaScript runtime that interacts with the JavaScript environment and Swift code.

0 commit comments

Comments
 (0)