Commit graph

21 commits

Author SHA1 Message Date
bc2bd85422
Build/autodoc generation (#32)
* feat: autodoc

* docs: autodoc output

docs: autodoc output

* build: document generator

* ci: add doc check

* chore: add docs

* ci: finagle with docs stale check

ci: target generated docs for diff

* ci: remove check

* docs: add links

* docs: more matcher documentation
2023-04-18 23:17:48 -04:00
29202908d4
feat: allow matcher extensions (#31)
* feat: expose Expect to allow custom matcher extensions

* feat: include generated types

* docs: document custom matchers
2023-04-18 13:32:11 -04:00
85af7dd4cb
feat: basic beforeEach, afterEach support (#28) 2023-04-15 22:50:21 -04:00
e216c2d04e
refactor: replace console by logging util (#27)
* refactor: replace console by logging util

* refactor: more logging replacements

* refactor: more logging replacements
2023-04-15 22:18:27 -04:00
912261443a
refactor: build context and run tests after gathering facts (#26)
* refactor: build context and run tests after gathering facts

* test: update integration test to not check for case collection

* refactor: further cleanup

* refactor: leftover log statements

* refactor: further cleaning

* refactor: no more collector
2023-04-15 21:09:04 -04:00
6a9e9ee3fc
feat: toHaveLength matcher (#25)
* feat: toHaveLength matcher

* refactor: standardize errors thrown on failed expectation

* test: toHaveLength coverage

* fix: resolve type discrepancy

* ci: add typecheck step
2023-04-15 16:30:05 -04:00
ec2e46e04d
build: run tests using actual build (#23)
* build: run tests using actual build

* build: build script that includes hashbang prepending

* ci: missing /bin/zsh
2023-04-15 01:28:59 -04:00
540ce0bbbb
test: add integration test on ts skip (#22)
* test: add integration test on ts skip

* chore: add test prefix to commit linter

* build: shell access

* build: lint commit to include first commit
2023-04-15 00:34:06 -04:00
cf98db4d39
fix: typescript support when packaged (#18)
* build: corepack, stop bundling yarn executable

* chore: bin, main in package.json

* feat: allow ts flag to use ts-node to run tests

* wip: refine support

* ci: add ts support to ci

* ci: leftover node 14
2023-04-14 09:38:28 -04:00
972d9e6edc
refactor: fork instead of socket (#17)
* refactor: use fork and child>parent messaging instead of socket

* feat: timing marks, standardize workers

* refactor: remove cruft from collector worker

* refactor: standardize worker,process spawn logic

* ci: drop support for node 14, eol

* refactor: needless double string convert

* refactor: no more log grouping

* fix: fail on failure
2023-04-14 09:38:28 -04:00
33c3bb6afa
refactor: split cli call from runner logic (#15) 2023-04-14 09:38:28 -04:00
4f14f20ec2
feat: set worker count from cli (#14)
* feat: basic worker setting support

* ci: enable in CI

* refactor: split off argument parser

* feat: generate helptext from flag configuration
2023-04-14 09:38:27 -04:00
2bc6d94507
feat: each support (#13)
* feat: add each support for test, describe

* docs: document test

* feat: label templating basic support

* refactor: group test exports together

* refactor: leverage each in repetitive tests

* chore: pinned node -> alias

* test: coverage for it, test
2023-04-14 09:38:22 -04:00
711d0097ce
refactor: Expect with static matcher registration (#12)
* refactor: Expect with static matcher registration

* refactor: types

* refactor: mark private properties as such

* refactor: consolidate matcher adding and remove redundancy

* chore: lint

* refactor: more consolidation

* refactor: simply matchers exports

* docs: documentation on Expect

* refactor: remove dependencies around inverse matchers

* refactor: move cruft from constructor
2023-04-14 09:38:22 -04:00
aa4695c4e5
refactor: add matchers to expectation dynamically (#11)
* refactor: add matchers to expectation dynamically

* feat: add toThrow

* refactor: centralize types

* docs: matchers

* refactor: MatcherReport

* chore: format before lint

* refactor: simplify negated matchers

* docs: inverse matchers
2023-04-14 09:38:21 -04:00
40cc9fa664
feat: cli options, help (#10)
* feat: cli options, help

* refactor: resolve tsconfig kerfuffle

* wip: clean up

* refactor: trim messaging on failure
2023-04-14 09:38:21 -04:00
de5ff50c3b
feat: split runner and workers, set up ipc (#8)
* feat: split runner and workers, set up ipc

* docs: document worker a bit

* wip: centralize runtime details to context obj

* wip: clean up context, batching

* wip: fail on failure

* wip: propagate failure

* refactor: move types

* refactor: split collector into separate process for split opportunities

* refactor: no need for the fs cache anymore
2023-04-14 09:38:20 -04:00
57f2757adf
feat: runner without dynamic import (#5)
* feat: runner without dynamic import

* refactor: case collection count

* feat: handle failures

* revert: restore test
2023-04-14 09:38:20 -04:00
b34766244f
feat: negation support (#4)
* feat: negation support

* test: coverage for not, update old coverage
2023-04-14 09:38:19 -04:00
c937fc3a60
refactor: use assert API instead of handrolled equalities (#3)
* refactor: use assert API instead of handrolled equalities

* chore: lint
2023-04-14 09:38:19 -04:00
329103c470
feat: getting something going (#1)
* feat: basics

* chore: lint

* wip: slightly better expect logic

* test: use self for test cases

* ci: enable test, build steps

* chore: lint

* docs: readme stub

* feat: toBe

* chore: lockfile
2023-04-14 09:38:15 -04:00