FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
jxnblk
jxnblktest_migrated
Public
Like
4
test_migrated
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Settings
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://jxnblk--6901d46c251511f094ab569c3dd06744.web.val.run
README.md

NOTE: This val has moved to https://val.town/x/jxnblk/test

A test utility and badge to put in your val readme to show test suite status

Example:

Usage:

  1. Make a val
  2. Make a separate test suite HTTP val for the val you want to test
  3. Import describe and it utilities
  4. Write tests
  5. Add the badge to your readme, with the url parameter pointing to the test suite val's endpoint. Tests run whenever the test suite val or the badge is fetched
Create val
import { describe, it } from "https://esm.town/v/jxnblk/test"; import { assertEquals } from "jsr:@std/assert@1"; export default describe("my test suite", () => { const sum = (a, b) => a + b; it("sums it up", () => { assertEquals(sum(1, 2), 3); }) })

Badge:

[![][badge]][url] [badge]: https://jxnblk-test.web.val.run?url=YOUR_TEST_SUITE_ENDPOINT [url]: YOUR_TEST_SUITE_URL

Example

[![][badge]][url] [badge]: https://jxnblk-test.web.val.run?url=https://jxnblk-tunatestsuite.web.val.run [url]: https://www.val.town/v/jxnblk/tunaTestSuite

Migrated from folder: _LEAVE_AS_IS/test

HTTP
  • main.tsx
    jxnblk--69…44.web.val.run
Code
README.md
H
main.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.