Commit 9ec8e9d
authored
Smoke v2 (#1283)
## Braintrust JS SDK Smoke Tests v2
### Design Principles
1. **Well-Known Tarball Paths**: Uses version-agnostic paths like
`braintrust-latest.tgz` so package.json never changes
2. **Build Before Install**: Ensures artifacts exist before npm tries to
install them
3. **Track Lock Files**: Commits lock files to catch transitive
dependency issues
4. **Makefile as Source of Truth**: Single clear interface (`make test`)
for every scenario
5. **Expected Failures Support**: Uses `xfail` status to document known
platform limitations without failing tests
### Quick Start
```bash
# Run all scenarios
make test
# Run specific scenario
make test otel-v1
# List available scenarios
make list
```
### What's Improved from v1
- ✅ No version-specific tarballs (eliminates package.json churn)
- ✅ Peer dependencies fully specified (no `--legacy-peer-deps`
workaround)
- ✅ Auto-discovery (no manual registration)
- ✅ Shared test package for DRY test logic
- ✅ Lock files tracked (surfaces packaging issues early)
This infrastructure ensures the Braintrust SDK "just works" across the
JavaScript ecosystem's diverse runtime landscape.1 parent 9108e84 commit 9ec8e9d
191 files changed
Lines changed: 5815 additions & 32359 deletions
File tree
- .github/workflows
- js/smoke
- scenarios
- cloudflare-vite-hono
- src
- tests
- cloudflare-worker-browser-compat
- src
- tests
- cloudflare-worker-browser-no-compat
- src
- tests
- cloudflare-worker-node-compat
- src
- tests
- cloudflare-worker-node-no-compat
- src
- tests
- deno-browser
- tests
- deno-node
- tests
- jest-node
- tests
- nextjs-instrumentation
- src
- app
- api/smoke-test
- edge
- node
- tests
- otel-v1
- src
- tests
- playwright-browser
- pages
- src
- tests
- tests
- browser
- src
- tests
- cloudflare-worker
- src
- deno
- browser
- node
- nextjs-instrumentation
- otel-v1
- span-jest
- span
- vite-react-hono
- src/react-app
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Large diffs are not rendered by default.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
0 commit comments