Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
benmerckx committed Jun 6, 2024
1 parent d3c8e45 commit 24753f6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 9 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish
on:
push:
branches:
- main

jobs:
publish:
runs-on: ubuntu-latest

permissions:
contents: read
id-token: write

steps:
- uses: actions/checkout@v4

- name: Publish package
run: npx jsr publish
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@benmerckx/suite",
"version": "0.0.0",
"version": "0.2.0",
"exports": "./mod.ts"
}
2 changes: 2 additions & 0 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {suite as untypedSuite} from './suite.js'
import type {Suite} from './suite.d.ts'

/** Define a test suite */
export const suite: Suite = untypedSuite
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.0",
"version": "0.2.0",
"name": "@benmerckx/suite",
"module": "suite.js",
"type": "module",
Expand Down
11 changes: 4 additions & 7 deletions suite.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/** Describe a test */
export interface Describe {
/** Define a test */
(name: string, run: ()=> void | Promise<void>): void
}
export type Describe =
(name: string, run: ()=> void | Promise<void>) => void

/** Define a test suite */
export interface DefineTest extends Describe {
Expand Down Expand Up @@ -30,9 +28,8 @@ export interface DefineTest extends Describe {
}

/** Define a test suite */
export interface Suite {
(meta: ImportMeta, define: (test: DefineTest) => void): void
}
export type Suite =
(meta: ImportMeta, define: (test: DefineTest) => void) => void

/** Define a test suite */
export const suite: Suite

0 comments on commit 24753f6

Please sign in to comment.