mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
f9888e6705
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test-backend (24.x) (push) Has been cancelled
test / API tests (node env, api-test) (24.x) (push) Has been cancelled
test / puterjs (node env, vitest) (24.x) (push) Has been cancelled
* feat: paginated list * fix: kv list
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 start -
Copy
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