Spaces:
Sleeping
Sleeping
|
Download tests/README.md from AZILS/puter-deploy: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/AZILS/puter-deploy/resolve/main/tests/README.md
- Command line
-
hf download hf://spaces/AZILS/puter-deploy/tests/README.md
-
curl -L -o README.md https://huggingface.co/spaces/AZILS/puter-deploy/resolve/main/tests/README.md
1.31 kB
Table of Contents
Summary
End-to-end tests for puter-js and http API.
How to use
Initialize the Client Config
Start a backend server:
npm startCopy
example-client-config.yamland edit theauth_tokenfield. (auth_tokencan be obtained by logging in on the webpage and typingputer.authTokenin Developer Tools's console)cp ./tests/example-client-config.yaml ./tests/client-config.yaml
Run API-Tester (test http API)
node ./tests/api-tester/apitest.js --unit --stop-on-failure
Run Playwright (test puter-js API with browser environment)
cd ./tests/playwright
npm install
npx playwright install --with-deps
npx playwright test
Run Vitest (test puter-js API with node environment)
npm run test:puterjs-api