Loading workspace insights... Statistics interval
7 days30 daysLatest CI Pipeline Executions
5461ad9c Changed koenig kg-* packages from mocha to vitest
no ref
- unifies the koenig test tooling with the rest of the monorepo, which
standardised on vitest; mocha + c8 were the last holdout after the
TryGhost/Koenig repo was merged into ghost/koenig
- migrates the 10 remaining mocha packages (kg-card-factory,
kg-clean-basic-html, kg-converters, kg-default-cards, kg-default-nodes,
kg-default-transforms, kg-html-to-lexical, kg-lexical-html-renderer,
kg-markdown-html-renderer, kg-utils); koenig-lexical and
kg-unsplash-selector were already on vitest
- runner-only swap: assertions stay on should/assert/sinon/chai for now,
wired in via vitest setupFiles (the should/sinon globals the mocha suite
installed through test/*/overrides.ts). Converting should->expect and
sinon->vi is a deliberate, separately-reviewable follow-up
- each package gains a vitest.config.ts (globals, node env, v8 coverage);
test:unit now runs `vitest run --coverage`; mocha/@types/mocha/c8/tsx
dropped for vitest + @vitest/coverage-v8; the redundant pretest build is
removed since the nx test:unit target already dependsOn build
- preserves the old `c8 --check-coverage` gates as vitest thresholds.
kg-default-transforms keeps its 100% gate on statements/functions/lines
but leaves branches ungated: vitest's v8 provider counts two defensive
branches that c8 scored as covered, so a 100% branch gate would fail a
suite c8 passed
- fixes mocha-isms vitest rejects (not assertion changes): before->beforeAll,
the `done` callback -> Promise (the editorTest helper + direct done tests
in kg-default-nodes), and an empty describe -> describe.todo
- adds the previously-missing @types/jsdom and @types/chai so the test
type-checks pass; kg-default-nodes test-file type-checking stays src-only
pending the should->expect follow-up that will clean up the should typings 5461ad9c Changed koenig kg-* packages from mocha to vitest
no ref
- unifies the koenig test tooling with the rest of the monorepo, which
standardised on vitest; mocha + c8 were the last holdout after the
TryGhost/Koenig repo was merged into ghost/koenig
- migrates the 10 remaining mocha packages (kg-card-factory,
kg-clean-basic-html, kg-converters, kg-default-cards, kg-default-nodes,
kg-default-transforms, kg-html-to-lexical, kg-lexical-html-renderer,
kg-markdown-html-renderer, kg-utils); koenig-lexical and
kg-unsplash-selector were already on vitest
- runner-only swap: assertions stay on should/assert/sinon/chai for now,
wired in via vitest setupFiles (the should/sinon globals the mocha suite
installed through test/*/overrides.ts). Converting should->expect and
sinon->vi is a deliberate, separately-reviewable follow-up
- each package gains a vitest.config.ts (globals, node env, v8 coverage);
test:unit now runs `vitest run --coverage`; mocha/@types/mocha/c8/tsx
dropped for vitest + @vitest/coverage-v8; the redundant pretest build is
removed since the nx test:unit target already dependsOn build
- preserves the old `c8 --check-coverage` gates as vitest thresholds.
kg-default-transforms keeps its 100% gate on statements/functions/lines
but leaves branches ungated: vitest's v8 provider counts two defensive
branches that c8 scored as covered, so a 100% branch gate would fail a
suite c8 passed
- fixes mocha-isms vitest rejects (not assertion changes): before->beforeAll,
the `done` callback -> Promise (the editorTest helper + direct done tests
in kg-default-nodes), and an empty describe -> describe.todo
- adds the previously-missing @types/jsdom and @types/chai so the test
type-checks pass; kg-default-nodes test-file type-checking stays src-only
pending the should->expect follow-up that will clean up the should typings 5461ad9c Changed koenig kg-* packages from mocha to vitest
no ref
- unifies the koenig test tooling with the rest of the monorepo, which
standardised on vitest; mocha + c8 were the last holdout after the
TryGhost/Koenig repo was merged into ghost/koenig
- migrates the 10 remaining mocha packages (kg-card-factory,
kg-clean-basic-html, kg-converters, kg-default-cards, kg-default-nodes,
kg-default-transforms, kg-html-to-lexical, kg-lexical-html-renderer,
kg-markdown-html-renderer, kg-utils); koenig-lexical and
kg-unsplash-selector were already on vitest
- runner-only swap: assertions stay on should/assert/sinon/chai for now,
wired in via vitest setupFiles (the should/sinon globals the mocha suite
installed through test/*/overrides.ts). Converting should->expect and
sinon->vi is a deliberate, separately-reviewable follow-up
- each package gains a vitest.config.ts (globals, node env, v8 coverage);
test:unit now runs `vitest run --coverage`; mocha/@types/mocha/c8/tsx
dropped for vitest + @vitest/coverage-v8; the redundant pretest build is
removed since the nx test:unit target already dependsOn build
- preserves the old `c8 --check-coverage` gates as vitest thresholds.
kg-default-transforms keeps its 100% gate on statements/functions/lines
but leaves branches ungated: vitest's v8 provider counts two defensive
branches that c8 scored as covered, so a 100% branch gate would fail a
suite c8 passed
- fixes mocha-isms vitest rejects (not assertion changes): before->beforeAll,
the `done` callback -> Promise (the editorTest helper + direct done tests
in kg-default-nodes), and an empty describe -> describe.todo
- adds the previously-missing @types/jsdom and @types/chai so the test
type-checks pass; kg-default-nodes test-file type-checking stays src-only
pending the should->expect follow-up that will clean up the should typings