Skip to content

Commit 7893a7c

Browse files
committed
doc: clean up devin's work
1 parent 5884685 commit 7893a7c

File tree

1 file changed

+9
-40
lines changed

1 file changed

+9
-40
lines changed

README.md

Lines changed: 9 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ Publishing steps:
227227
| Command | Description |
228228
| ----------------- | ------------------------------------------------------ |
229229
| `yarn test:unit` | Run unit tests for all packages |
230-
| `yarn test:local` | Launch E2E tests with Cypress and serve React test app |
230+
| `yarn test:local` | Run E2E tests in Node.js environment |
231231

232232
### Running Tests
233233

@@ -241,10 +241,14 @@ Publishing steps:
241241
```sh
242242
yarn test:local
243243
```
244-
This command:
245-
- Starts the React testing application
246-
- Launches Cypress test runner
247-
- Executes E2E test suites
244+
Optional Environment Variables:
245+
- NETWORK=<network_name> (datil, datil-test, datil-dev, etc.)
246+
- DEBUG=true/false
247+
248+
Optional Flags:
249+
- --filter=<test-name>
250+
251+
See more in `local-tests/README.md`
248252

249253
## Local Development with Lit Node
250254

@@ -262,23 +266,6 @@ export LIT_JS_SDK_LOCAL_NODE_DEV="true"
262266
export LIT_JS_SDK_FUNDED_WALLET_PRIVATE_KEY="your-funded-private-key"
263267
```
264268

265-
3. Update and build contracts:
266-
267-
```sh
268-
# Fetch and generate contract updates
269-
yarn update:contracts-sdk --fetch
270-
yarn update:contracts-sdk --gen
271-
272-
# Build all packages
273-
yarn build:packages
274-
```
275-
276-
4. Start local development server:
277-
278-
```sh
279-
yarn nx run nodejs:serve
280-
```
281-
282269
## Environment Variables
283270

284271
| Variable | Description | Usage |
@@ -389,24 +376,6 @@ Key components available across packages:
389376

390377
## Common Issues and Solutions
391378

392-
### React Source Map Error
393-
394-
**Problem:** "Failed to parse source map from" error in React
395-
396-
**Solution:**
397-
Disable source map generation in your React `package.json`:
398-
399-
```json
400-
{
401-
"scripts": {
402-
"start": "GENERATE_SOURCEMAP=false react-scripts start",
403-
"build": "react-scripts build",
404-
"test": "react-scripts test",
405-
"eject": "react-scripts eject"
406-
}
407-
}
408-
```
409-
410379
### Crypto API Error
411380

412381
**Problem:** "Reference Error: crypto is not defined"

0 commit comments

Comments
 (0)