Skip to content

Commit

Permalink
[DEVEX-708] add javascript sdk tests to get parity with python sdk (#5)
Browse files Browse the repository at this point in the history
* import beforeEach

* add label purchase tests

* dynamically add discriminator when creating a transaction so the response will serialize to the correct response type

* add test task to Makefile
  • Loading branch information
shippo-lueders authored Apr 23, 2024
1 parent 7c1f084 commit 462188c
Show file tree
Hide file tree
Showing 9 changed files with 1,177 additions and 6 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.11.0
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
LOCAL_SPEC_FILE=./build/public-api.yaml
LOCAL_OVERLAY_FILE=./build/client-sdk-overlay.yaml

install:
npm install

test: install
./node_modules/.bin/mocha --import=tsx --extensions ts src 'test/**/*.ts'

speakeasy-install: # dev task, locally install the speakeasy CLI
brew install speakeasy-api/homebrew-tap/speakeasy
speakeasy auth login
Expand Down
Loading

0 comments on commit 462188c

Please sign in to comment.